/// 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
{
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::CVectorNewSpeed;// The speed of particle after a collision occured. 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
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 occurred, can be useful to check the behaviour in case of collision
uint32Index;
CPSCollisionInfo()
{
@ -906,10 +906,10 @@ protected:
*/
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
*/
virtualvoidbounceOccured(uint32/* index */,TAnimationTime/* timeToNextsimStep */){}
virtualvoidbounceOccurred(uint32/* index */,TAnimationTime/* timeToNextsimStep */){}
/** show an drawing to represent the object, and in red if it is selected
caseEXCEPTION_STACK_OVERFLOW:shortExc="Stack Overflow";longExc="Stack overflow. Can occur during errant recursion, or when a function creates a particularly large array on the stack";break;
caseEXCEPTION_INVALID_DISPOSITION:shortExc="Invalid Disposition";longExc="Whatever number the exception filter returned, it wasn't a value the OS knows about";break;
caseEXCEPTION_GUARD_PAGE:shortExc="Guard Page";longExc="Memory Allocated as PAGE_GUARD by VirtualAlloc() has been accessed";break;
caseCONTROL_C_EXIT:shortExc="Control-C";longExc="Lets the debugger know the user hit Ctrl-C. Seemingly for console apps only";break;
caseSTATUS_NO_MEMORY:shortExc="No Memory";longExc="Called by HeapAlloc() if you specify HEAP_GENERATE_EXCEPTIONS and there is no memory or heap corruption";
nlinfo("LS: New cookie %s (name '%s' priv '%s' extended '%s' instance %u slot %u) inserted in the pending user list (awaiting new client)",cookie.toString().c_str(),userName.c_str(),userPriv.c_str(),userExtended.c_str(),instanceId,charSlot);
//nldebug("Init the context sound %s", _PatternName.c_str());
@ -190,7 +190,7 @@ void CContextSound::init()
nlassertex(nbJoker<SoundContextNbArgs,("Error will trying to play ContextSound '%s'",_Name.toString().c_str()/*CStringMapper::unmap(_Name).c_str()*/));