- Home /
Question by
seanbiganski · Feb 04, 2019 at 09:20 PM ·
itween
Using iTween on Game Objects that have kinematic rigid bodies
Hi, I am attempting to use iTween MoveTo on an object that has a kinematic rigid body. I don't need physics but I do need Trigger collisions. When MoveTo is called, it cannot move the game object. If I remove the rigid body, it works as you'd expect.
Comment
Answer by seanbiganski · Feb 04, 2019 at 09:44 PM
I am not sure if this is the best solution but I modified iTween code. I changed this:
if(GetComponent() != null){ physics=true; }
to this:
if(GetComponent<Rigidbody>() != null && GetComponent<Rigidbody>().isKinematic == false)
{
physics=true;
}