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 Studio Chat / Object Pivot

Author
Message
MateiSoft
11
Years of Service
User Offline
Joined: 22nd Oct 2012
Location:
Posted: 11th Sep 2020 17:08 Edited at: 11th Sep 2020 17:13
Hi guys!

If I set in Blender the object pivot to be in the corner of an object and rotate it from that point, in AppGameKit, why is it rotating from the middle of the object as origin point?

The pivot is as in the photo.

Thank you!
www.alexmatei.com

Attachments

Login to view attachments
SFSW
21
Years of Service
User Offline
Joined: 9th Oct 2002
Location:
Posted: 11th Sep 2020 18:32
Perhaps your export operation in blender is centering the object before it saves out the file? Whatever the cause with the model itself, you can also optionally reset the center of the object to a new point like this in-code:



This will set the center of the object to a pivot point behind it by 5.0 units on Z by placing it ahead, then fixing its pivot. You can also set angles the same way for a different default rotation alignment.
MateiSoft
11
Years of Service
User Offline
Joined: 22nd Oct 2012
Location:
Posted: 11th Sep 2020 20:28
That solution which is great, or, to just move the object in Blender a bit away from the world center axis
www.alexmatei.com
smerf
19
Years of Service
User Offline
Joined: 24th Feb 2005
Location: nm usa
Posted: 12th Sep 2020 05:53
set object origin where u want it on the object then position the object at 0,0,0 before export. this is for individual objects. scenes can be exported as well but each object has to have its coords reset to zero inside agk but i believe they maintain their origin

MateiSoft
11
Years of Service
User Offline
Joined: 22nd Oct 2012
Location:
Posted: 12th Sep 2020 22:54
thank you both of you for your help!
www.alexmatei.com

Login to post a reply

Server time is: 2024-04-25 08:57:04
Your offset time is: 2024-04-25 08:57:04