PixelLightAPI
.
|
Abstract PL physics ray cast sensor. More...
#include <SensorRaycast.h>
Public Member Functions | |
virtual PLPHYSICS_API | ~SensorRaycast () |
Destructor. | |
PLPHYSICS_API const PLMath::Vector3 & | GetStart () const |
Returns the start point. | |
PLPHYSICS_API void | SetStart (const PLMath::Vector3 &vPoint) |
Sets the start point. | |
PLPHYSICS_API const PLMath::Vector3 & | GetEnd () const |
Returns the end point. | |
PLPHYSICS_API void | SetEnd (const PLMath::Vector3 &vPoint) |
Sets the end point. | |
Protected Member Functions | |
PLPHYSICS_API | SensorRaycast (World &cWorld, const PLMath::Vector3 &vStart=PLMath::Vector3::Zero, const PLMath::Vector3 &vEnd=PLMath::Vector3::Zero, PLCore::uint32 nFlags=0) |
Constructor. | |
Protected Attributes | |
PLMath::Vector3 | m_vStart |
PLMath::Vector3 | m_vEnd |
Abstract PL physics ray cast sensor.
virtual PLPHYSICS_API PLPhysics::SensorRaycast::~SensorRaycast | ( | ) | [virtual] |
Destructor.
PLPHYSICS_API PLPhysics::SensorRaycast::SensorRaycast | ( | World & | cWorld, |
const PLMath::Vector3 & | vStart = PLMath::Vector3::Zero , |
||
const PLMath::Vector3 & | vEnd = PLMath::Vector3::Zero , |
||
PLCore::uint32 | nFlags = 0 |
||
) | [protected] |
Constructor.
[in] | cWorld | World this sensor is in |
[in] | vStart | Beginning of the ray in global space |
[in] | vEnd | End of the ray in global space |
[in] | nFlags | Flags (see EFlags) |
PLPHYSICS_API const PLMath::Vector3& PLPhysics::SensorRaycast::GetStart | ( | ) | const |
Returns the start point.
PLPHYSICS_API void PLPhysics::SensorRaycast::SetStart | ( | const PLMath::Vector3 & | vPoint | ) |
Sets the start point.
[in] | vPoint | The new start point |
PLPHYSICS_API const PLMath::Vector3& PLPhysics::SensorRaycast::GetEnd | ( | ) | const |
Returns the end point.
PLPHYSICS_API void PLPhysics::SensorRaycast::SetEnd | ( | const PLMath::Vector3 & | vPoint | ) |
Sets the end point.
[in] | vPoint | The new end point |
PLMath::Vector3 PLPhysics::SensorRaycast::m_vStart [protected] |
The start point
PLMath::Vector3 PLPhysics::SensorRaycast::m_vEnd [protected] |
The end point
|