Quantcast
Channel: Answers by "Mortoc"
Viewing all articles
Browse latest Browse all 73

Answer by Mortoc

$
0
0
Right now your scripts are modifying transform and rigidbody. You want to modify one or the other per-gameobject, not both. Also, any modifications to rigidbody should be done during the Physics Update: FixedUpdate. I'd recommend changing "void Update()" in both scripts to "void FixedUpdate()" and changing the body of ResetPlatform() to only access the rigidbody, not the transform.

Viewing all articles
Browse latest Browse all 73

Trending Articles