Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Move 3d Object

Author
Message
Juande
12
Years of Service
User Offline
Joined: 2nd Sep 2011
Location:
Posted: 11th Dec 2012 18:20
Hi,

I am trying move a 3d object, but this moving has to depend on the object angle. I have seen the moveobjectlocalx (y or z) command, but these commands is not depending on the direction.

What command can I use?

Thanks
MikeMax
AGK Academic Backer
12
Years of Service
User Offline
Joined: 13th Dec 2011
Location: Paris
Posted: 11th Dec 2012 19:09 Edited at: 11th Dec 2012 19:10
MoveObjectLocalZ is THE command you're looking for.. theoretically. The local moves depend on the directions (angles)..

Do you have a part of code to show ? are you sure your model object is well oritented in the model file (OBJ ?) ?
Juande
12
Years of Service
User Offline
Joined: 2nd Sep 2011
Location:
Posted: 11th Dec 2012 22:15
Thanks MikeMax.

I had understood the opposite (Moveobjetlocal is not dependiing on the directions), when I read the help. Furthermore, I have discovered that my code was wrong... I was taking other object as reference and that object was static (was not rotating).

I am sorry for the stupid cuestion!

Thanks!
MikeMax
AGK Academic Backer
12
Years of Service
User Offline
Joined: 13th Dec 2011
Location: Paris
Posted: 12th Dec 2012 13:05
You're welcome

Login to post a reply

Server time is: 2024-04-28 12:43:33
Your offset time is: 2024-04-28 12:43:33