Overloads
PhysicsShape AddBoxShape (Vector3 position, Rotation rotation, Vector3 extent, bool rebuildMass)

Parameters

NameTypeDescription
position Vector3 Center of the box, relative to of this body.
rotation Rotation Rotation of the box, relative to of this body.
extent Vector3 The extents of the box. The box will extend from its center by this much in both negative and positive directions of each axis.
rebuildMass = True bool Whether the mass should be recalculated after adding the shape.

Returns

TypeDescription
PhysicsShape The newly created shape, or null on failure.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.