How to change the Box WorldMatrix

Discuss any questions about BEPUphysics or problems encountered.
Post Reply
endink
Posts: 2
Joined: Sun Feb 06, 2011 7:16 am

How to change the Box WorldMatrix

Post 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?
Norbo
Site Admin
Posts: 4929
Joined: Tue Jul 04, 2006 4:45 am

Re: How to change the Box WorldMatrix

Post 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.
Post Reply