panda3d.core.CollisionCapsule

from panda3d.core import CollisionCapsule
class CollisionCapsule

Bases: CollisionSolid

This implements a solid consisting of a cylinder with hemispherical endcaps, also known as a capsule or a spherocylinder.

This shape was previously erroneously called CollisionTube.

Inheritance diagram

Inheritance diagram of CollisionCapsule

__init__(a: LPoint3, db: LPoint3, radius: float) → None
__init__(ax: float, ay: float, az: float, bx: float, by: float, bz: float, radius: float) → None
setPointA(a: LPoint3) → None
setPointA(x: float, y: float, z: float) → None
getPointA() → LPoint3
Return type

LPoint3

setPointB(b: LPoint3) → None
setPointB(x: float, y: float, z: float) → None
getPointB() → LPoint3
Return type

LPoint3

setRadius(radius: float) → None
getRadius() → float
static getClassType() → TypeHandle
Return type

TypeHandle

property point_a

Getter Setter

Return type

LPoint3

property point_b

Getter Setter

Return type

LPoint3

property radius

Getter Setter

Return type

float