Panda3D

Functions | Variables
config_collide.cxx File Reference

PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University. More...

`#include "config_collide.h"`
`#include "collisionBox.h"`
`#include "collisionCapsule.h"`
`#include "collisionEntry.h"`
`#include "collisionHandler.h"`
`#include "collisionHandlerEvent.h"`
`#include "collisionHandlerHighestEvent.h"`
`#include "collisionHandlerFloor.h"`
`#include "collisionHandlerGravity.h"`
`#include "collisionHandlerPhysical.h"`
`#include "collisionHandlerPusher.h"`
`#include "collisionHandlerFluidPusher.h"`
`#include "collisionHandlerQueue.h"`
`#include "collisionInvSphere.h"`
`#include "collisionLine.h"`
`#include "collisionLevelStateBase.h"`
`#include "collisionGeom.h"`
`#include "collisionNode.h"`
`#include "collisionParabola.h"`
`#include "collisionPlane.h"`
`#include "collisionPolygon.h"`
`#include "collisionFloorMesh.h"`
`#include "collisionRay.h"`
`#include "collisionRecorder.h"`
`#include "collisionSegment.h"`
`#include "collisionSolid.h"`
`#include "collisionSphere.h"`
`#include "collisionTraverser.h"`
`#include "collisionVisualizer.h"`
`#include "dconfig.h"`

Go to the source code of this file.

## Functions
| Configure (config_collide)
| ConfigureFn (config_collide)
void | init_libcollide ()
| Initializes the library. More...
| NotifyCategoryDef (collide, "")

## Variables
ConfigVariableBool | allow_collider_multiple ("allow-collider-multiple", false, PRC_DESC("Set this true to enable the use of a DoubleBitMask or QuadBitMask " "to manage many " "colliders added to a single traverser in one pass. If this is " "false, a one-word BitMask is always used instead, which is faster " "per pass, but may require more passes."))
ConfigVariableInt | collision_parabola_bounds_sample ("collision-parabola-bounds-sample", 10, PRC_DESC("This is the number of points along a CollisionParabola to " "sample in order to determine an accurate bounding box."))
ConfigVariableDouble | collision_parabola_bounds_threshold ("collision-parabola-bounds-threshold", 10.0, PRC_DESC("This is the threshold size for a CollisionParabola to " "make a bounding box (BoundingHexahedron). If the parabola " "is smaller than this, it will make a BoundingSphere instead, " "which is much easier to make and will be good enough for " "small parabolas."))
ConfigVariableBool | flatten_collision_nodes ("flatten-collision-nodes", false, PRC_DESC("Set this true to allow NodePath::flatten_medium() and " "flatten_strong() to combine multiple CollisionNodes " "into a single CollisionNode--but only if they share the " "same name and collide masks. When false, CollisionNodes " "are never combined. This is false by default, since " "collision tests rely heavily on bounding volume tests " "to be efficient, and combining CollisionNodes is likely " "to merge bounding volumes inappropriately."))
ConfigVariableInt | fluid_cap_amount ("fluid-cap-amount", 100, PRC_DESC("ensures that fluid pos doesn't check beyond X feet"))
ConfigVariableBool | pushers_horizontal ("pushers-horizontal", false, PRC_DESC("Set this true to make all CollisionHandlerPushers have the " "set_horizontal() flag by default, false to let the move " "in three dimensions by default."))
ConfigVariableBool | respect_effective_normal ("respect-effective-normal", true, PRC_DESC("This should be true to support the effective_normal interface of " "polygons. Set it false to disable this feature, so that all " "collision solids (including polygons and planes) use their actual " "normal for intersection and physics tests."))
ConfigVariableBool | respect_prev_transform ("respect-prev-transform", false, PRC_DESC("Set this true to have all CollisionTraversers in the world respect " "the previous frame's transform (position) for a given object when " "determining motion for collision tests. If this is false, you must " "explicitly enable motion detection for a particular traverser. It " "is false by default to force programmers to decide on a " "case-by-case basis whether they really need this feature."))

## Detailed Description

PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.

All rights reserved.

All use of this software is subject to the terms of the revised BSD license. You should have received a copy of this license along with this source code in a file named "LICENSE."

Author
  drose

Date
  2000-04-24

Definition in file config_collide.cxx.

## Function Documentation

## ◆ init_libcollide()

void init_libcollide | ( |  | ) |

Initializes the library.

This must be called at least once before any of the functions or classes in this library can be used. Normally it will be called by the static initializers and need not be called explicitly, but special cases exist.

Definition at line 121 of file config_collide.cxx.

References BamWriter::record_obsolete_type_name(), CollisionBox::register_with_read_factory(), CollisionCapsule::register_with_read_factory(), CollisionFloorMesh::register_with_read_factory(), CollisionInvSphere::register_with_read_factory(), CollisionLine::register_with_read_factory(), CollisionNode::register_with_read_factory(), CollisionParabola::register_with_read_factory(), CollisionPlane::register_with_read_factory(), CollisionPolygon::register_with_read_factory(), CollisionRay::register_with_read_factory(), CollisionSegment::register_with_read_factory(), and CollisionSphere::register_with_read_factory().