CollisionBox

from panda3d.core import CollisionBox
class CollisionBox

Bases: CollisionSolid

A cuboid collision volume or object.

Inheritance diagram

Inheritance diagram of CollisionBox

__init__(*args, **kwargs)
center
dimensions
getCenter()

C++ Interface: get_center(CollisionBox self)

/**

*/

getClassType()

C++ Interface: get_class_type()

getDimensions()

C++ Interface: get_dimensions(CollisionBox self)

/**

*/

getMax()

C++ Interface: get_max(CollisionBox self)

/**

*/

getMin()

C++ Interface: get_min(CollisionBox self)

/**

*/

getNumPlanes()

C++ Interface: get_num_planes(CollisionBox self)

/**
  • Returns 6: the number of faces of a rectangular solid.

*/

getNumPoints()

C++ Interface: get_num_points(CollisionBox self)

/**
  • Returns 8: the number of vertices of a rectangular solid.

*/

getPlane()

C++ Interface: get_plane(CollisionBox self, int n)

/**
  • Returns the nth face of the rectangular solid.

*/

getPoint()

C++ Interface: get_point(CollisionBox self, int n)

/**
  • Returns the nth vertex of the OBB.

*/

getPointAabb()

C++ Interface: get_point_aabb(CollisionBox self, int n)

/**
  • Returns the nth vertex of the Axis Aligned Bounding Box.

*/

get_center()

C++ Interface: get_center(CollisionBox self)

/**

*/

get_class_type()

C++ Interface: get_class_type()

get_dimensions()

C++ Interface: get_dimensions(CollisionBox self)

/**

*/

get_max()

C++ Interface: get_max(CollisionBox self)

/**

*/

get_min()

C++ Interface: get_min(CollisionBox self)

/**

*/

get_num_planes()

C++ Interface: get_num_planes(CollisionBox self)

/**
  • Returns 6: the number of faces of a rectangular solid.

*/

get_num_points()

C++ Interface: get_num_points(CollisionBox self)

/**
  • Returns 8: the number of vertices of a rectangular solid.

*/

get_plane()

C++ Interface: get_plane(CollisionBox self, int n)

/**
  • Returns the nth face of the rectangular solid.

*/

get_point()

C++ Interface: get_point(CollisionBox self, int n)

/**
  • Returns the nth vertex of the OBB.

*/

get_point_aabb()

C++ Interface: get_point_aabb(CollisionBox self, int n)

/**
  • Returns the nth vertex of the Axis Aligned Bounding Box.

*/

max
min
setCenter()

C++ Interface: set_center(const CollisionBox self, const LPoint3f center) set_center(const CollisionBox self, float x, float y, float z)

/**

*/

/**

*/

setPlane()

C++ Interface: set_plane(CollisionBox self, int n)

/**
  • Creates the nth face of the rectangular solid.

  • @deprecated Same as get_plane().

*/

set_center()

C++ Interface: set_center(const CollisionBox self, const LPoint3f center) set_center(const CollisionBox self, float x, float y, float z)

/**

*/

/**

*/

set_plane()

C++ Interface: set_plane(CollisionBox self, int n)

/**
  • Creates the nth face of the rectangular solid.

  • @deprecated Same as get_plane().

*/