Go to the documentation of this file.
20 #ifndef __OPC_RAYCOLLIDER_H__
21 #define __OPC_RAYCOLLIDER_H__
52 #ifdef OPC_RAYHIT_CALLBACK
89 #ifndef OPC_RAYHIT_CALLBACK
123 #ifdef OPC_RAYHIT_CALLBACK
124 inline_ void SetHitCallback(HitCallback cb) { mHitCallback = cb; }
125 inline_ void SetUserData(
void* user_data) { mUserData = user_data; }
146 inline_ udword GetNbRayBVTests()
const {
return mNbRayBVTests; }
156 inline_ udword GetNbRayPrimTests()
const {
return mNbRayPrimTests; }
167 inline_ udword GetNbIntersections()
const {
return mNbIntersections; }
186 #ifdef OPC_RAYHIT_CALLBACK
187 HitCallback mHitCallback;
202 #ifndef OPC_RAYHIT_CALLBACK
225 #endif // __OPC_RAYCOLLIDER_H__
udword mNbRayBVTests
Number of Ray-BV tests.
CollisionFace mStabbedFace
Current stabbed face.
Point mDir
Ray direction (normalized)
udword mNbRayPrimTests
Number of Ray-Primitive tests.
virtual inline_ void InitQuery()
unsigned int udword
sizeof(udword) must be 4
const inline_ CollisionFace * GetFaces() const
int BOOL
Another boolean type.
inline_ ~CollisionFace()
Destructor.
virtual const char * ValidateSettings()=0
udword mFaceID
Index of touched face.
float mDistance
Distance from collider to hitpoint.
inline_ CollisionFace()
Constructor.
float mMaxDist
Valid segment on the ray.
udword mNbIntersections
Number of valid intersections.
bool mClosestHit
Report closest hit only.
inline_ Container & Add(udword entry)
float mV
Impact barycentric coordinates.
bool mCulling
Stab culled faces or not.
CollisionFaces()
Constructor.
inline_ udword GetNbFaces() const
#define MAX_FLOAT
max possible float value
typedef void(PNGAPI *png_error_ptr) PNGARG((png_structp
CollisionFaces * mStabbedFaces
List of stabbed faces.
inline_ void AddFace(const CollisionFace &face)
png_infop png_uint_32 flag
~CollisionFaces()
Destructor.
openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Wed Sep 7 2022 02:51:04