SuperTuxKart
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
btKartRaycaster Class Reference
Inheritance diagram for btKartRaycaster:
Inheritance graph
[legend]

Public Member Functions

 btKartRaycaster (btDynamicsWorld *world, bool smooth_normals=false)
 
virtual void * castRay (const btVector3 &from, const btVector3 &to, btVehicleRaycasterResult &result)
 

Private Attributes

btDynamicsWorld * m_dynamicsWorld
 
bool m_smooth_normals
 True if the normals should be smoothed.
 

Member Function Documentation

◆ castRay()

void * btKartRaycaster::castRay ( const btVector3 &  from,
const btVector3 &  to,
btVehicleRaycasterResult &  result 
)
virtual

Constructor, initialises the triangle index.

Stores the index of the triangle hit.

Returns the index of the triangle which was hit, or -1 if no triangle was hit.

Member Data Documentation

◆ m_smooth_normals

bool btKartRaycaster::m_smooth_normals
private

True if the normals should be smoothed.

Not all tracks support this, so this flag is set depending on track when constructing this object.


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