- Home /
iTween MoveAdd world coordinates Simple
Hi there,
I am having a great deal of trouble simply moving an object by world space in iTween. Here is some code I have that run on collision.
iTween.MoveAdd(collision.gameObject,{"y":3, "time":4, "space":world});
it throws up an error saying reverting to default space type as "world" is not a valid type. I have tried isLocal:true and nothing seems to work. I'm not sure if it's due to the fact these objects are instantiated .FBX models or not.
Please help it's driving me crazy
Will
Answer by Wiplash · Jul 21, 2011 at 07:55 PM
I managed to solve my own problem before getting a reply by trying every combination under the sun. The syntax doesn't seem to be written online anywhere i could see. It goes like this:-
iTween.MoveAdd(collision.gameObject,{"y":3, "time":4, "Space":"world"});
hope this helps someone
Your answer
Follow this Question
Related Questions
max dimensions of Unity world space (bounds for the x,y,z values of vector3)? 2 Answers
GUI in 3D world space "Monitors / Screens / Displays" 1 Answer
Is there a local method for Rigidbody.constraints? 0 Answers
Beyond boundary flat extension terrain? 1 Answer
Convert world space to GUI Rect? 5 Answers