CollisionVisualizer

from panda3d.core import CollisionVisualizer
class CollisionVisualizer

Bases:

Bases: PandaNode, CollisionRecorder

This class is used to help debug the work the collisions system is doing. It shows the polygons that are detected as collisions, as well as those that are simply considered for collisions.

It may be parented anywhere in the scene graph where it will be rendered to achieve this.

Inheritance diagram

Inheritance diagram of CollisionVisualizer

__init__(copy: CollisionVisualizer)

Copy constructor.

__init__(name: str)
clear()

Removes all the visualization data from a previous traversal and resets the visualizer to empty.

static getClassType() TypeHandle
getNormalScale() float

Returns the value last set by setNormalScale().

getPointScale() float

Returns the value last set by setPointScale().

property normal_scale float
Getter

Returns the value last set by setNormalScale().

Setter

Scales the line segments that are drawn to represent the normals of the collisions. By default, these objects are drawn at an arbitrary scale which is appropriate if the scene units are measured in feet. Change this scale accordinatly if the scene units are measured on some other scale or if you need to observe these normals from farther away.

property point_scale float
Getter

Returns the value last set by setPointScale().

Setter

Scales the points that are drawn to represent the surface and interior intersection points of the collisions. By default, these objects are drawn at an arbitrary scale which is appropriate if the window units are the default range -1 .. 1. Change this scale accordinatly if the window units are measured on some other scale or if you need to observe these objects in a smaller window.

setNormalScale(normal_scale: float)

Scales the line segments that are drawn to represent the normals of the collisions. By default, these objects are drawn at an arbitrary scale which is appropriate if the scene units are measured in feet. Change this scale accordinatly if the scene units are measured on some other scale or if you need to observe these normals from farther away.

setPointScale(point_scale: float)

Scales the points that are drawn to represent the surface and interior intersection points of the collisions. By default, these objects are drawn at an arbitrary scale which is appropriate if the window units are the default range -1 .. 1. Change this scale accordinatly if the window units are measured on some other scale or if you need to observe these objects in a smaller window.