getCenter LPoint3f const &CollisionSphere::get_center(void) const; Description: |
getClassType static TypeHandle CollisionSphere::get_class_type(void); Undocumented function. |
getRadius float CollisionSphere::get_radius(void) const; Description: |
setCenter void CollisionSphere::set_center(LPoint3f const ¢er); Description: |
setRadius void CollisionSphere::set_radius(float radius); Description: |
clearEffectiveNormal void CollisionSolid::clear_effective_normal(void); Description: Removes the normal previously set by set_effective_normal(). |
getClassType static TypeHandle CollisionSolid::get_class_type(void); Undocumented function. |
getEffectiveNormal LVector3f const &CollisionSolid::get_effective_normal(void) const; Description: Returns the normal that was set by set_effective_normal(). It is an error to call this unless has_effective_normal() returns true. |
getRespectEffectiveNormal bool CollisionSolid::get_respect_effective_normal(void) const; Description: See set_respect_effective_normal(). |
hasEffectiveNormal bool CollisionSolid::has_effective_normal(void) const; Description: Returns true if a special normal was set by set_effective_normal(), false otherwise. |
isTangible bool CollisionSolid::is_tangible(void) const; Description: Returns whether the solid is considered 'tangible' or not. An intangible solid has no effect in a CollisionHandlerPusher (except to throw an event); it's useful for defining 'trigger' planes and spheres, that cause an effect when passed through. |
output virtual void CollisionSolid::output(ostream &out) const; Description: |
setEffectiveNormal void CollisionSolid::set_effective_normal(LVector3f const &effective_normal); Description: Records a false normal for this CollisionSolid that will be reported by the collision system with all collisions into it, instead of its actual normal. This is useful as a workaround for the problem of an avatar wanting to stand on a sloping ground; by storing a false normal, the ground appears to be perfectly level, and the avatar does not tend to slide down it. |
setRespectEffectiveNormal void CollisionSolid::set_respect_effective_normal(bool respect_effective_normal); Description: This is only meaningful for CollisionSolids that will be added to a traverser as colliders. It is normally true, but if set false, it means that this particular solid does not care about the "effective" normal of other solids it meets, but rather always uses the true normal. |
setTangible void CollisionSolid::set_tangible(bool tangible); Filename: collisionSolid.I Created by: drose (27Jun00) PANDA 3D SOFTWARE Copyright (c) 2001 - 2004, Disney Enterprises, Inc. All rights reserved All use of this software is subject to the terms of the Panda 3d Software license. You should have received a copy of this license along with this source code; you will also find a current copy of the license at http://etc.cmu.edu/panda3d/docs/license/ . To contact the maintainers of this program write to panda3d-general@lists.sourceforge.net . Description: Sets the current state of the 'tangible' flag. Set this true to make the solid tangible, so that a CollisionHandlerPusher will not allow another object to intersect it, or false to make it intangible, so that a CollisionHandlerPusher will ignore it except to throw an event. |
write virtual void CollisionSolid::write(ostream &out, int indent_level = (0)) const; Description: |
getClassType static TypeHandle TypedWritableReferenceCount::get_class_type(void); Undocumented function. |
getClassType static TypeHandle TypedWritable::get_class_type(void); Undocumented function. |
getBestParentFromSet int TypedObject::get_best_parent_from_Set(set< int > const &) const; Description: Returns true if the current object is the indicated type exactly. |
getClassType static TypeHandle TypedObject::get_class_type(void); Undocumented function. |
getType virtual TypeHandle TypedObject::get_type(void) const = 0; Derived classes should override this function to return get_class_type(). |
getTypeIndex int TypedObject::get_type_index(void) const; Description: Returns the internal index number associated with this object's TypeHandle, a unique number for each different type. This is equivalent to get_type().get_index(). |
isExactType bool TypedObject::is_exact_type(TypeHandle handle) const; Description: Returns true if the current object is the indicated type exactly. |
isOfType bool TypedObject::is_of_type(TypeHandle handle) const; Description: Returns true if the current object is or derives from the indicated type. |
getClassType static TypeHandle ReferenceCount::get_class_type(void); Undocumented function. |
getRefCount int ReferenceCount::get_ref_count(void) const; Description: Returns the current reference count. |
ref int ReferenceCount::ref(void) const; Description: Explicitly increments the reference count. User code should avoid using ref() and unref() directly, which can result in missed reference counts. Instead, let a PointerTo object manage the reference counting automatically. This function is const, even though it changes the object, because generally fiddling with an object's reference count isn't considered part of fiddling with the object. An object might be const in other ways, but we still need to accurately count the number of references to it. The return value is the new reference count. |
testRefCountIntegrity bool ReferenceCount::test_ref_count_integrity(void) const; Description: Does some easy checks to make sure that the reference count isn't completely bogus. Returns true if ok, false otherwise. |
unref int ReferenceCount::unref(void) const; Description: Explicitly decrements the reference count. Note that the object will not be implicitly deleted by unref() simply because the reference count drops to zero. (Having a member function delete itself is problematic; plus, we don't have a virtual destructor anyway.) However, see the helper function unref_delete(). User code should avoid using ref() and unref() directly, which can result in missed reference counts. Instead, let a PointerTo object manage the reference counting automatically. This function is const, even though it changes the object, because generally fiddling with an object's reference count isn't considered part of fiddling with the object. An object might be const in other ways, but we still need to accurately count the number of references to it. The return value is the new reference count. |
forceBoundStale void BoundedObject::force_bound_stale(void); Description: Marks the current volume as stale and propagates the effect at least one level, even if it had already been marked stale. |
getBound BoundingVolume const &BoundedObject::get_bound(void) const; Description: Returns the current bounding volume on this node, possibly forcing a recompute. A node's bounding volume encloses only the node itself, irrespective of the nodes above or below it in the graph. This is different from the bounding volumes on the arcs, which enclose all geometry below them. |
getClassType static TypeHandle BoundedObject::get_class_type(void); Undocumented function. |
isBoundStale bool BoundedObject::is_bound_stale(void) const; Description: Returns true if the bound is currently marked stale and will be recomputed the next time get_bound() is called. This function is defined up at the top of this file, because several of the inline functions below reference it. |
isFinal bool BoundedObject::is_final(void) const; Description: Returns the current state of the "final" flag. Initially, this flag is off (false), but it may be changed by an explicit call to set_final(). See set_final(). |
markBoundStale bool BoundedObject::mark_bound_stale(void); Description: Marks the current bounding volume as stale, so that it will be recomputed later. This may have a cascading effect up to the root of all graphs of which the node is a part. Returns true if the setting was changed, or false if it was already marked stale (or if it is a static bounding volume). |
setBound void BoundedObject::set_bound(BoundedObject::BoundingVolumeType type); Description: Sets the type of the bounding volume that will be dynamically computed for this particular node. Presently, this should only be BVT_dynamic_sphere. Description: Explicitly sets a new bounding volume on this node. This will be a static bounding volume that will no longer be recomputed automatically. |
setFinal void BoundedObject::set_final(bool flag); Description: Sets the "final" flag on this BoundedObject. If this is true, than no bounding volume need be tested below it; a positive intersection with this bounding volume is deemed to be a positive intersection with all geometry inside. This is useful to quickly force a larger bounding volume around a node when the GeomNodes themselves are inaccurate for some reason, without forcing a recompute of every nested bounding volume. It's also helpful when the bounding volume is tricked by some special properties, like billboards, that may move geometry out of its bounding volume otherwise. |