- Home /
Question by
thosewhowait · 3 days ago ·
scripting problem
Problem occurs when I generate the Meshcollider via script
I really need your help!!
Whenever I generate the Meshcollider via script, the position of the Meshcollider doesn't match with the gameobject! (I assume that the position is located 0.0.0)
But when I generate the meshcollider in the editor of the gameobject, the position of the meshcollider is correct!
What is the problem and how can I correct the position?
Comment
MeshCollider component doesn't have a position property, it uses the gameObject's transform for that. Can you share some code and screenshots?