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.

Newcomers AppGameKit Corner / GetObjectPivot x/y/z ?

Author
Message
Blendman
6
Years of Service
User Offline
Joined: 17th Feb 2014
Location: Arkeos
Posted: 19th Mar 2018 10:35 Edited at: 19th Mar 2018 11:02
Hi

With Sprite, we can know the offset of the sprite.
But with an object, how could I know know the position of its pivot (without changing its pivot of course, so not fixObjectpivot()) ?

Is there a GetObjectPivotX() / Y / Z or how can I get it ?
AGK2 tier1 - http://www.dracaena-studio.com
Bengismo
2
Years of Service
User Offline
Joined: 20th Nov 2017
Location: Yorkshire, England
Posted: 19th Mar 2018 13:40 Edited at: 19th Mar 2018 14:00
A 3D objects Pivot its 0.0, 0.0, 0.0

If the object is positioned at 0,0,0 then it rotates around X,Y,Z axis

If the object is positioned at dx,dy,dz then it rotates around the point dx,dy,dz in space.

Obviously if you then position the object somewhere and use the fixobjectpivot then its new pivot point becomes 0,0,0 again.

Did you mean an object with children and bone positions??
blink0k
AGK Developer
7
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 19th Mar 2018 20:13 Edited at: 19th Mar 2018 20:14
sorry. misunderstood

Login to post a reply

Server time is: 2020-04-08 17:25:41
Your offset time is: 2020-04-08 17:25:41