Open GoogleCodeExporter opened 8 years ago
Hi, is there a resolution to this? I started a new project today and wanted to use iTween MoveTo but I need to detect various trigger collisions. Using a kinematic rigid body seems to prevent iTween from moving the object.
In case someone else encounters this, I solved it by modifying the iTween script.
I changed this:
if(GetComponent() != null){ physics=true; }
to this:
if(GetComponent<Rigidbody>() != null && GetComponent<Rigidbody>().isKinematic == false) { physics=true; }
Many blessings to you for sharing, this was very helpful, I would never have figured out this on my own and my project would have been delayed for several weeks .
In case someone else encounters this, I solved it by modifying the iTween script.
I changed this:
if(GetComponent() != null){ physics=true; }
to this:
if(GetComponent<Rigidbody>() != null && GetComponent<Rigidbody>().isKinematic == false) { physics=true; }
Hi Would you please suggest on will line no to change this code in iTween.cs script?
Original issue reported on code.google.com by
justin.e...@gmail.com
on 26 May 2011 at 2:17Attachments: