Page 1 of 1

How to change the Box WorldMatrix

Posted: Mon Feb 07, 2011 8:30 am
by endink
First on WP7,
i want use the box with nodynamic, and change the Box WorldMatrix by code, how to do this ?
some code sample?

Re: How to change the Box WorldMatrix

Posted: Mon Feb 07, 2011 8:07 pm
by Norbo
You could assign the entity.(Internal)WorldTransform to some 4x4 matrix representing a rigid transformation (rotation and translation only). This is equivalent to setting its (Internal)CenterPosition and (Internal)OrientationQuaternion.

Applying non-rigid transformations to entities is not supported in v0.14.3 and before. v0.15.0 adds a Transformable shape which can be used to transform another shape type by any linear transformation.

To create a non-dynamic entity, simply leave out the mass parameter in the entity's constructor.