CollisionBox

from panda3d.core import CollisionBox
class CollisionBox

Bases:

Bases: CollisionSolid

A cuboid collision volume or object.

Inheritance diagram

Inheritance diagram of CollisionBox

__init__(min: LPoint3, max: LPoint3)

Create the Box by Specifying the Diagonal Points

__init__(center: LPoint3, x: float, y: float, z: float)

Create the Box by giving a Center and distances of each of the sides of box from the Center.

property center LPoint3
property dimensions LVector3
getCenter() LPoint3
static getClassType() TypeHandle
getDimensions() LVector3
getMax() LPoint3
getMin() LPoint3
getNumPlanes() int

Returns 6: the number of faces of a rectangular solid.

getNumPoints() int

Returns 8: the number of vertices of a rectangular solid.

getPlane(n: int) LPlane

Returns the nth face of the rectangular solid.

getPoint(n: int) LPoint3

Returns the nth vertex of the OBB.

getPointAabb(n: int) LPoint3

Returns the nth vertex of the Axis Aligned Bounding Box.

property max LPoint3
property min LPoint3
setCenter(center: LPoint3)
setCenter(x: float, y: float, z: float)
setPlane(n: int) LPlane

Creates the nth face of the rectangular solid.