Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Push player downwards using constantForce.relativeForce?

$
0
0
I'm trying to make my FPS Controller move downwards when pressing the Q button.. I've been trying to add a constant relative force to the player, but nothing happens. I have disabled the Character Motor to use my own movement script whenever the player is floating on water..

My update function looks like this:
Code (JavaScript):
  1. function Update()
  2. {
  3.     var move : Vector3;
  4.    
  5.     if(floating)
  6.     {
  7.         player = GameObject.FindGameObjectWithTag("Player");
  8.         move.x =...
Push player downwards using constantForce.relativeForce?

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>