panda3d.bullet.BulletCapsuleShape

class BulletCapsuleShape

Bases: BulletShape

Inheritance diagram

Inheritance diagram of BulletCapsuleShape

__init__(copy: BulletCapsuleShape) → None
__init__(radius: float, height: float, up: BulletUpAxis) → None
static getClassType() → TypeHandle
Return type

TypeHandle

getHalfHeight() → float

Returns half of getHeight().

Deprecated: see getHeight() instead.

getRadius() → float

Returns the radius that was used to construct this capsule.

property height

Returns the height that was used to construct this capsule.

Return type

float

static makeFromSolid(solid: CollisionCapsule) → BulletCapsuleShape

Constructs a new BulletCapsuleShape using the information from a CollisionCapsule from the builtin collision system.

Return type

BulletCapsuleShape

property radius

Returns the radius that was used to construct this capsule.

Return type

float