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
get_center() → LPoint3
static get_class_type() → TypeHandle
get_dimensions() → LVector3
get_max() → LPoint3
get_min() → LPoint3
get_num_planes() → int

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

get_num_points() → int

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

get_plane(n: int) → LPlane

Returns the nth face of the rectangular solid.

get_point(n: int) → LPoint3

Returns the nth vertex of the OBB.

get_point_aabb(n: int) → LPoint3

Returns the nth vertex of the Axis Aligned Bounding Box.

property max → LPoint3
property min → LPoint3
set_center(center: LPoint3)
set_center(x: float, y: float, z: float)
set_plane(n: int) → LPlane

Creates the nth face of the rectangular solid.

Deprecated: Same as get_plane().