From 0ea5fc66924303d1bf73ba283a383e2aadee02f2 Mon Sep 17 00:00:00 2001 From: neodarz Date: Sat, 11 Aug 2018 20:21:34 +0200 Subject: Initial commit --- docs/doxygen/nel/a03151.html | 294 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 294 insertions(+) create mode 100644 docs/doxygen/nel/a03151.html (limited to 'docs/doxygen/nel/a03151.html') diff --git a/docs/doxygen/nel/a03151.html b/docs/doxygen/nel/a03151.html new file mode 100644 index 00000000..efaa0542 --- /dev/null +++ b/docs/doxygen/nel/a03151.html @@ -0,0 +1,294 @@ + + +NeL: NL3D::CPSCollisionInfo struct Reference + + + +
+

NL3D::CPSCollisionInfo Struct Reference

#include <ps_located.h> +

+


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 76 of file ps_located.h. + + + + + + + + + + + + + + + + + + + +

Public Member Functions

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

Data Fields

CPSZonecollisionZone
float dist
NLMISC::CVector newPos
NLMISC::CVector newSpeed
float TimeSliceRatio
+


Constructor & Destructor Documentation

+

+ + + + +
+ + + + + + + + + +
NL3D::CPSCollisionInfo::CPSCollisionInfo  )  [inline]
+
+ + + + + +
+   + + +

+ +

+Definition at line 95 of file ps_located.h. +

+References reset(). +

+

00096         {
+00097                 reset();
+00098         }
+
+


Member Function Documentation

+

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

+ +

+Definition at line 99 of file ps_located.h. +

+References dist, and TimeSliceRatio. +

+Referenced by CPSCollisionInfo(). +

+

00100         {
+00101                 dist                    = -1;
+00102                 TimeSliceRatio = 1.0f;
+00103         }
+
+

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

+ +

+Definition at line 105 of file ps_located.h. +

+References dist, newPos, and newSpeed. +

+

00106          {
+00107                 f.serialVersion(1);
+00108                 f.serial(dist, newPos, newSpeed);
+00109          }
+
+


Field 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 93 of file ps_located.h. +

+Referenced by NL3D::CPSZoneRectangle::performMotion(), NL3D::CPSZoneCylinder::performMotion(), NL3D::CPSZoneDisc::performMotion(), NL3D::CPSZoneSphere::performMotion(), and NL3D::CPSZonePlane::performMotion().

+

+ + + + +
+ + +
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 85 of file ps_located.h. +

+Referenced by NL3D::CPSLocated::collisionUpdate(), NL3D::CPSZoneRectangle::performMotion(), NL3D::CPSZoneCylinder::performMotion(), NL3D::CPSZoneDisc::performMotion(), NL3D::CPSZoneSphere::performMotion(), NL3D::CPSZonePlane::performMotion(), reset(), and serial().

+

+ + + + +
+ + +
NLMISC::CVector NL3D::CPSCollisionInfo::newPos +
+
+ + + + + +
+   + + +

+ +

+Definition at line 87 of file ps_located.h. +

+Referenced by NL3D::CPSZoneRectangle::performMotion(), NL3D::CPSZoneCylinder::performMotion(), NL3D::CPSZoneDisc::performMotion(), NL3D::CPSZoneSphere::performMotion(), NL3D::CPSZonePlane::performMotion(), and serial().

+

+ + + + +
+ + +
NLMISC::CVector NL3D::CPSCollisionInfo::newSpeed +
+
+ + + + + +
+   + + +

+ +

+Definition at line 87 of file ps_located.h. +

+Referenced by NL3D::CPSZoneRectangle::performMotion(), NL3D::CPSZoneCylinder::performMotion(), NL3D::CPSZoneDisc::performMotion(), NL3D::CPSZoneSphere::performMotion(), NL3D::CPSZonePlane::performMotion(), and serial().

+

+ + + + +
+ + +
float NL3D::CPSCollisionInfo::TimeSliceRatio +
+
+ + + + + +
+   + + +

+ +

+Definition at line 79 of file ps_located.h. +

+Referenced by reset().

+


The documentation for this struct was generated from the following file: +
Generated on Tue Mar 16 07:04:59 2004 for NeL by + +doxygen +1.3.6
+ + -- cgit v1.2.1