panda3d.bullet.BulletCapsuleShape

from panda3d.bullet import BulletCapsuleShape
class BulletCapsuleShape

Bases: BulletShape

Inheritance diagram

Inheritance diagram of BulletCapsuleShape

__init__(copy: BulletCapsuleShape) → None
__init__(radius: float, height: float, up: BulletUpAxis) → None
static makeFromSolid(solid: CollisionCapsule) → BulletCapsuleShape

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

Return type

BulletCapsuleShape

getRadius() → float

Returns the radius that was used to construct this capsule.

getHalfHeight() → float

Returns half of getHeight().

Deprecated: see getHeight() instead.

static getClassType() → TypeHandle
Return type

TypeHandle

property radius

Returns the radius that was used to construct this capsule.

Return type

float

property height

Returns the height that was used to construct this capsule.

Return type

float