x


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

more ▼

asked Jul 21 '11 at 07:49 PM

Wiplash gravatar image

Wiplash
1 3 3 4

(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

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

more ▼

answered Jul 21 '11 at 07:55 PM

Wiplash gravatar image

Wiplash
1 3 3 4

(comments are locked)
10|3000 characters needed characters left

It does, thx!

more ▼

answered Oct 11 '12 at 07:31 PM

Woland gravatar image

Woland
1

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x426
x181
x109

asked: Jul 21 '11 at 07:49 PM

Seen: 1184 times

Last Updated: Oct 11 '12 at 07:31 PM