Page 1 of 1

Changing the geometric position

Posted: Fri Jul 24, 2009 5:22 pm
by imtrobin
Hi

I like to request for a vector3 offset to adjust the geometric position so it is not in the centre of the shape. PhysX has it in localPose when creating the shape.

Re: Changing the geometric position

Posted: Fri Jul 24, 2009 5:37 pm
by Norbo
The centerPosition will not support an offset as it is intended to be the actual center position of the collision shape. Some other convenience functionality that wraps the center position is possible, but it would need to be designed in a clean and straightforward way. I'm wary of continuing the 'giant list of properties' trend in the Entity class.

In what way would you be using this functionality? Would it be a simple rendering offset convenience, or is there some deeper functionality that you need?

Re: Changing the geometric position

Posted: Sat Jul 25, 2009 6:25 am
by imtrobin
Yes ,it is for rendering offset as objects can be centred as the base for rendering, not the centre.