panda3d.core.CollisionSphere

class CollisionSphere

Bases: CollisionSolid

A spherical collision volume or object.

Inheritance diagram

Inheritance diagram of CollisionSphere

__init__(center: LPoint3, radius: float) → None
__init__(cx: float, cy: float, cz: float, radius: float) → None
property center

Getter Setter

Return type

LPoint3

getCenter() → LPoint3
Return type

LPoint3

static getClassType() → TypeHandle
Return type

TypeHandle

getRadius() → float
property radius

Getter Setter

Return type

float

setCenter(center: LPoint3) → None
setCenter(x: float, y: float, z: float) → None
setRadius(radius: float) → None