PhysicsShape AddCapsuleShape (Vector3 center, Vector3 center2, float radius, bool rebuildMass)

Parameters

NameTypeDescription
center Vector3 Point A of the capsule, relative to of this body.
center2 Vector3 Point B of the capsule, relative to of this body.
radius float Radius of the capsule end caps.
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.