Answer by Tom 'Blue' Piddock for Clamp magnitude not working on...
Your default on your maxVel is probably set to a different value in the Unity inspector for that object. You can reset the component and it will return to the defaults that you have set in your script....
View ArticleAnswer by Heisenbug for Clamp magnitude not working on RigidBody.Velocity
I think the problem is the following: FixedUpdate method is called just before the physics engine update. So trying to clamping the velocity has no effect because the force you are applying to the...
View ArticleClamp magnitude not working on RigidBody.Velocity
I am using c# mono and unity3d 4.1.2.I have the following script:using UnityEngine;using System.Collections;public class PlayerMove : MonoBehaviour {public float MoveSpeed = 10.0f;public float maxVel =...
View Article
More Pages to Explore .....