/// This structure helps to perform the collision step, by telling which collisionner is the nearest if there are several candidate
/// 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
/// a distance of -1 indicates that no collisions occurred
structCPSCollisionInfo
structCPSCollisionInfo
{
{
CPSCollisionInfo*Next;
CPSCollisionInfo*Next;
floatDist;// Distance to the nearest collider, or -1 if not collision occured
floatDist;// Distance to the nearest collider, or -1 if not collision occurred
NLMISC::CVectorNewPos;
NLMISC::CVectorNewPos;
NLMISC::CVectorNewSpeed;// The speed of particle after a collision occured. After the updated of collision it is swapped with the post-collision speed
NLMISC::CVectorNewSpeed;// The speed of particle after a collision occurred. After the updated of collision it is swapped with the post-collision speed
CPSZone*CollisionZone;// The zone on which the bounce occured, can be useful to check the behaviour in case of collision
CPSZone*CollisionZone;// The zone on which the bounce occurred, can be useful to check the behaviour in case of collision
uint32Index;
uint32Index;
CPSCollisionInfo()
CPSCollisionInfo()
{
{
@ -906,10 +906,10 @@ protected:
*/
*/
virtualvoidresize(uint32size)=0;
virtualvoidresize(uint32size)=0;
/** a bounce occured, so some action could be done. The default behaviour does nothing
/** a bounce occurred, so some action could be done. The default behaviour does nothing
*\paramindextheindexoftheelementthatbounced
*\paramindextheindexoftheelementthatbounced
*/
*/
virtualvoidbounceOccured(uint32/* index */,TAnimationTime/* timeToNextsimStep */){}
virtualvoidbounceOccurred(uint32/* index */,TAnimationTime/* timeToNextsimStep */){}
/** show an drawing to represent the object, and in red if it is selected
/** show an drawing to represent the object, and in red if it is selected
/* 1. Associate Entity Index to a new TCLEntityId (or get exiting association if this new association occured before a dissociation acknowledge from the client)
/* 1. Associate Entity Index to a new TCLEntityId (or get exiting association if this new association occurred before a dissociation acknowledge from the client)
nlwarning("Error '%s' (%d) occured when trying to check free disk space on %s, continue anyway",NLMISC::formatErrorMessage(error).c_str(),error,Q2C(m_dstDirectory));
nlwarning("Error '%s' (%d) occurred when trying to check free disk space on %s, continue anyway",NLMISC::formatErrorMessage(error).c_str(),error,Q2C(m_dstDirectory));
nlwarning("Error '%s' (%d) occured when trying to check free disk space on %s, continue anyway",NLMISC::formatErrorMessage(error).c_str(),error,Q2C(m_dstDirectory));
nlwarning("Error '%s' (%d) occurred when trying to check free disk space on %s, continue anyway",NLMISC::formatErrorMessage(error).c_str(),error,Q2C(m_dstDirectory));