cancel
Showing results for 
Search instead for 
Did you mean: 

why the position of OVRPlayerController prefab change with gravity modifier property on unity 5.6?

lanoumbiesse
Honored Guest
help me to understand this issue.... when I set the gravity modifier property on OVRPlayerController script l have a good position but my prefab don't move
1 REPLY 1

tokai74
Honored Guest

Hi to remove gravity just go into the OVRPlayerController.cs and look around line 220, you should find the following:


// No positional movement if we are in the air


  1. if (!Controller.isGrounded)
  2. MoveScale = 0.0f;


Just comment this block out and set your gravity modifier to 0 and
your player will no longer be effected by gravity that's being
controlled by this class.