Quantcast
Channel: Questions in topic: "interpolate"
Viewing all articles
Browse latest Browse all 93

Rigidbody2D with interpolation lags while moving by velocity, how to solve the problem?

$
0
0
I have created a new 2D project and I have a single sprite in the scene with a BoxCollider2D and a Rigidbody2D.with gravity scale set to 0. and the Rigidbody2D's interpolate is set to "interpolate". I attached the script below to this game object: using UnityEngine; using System.Collections; public class TestGo : MonoBehaviour { void Start () { Rigidbody2D rb = GetComponent(); rb.velocity = new Vector2(10, 0); } } the problem is that when I click play,the game object moves with a constant velocity but it vibrates and lags from time to time,I expected with setting interpolation to "interpolate" the problem would be fixed,but it still remains :( Does any body know how shoud I fix this? FYI, I am using Unity 5.3.4p3 with a personal licence,and my target device is Android. tnx in advance.

Viewing all articles
Browse latest Browse all 93

Trending Articles



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