Blender V2.61 - r43446
Public Member Functions | Public Attributes

PHY_IRayCastFilterCallback Class Reference

#include <PHY_IPhysicsEnvironment.h>

Inheritance diagram for PHY_IRayCastFilterCallback:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual ~PHY_IRayCastFilterCallback ()
virtual bool needBroadphaseRayCast (PHY_IPhysicsController *controller)
virtual void reportHit (PHY_RayCastResult *result)=0
 PHY_IRayCastFilterCallback (PHY_IPhysicsController *ignoreController, bool faceNormal=false, bool faceUV=false)

Public Attributes

PHY_IPhysicsControllerm_ignoreController
bool m_faceNormal
bool m_faceUV

Detailed Description

This class replaces the ignoreController parameter of rayTest function. It allows more sophisticated filtering on the physics controller before computing the ray intersection to save CPU. It is only used to its full extend by the Ccd physics environment (Bullet).

Definition at line 66 of file PHY_IPhysicsEnvironment.h.


Constructor & Destructor Documentation

virtual PHY_IRayCastFilterCallback::~PHY_IRayCastFilterCallback ( ) [inline, virtual]

Definition at line 73 of file PHY_IPhysicsEnvironment.h.

PHY_IRayCastFilterCallback::PHY_IRayCastFilterCallback ( PHY_IPhysicsController ignoreController,
bool  faceNormal = false,
bool  faceUV = false 
) [inline]

Definition at line 84 of file PHY_IPhysicsEnvironment.h.


Member Function Documentation

virtual bool PHY_IRayCastFilterCallback::needBroadphaseRayCast ( PHY_IPhysicsController controller) [inline, virtual]
virtual void PHY_IRayCastFilterCallback::reportHit ( PHY_RayCastResult result) [pure virtual]

Implemented in KX_RayCast.

Referenced by CcdPhysicsEnvironment::rayTest().


Member Data Documentation

Definition at line 70 of file PHY_IPhysicsEnvironment.h.

Referenced by CcdPhysicsEnvironment::rayTest().

Definition at line 71 of file PHY_IPhysicsEnvironment.h.

Referenced by CcdPhysicsEnvironment::rayTest().


The documentation for this class was generated from the following file: