- Home /
Question by
Axtrainz · Nov 08, 2014 at 11:14 PM ·
applerigidbody-collisionedgescollision-detectioncollision-error
Edge Collision Issue
I used an apple for just show whats happen, How I can fix that with Edge Collision. Here the Example: Video
Comment
What are you using to control the motion?
A simple code here : [$$anonymous$$ovement Code][1] [1]: http://pastebin.com/q$$anonymous$$7UJuh1
It may not be the only problem, but physics-related stuff belongs in FixedUpdate(){}. You should collect your frame input in Update() and apply it in FixedUpdate(). Also, moving rigidbody components by transform.Translate() will cause odd behavior if the body is non-kinematic. The ideal way is to move non-kinematic bodies using AddForce() and its variants.
Best Answer
Answer by Axtrainz · Nov 09, 2014 at 02:49 AM
@AlwaysSunny Thank you, already Fixed the problem with AddForce();