Greetings guys, I would like to know is it possible to add force to an object and make it look smooth. I am using very simple code to give acceleration to an object. Code (csharp): void FixedUpdate() { if (landed) { rigidbody.AddForce(acceleration, 0f, 0f, ForceMode.Acceleration); } } Right now, when force is being added to an object, its movement looks a bit "jaggy". Any ideas where problem can exist? (P.S. Objects Physic Material has no friction...)
I've not come across any smoothing issues with the physics unless your frame rate is very low. I think it is more likely that your jaggyness comes from the camera updating its orientation before/after the physics have been applied. I had this issue in my game and it was fixed by updating the camera position inside FixedUpdate rather than Update
Thanks george, you are actually right... Changing Update() inside my camera script to FixedUpdate() solved this problem...
I changed it in this way to do it more smoothly: Code (CSharp): public float rotationPoint = 0.5f; public Rigidbody rb; void Start() { rb = GetComponent<Rigidbody>(); } public void OnTriggerStay(Collider collider) { if(collider.gameObject.CompareTag("RotatePointOne")) { rb.AddForce(rotationPoint, 0, 0, ForceMode.Impulse); } }