Back to index

supertuxkart  0.5+dfsg1
Public Member Functions | Private Attributes
btDefaultVehicleRaycaster Class Reference

#include <btRaycastVehicle.h>

Inheritance diagram for btDefaultVehicleRaycaster:
Inheritance graph
Collaboration diagram for btDefaultVehicleRaycaster:
Collaboration graph

List of all members.

Public Member Functions

 btDefaultVehicleRaycaster (btDynamicsWorld *world)
virtual void * castRay (const btVector3 &from, const btVector3 &to, btVehicleRaycasterResult &result)

Private Attributes


Detailed Description

Definition at line 192 of file btRaycastVehicle.h.

Constructor & Destructor Documentation

Definition at line 196 of file btRaycastVehicle.h.


Member Function Documentation

void * btDefaultVehicleRaycaster::castRay ( const btVector3 from,
const btVector3 to,
btVehicleRaycasterResult result 
) [virtual]

Implements btVehicleRaycaster.

Definition at line 706 of file btRaycastVehicle.cpp.

//     RayResultCallback& resultCallback;

       btCollisionWorld::ClosestRayResultCallback rayCallback(from,to);

       m_dynamicsWorld->rayTest(from, to, rayCallback);

       if (rayCallback.HasHit())
              btRigidBody* body = btRigidBody::upcast(rayCallback.m_collisionObject);
              if (body)
                     result.m_hitPointInWorld = rayCallback.m_hitPointWorld;
                     result.m_hitNormalInWorld = rayCallback.m_hitNormalWorld;
                     result.m_distFraction = rayCallback.m_closestHitFraction;
                     return body;
       return 0;

Here is the call graph for this function:

Member Data Documentation

Definition at line 194 of file btRaycastVehicle.h.

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