Menu

#20 Scaling of Collision Shapes

open
Physics (7)
6
2011-01-21
2011-01-21
Matt Wash
No

Rigid bodies in the physics world "control" <node> elements in the visual scene but they get their initial position and size from the transormation information in the node. Currently position and rotation works fine but we need to apply any scaling to the rigid body's collision shape(s). For example, all cubes could share the same collsion shape (see last point) but the cubes can be different sizes so we can use the same collsion shape but call setLocalScaling() on it before using it to create a rigid body.

Discussion


Log in to post a comment.