# Home    # nevrax.com   
Nevrax
Nevrax.org
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
Docs
 
Documentation  
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  

NL3D::CPSCollisionInfo Struct Reference

This structure helps to perform the collision step, by telling which collisionner is the nearest if there are several candidate a distance of -1 indicates that no collisions occured. More...

#include <ps_located.h>

List of all members.

Public Methods

 CPSCollisionInfo ()
void reset (void)
void serial (NLMISC::IStream &f) throw (NLMISC::EStream)

Public Attributes

float TimeSliceRatio
float dist
 Tells how mush of this time step is being used. More...

NLMISC::CVector newPos
NLMISC::CVector newSpeed
CPSZonecollisionZone
 the zone on which the bounce occured... More...


Detailed Description

This structure helps to perform the collision step, by telling which collisionner is the nearest if there are several candidate a distance of -1 indicates that no collisions occured.

Definition at line 74 of file ps_located.h.


Constructor & Destructor Documentation

NL3D::CPSCollisionInfo::CPSCollisionInfo   [inline]
 

Definition at line 93 of file ps_located.h.

References reset.


Member Function Documentation

void NL3D::CPSCollisionInfo::reset void    [inline]
 

Definition at line 97 of file ps_located.h.

References dist, and TimeSliceRatio.

Referenced by CPSCollisionInfo.

void NL3D::CPSCollisionInfo::serial NLMISC::IStream   f throw (NLMISC::EStream) [inline]
 

Definition at line 103 of file ps_located.h.

References dist.


Member Data Documentation

CPSZone* NL3D::CPSCollisionInfo::collisionZone
 

the zone on which the bounce occured...

can be useful to check the behaviour in case of collision

Definition at line 91 of file ps_located.h.

float NL3D::CPSCollisionInfo::dist
 

Tells how mush of this time step is being used.

This is usually 1.0, unless. The object was just emitted. In this case, this can range from 0 to 1 (When several emission occured within the same time step)

Definition at line 83 of file ps_located.h.

Referenced by reset, and serial.

NLMISC::CVector NL3D::CPSCollisionInfo::newPos
 

Definition at line 85 of file ps_located.h.

NLMISC::CVector NL3D::CPSCollisionInfo::newSpeed
 

Definition at line 85 of file ps_located.h.

float NL3D::CPSCollisionInfo::TimeSliceRatio
 

Definition at line 77 of file ps_located.h.

Referenced by reset.


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