Public Member Functions

sp::scene::CollisionPlane Class Reference
[Collision System]

#include <spCollisionPlane.hpp>

Inheritance diagram for sp::scene::CollisionPlane:
sp::scene::CollisionNode sp::BaseObject

List of all members.

Public Member Functions

 CollisionPlane (CollisionMaterial *Material, SceneNode *Node, const dim::plane3df &Plane)
 ~CollisionPlane ()
s32 getSupportFlags () const
f32 getMaxMovement () const
bool checkIntersection (const dim::line3df &Line, SIntersectionContact &Contact) const
bool checkIntersection (const dim::line3df &Line, bool ExcludeCorners=false) const
void setPlane (const dim::plane3df &Plane)
dim::plane3df getPlane () const

Detailed Description

CollisionPlane is one of the collision models with only a position and normal vector.


Constructor & Destructor Documentation

sp::scene::CollisionPlane::CollisionPlane ( CollisionMaterial Material,
SceneNode Node,
const dim::plane3df Plane 
)
sp::scene::CollisionPlane::~CollisionPlane (  ) 

Member Function Documentation

bool sp::scene::CollisionPlane::checkIntersection ( const dim::line3df Line,
SIntersectionContact Contact 
) const [virtual]

Checks for an intersection between this collision object and the given line and stores the result in the specified contact structure.

Parameters:
Line,: Specifies the line which could intersect this object.
Contact,: Specifies the structure where the intersection result will be stored.
Note:
The implementations of this interface function normally only store the point and normal vector of an intersection.

Reimplemented from sp::scene::CollisionNode.

bool sp::scene::CollisionPlane::checkIntersection ( const dim::line3df Line,
bool  ExcludeCorners = false 
) const [virtual]

Returns true if an intersection between this collision object and the given line exists but does not return any further information.

Parameters:
Line,: Specifies the line which could intersect this object.
ExcludeCorners,: Specifies whether the line's corners should be ingored. This can be useful for ray-tracing or lightmapping to avoid self-shadowing.

Reimplemented from sp::scene::CollisionNode.

f32 sp::scene::CollisionPlane::getMaxMovement (  )  const [virtual]

Returns the maximal movement (e.g. for a sphere it's the radius). This is used internally. A collision node can still be moved faster than this value.

Implements sp::scene::CollisionNode.

dim::plane3df sp::scene::CollisionPlane::getPlane (  )  const [inline]
s32 sp::scene::CollisionPlane::getSupportFlags (  )  const [virtual]
void sp::scene::CollisionPlane::setPlane ( const dim::plane3df Plane  )  [inline]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines