Classes | Public Member Functions
ODERayShape Class Reference

Ray collision. More...

#include <ODERayShape.hh>

Inheritance diagram for ODERayShape:
Inheritance graph
[legend]

List of all members.

Classes

class  Intersection

Public Member Functions

 ODERayShape (PhysicsEnginePtr _physicsEngine)
 Constructor for a global ray.
 ODERayShape (CollisionPtr collision, bool displayRays)
 Constructor.
virtual ~ODERayShape ()
 Destructor.
virtual void Update ()
 Update the tay collision.
virtual void GetIntersection (double &_dist, std::string &_entity)
 Get the nearest intersection.
virtual void SetPoints (const math::Vector3 &posStart, const math::Vector3 &posEnd)
 Set the ray based on starting and ending points relative to the body.

Detailed Description

Ray collision.


Constructor & Destructor Documentation

ODERayShape ( CollisionPtr  collision,
bool  displayRays 
)

Constructor.

Parameters:
bodyLink the ray is attached to
displayRaysIndicates if the rays should be displayed when rendering images

Member Function Documentation

virtual void SetPoints ( const math::Vector3 posStart,
const math::Vector3 posEnd 
) [virtual]

Set the ray based on starting and ending points relative to the body.

Parameters:
posStartStart position, relative the body
posEndEnd position, relative to the body

Reimplemented from RayShape.


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