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)
__init__(ax: float, ay: float, az: float, bx: float, by: float, bz: float, radius: float)
static getClassType()TypeHandle
getPointA()LPoint3
getPointB()LPoint3
getRadius()float
property point_aLPoint3

Getter Setter

property point_bLPoint3

Getter Setter

property radiusfloat

Getter Setter

setPointA(a: LPoint3)None
setPointA(x: float, y: float, z: float)None
setPointB(b: LPoint3)None
setPointB(x: float, y: float, z: float)None
setRadius(radius: float)None