PixelLightAPI  .
Public Member Functions | Protected Member Functions | Protected Attributes
PLPhysics::SensorRaycast Class Reference

Abstract PL physics ray cast sensor. More...

#include <SensorRaycast.h>

Inheritance diagram for PLPhysics::SensorRaycast:
Inheritance graph
[legend]

List of all members.

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

Detailed Description

Abstract PL physics ray cast sensor.


Constructor & Destructor Documentation

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.

Parameters:
[in]cWorldWorld this sensor is in
[in]vStartBeginning of the ray in global space
[in]vEndEnd of the ray in global space
[in]nFlagsFlags (see EFlags)

Member Function Documentation

PLPHYSICS_API const PLMath::Vector3& PLPhysics::SensorRaycast::GetStart ( ) const

Returns the start point.

Returns:
The start point
PLPHYSICS_API void PLPhysics::SensorRaycast::SetStart ( const PLMath::Vector3 vPoint)

Sets the start point.

Parameters:
[in]vPointThe new start point
PLPHYSICS_API const PLMath::Vector3& PLPhysics::SensorRaycast::GetEnd ( ) const

Returns the end point.

Returns:
The end point
PLPHYSICS_API void PLPhysics::SensorRaycast::SetEnd ( const PLMath::Vector3 vPoint)

Sets the end point.

Parameters:
[in]vPointThe new end point

Member Data Documentation

The start point

The end point


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


PixelLight PixelLight 0.9.11-R1
Copyright (C) 2002-2012 by The PixelLight Team
Last modified Thu Feb 23 2012 14:09:38
The content of this PixelLight document is published under the
Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported