TDME2 1.9.121
Public Member Functions | Private Attributes | Friends | List of all members
CollisionResponse_Entity Class Referencefinal

Collision response entity. More...

#include <tdme/engine/physics/CollisionResponse_Entity.h>

Collaboration diagram for CollisionResponse_Entity:
Collaboration graph

Public Member Functions

 CollisionResponse_Entity ()
 Public constructor. More...
 
float getDistance ()
 
void setDistance (float distance)
 Set distance. More...
 
float getPenetration ()
 
const Vector3getNormal ()
 
void setNormal (const Vector3 &normal)
 Set normal. More...
 
void addHitPoint (const Vector3 &hitPoint)
 Adds a hit point. More...
 
int32_t getHitPointCount ()
 
Vector3getHitPoint (int32_t idx)
 Get hit point of given index. More...
 

Private Attributes

float distance
 
Vector3 normal
 
vector< Vector3hitPoints
 

Friends

class CollisionResponse
 

Detailed Description

Collision response entity.

Author
Andreas Drewke
Version
$Id$

Definition at line 23 of file CollisionResponse_Entity.h.

Constructor & Destructor Documentation

◆ CollisionResponse_Entity()

Public constructor.

Definition at line 36 of file CollisionResponse_Entity.h.

Member Function Documentation

◆ addHitPoint()

void addHitPoint ( const Vector3 hitPoint)
inline

Adds a hit point.

Parameters
hitPointhit point

Definition at line 80 of file CollisionResponse_Entity.h.

◆ getDistance()

float getDistance ( )
inline
Returns
distance

Definition at line 42 of file CollisionResponse_Entity.h.

◆ getHitPoint()

Vector3 & getHitPoint ( int32_t  idx)
inline

Get hit point of given index.

Parameters
idxindex
Returns
hit point for given hit points index

Definition at line 100 of file CollisionResponse_Entity.h.

◆ getHitPointCount()

int32_t getHitPointCount ( )
inline
Returns
hit point count

Definition at line 91 of file CollisionResponse_Entity.h.

◆ getNormal()

const Vector3 & getNormal ( )
inline
Returns
normal

Definition at line 64 of file CollisionResponse_Entity.h.

◆ getPenetration()

float getPenetration ( )
inline
Returns
penetration

Definition at line 57 of file CollisionResponse_Entity.h.

◆ setDistance()

void setDistance ( float  distance)
inline

Set distance.

Parameters
distancedistance

Definition at line 50 of file CollisionResponse_Entity.h.

◆ setNormal()

void setNormal ( const Vector3 normal)
inline

Set normal.

Parameters
normalnormal

Definition at line 72 of file CollisionResponse_Entity.h.

Friends And Related Function Documentation

◆ CollisionResponse

friend class CollisionResponse
friend

Definition at line 25 of file CollisionResponse_Entity.h.

Member Data Documentation

◆ distance

float distance
private

Definition at line 28 of file CollisionResponse_Entity.h.

◆ hitPoints

vector<Vector3> hitPoints
private

Definition at line 30 of file CollisionResponse_Entity.h.

◆ normal

Vector3 normal
private

Definition at line 29 of file CollisionResponse_Entity.h.


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