Game Development Community

Rotate an object - but not around it's center?

by ChrisG · in Torque Game Engine · 09/28/2007 (5:25 am) · 2 replies

I've created a door script that allows the player to interact with the door and make it swing open and closed.

The problem is that the door rotates at its center and not at the hinge.

I think I need to move the pivot point of the dts door (created in 3ds max) - how to I do this? Will this actually work, and if not what other way is recommended?

#1
09/28/2007 (9:01 am)
You cant move the pivot point in script, you would need to export the door model with it's center aligned to the new pivot point.
#2
09/28/2007 (1:28 pm)
Thanks

found in the faqs how to do it max:
- (Command Panels -> Hierachy -> Pivot -> Affect Pivot Point)

It works fine now
.. door opens... door closes... door opens... door closes...