BoundingSphere

from panda3d.core import BoundingSphere
class BoundingSphere

Bases: FiniteBoundingVolume

This defines a bounding sphere, consisting of a center and a radius. It is always a sphere, and never an ellipsoid or other quadric.

Inheritance diagram

Inheritance diagram of BoundingSphere

__init__()

Constructs an empty sphere.

__init__(center: LPoint3, radius: float)

Constructs a specific sphere.

property centerLPoint3

Getter Setter

Sets the center point of the sphere.

getCenter()LPoint3
static getClassType()TypeHandle
getRadius()float
operatorNew(size: int)None
property radiusfloat

Getter Setter

Sets the radius of the sphere.

setCenter(center: LPoint3)None

Sets the center point of the sphere.

setRadius(radius: float)None

Sets the radius of the sphere.