2017-08-01 14:30:58 +02:00
|
|
|
|
|
|
|
#ifndef B3_RAYCAST_INFO_H
|
|
|
|
#define B3_RAYCAST_INFO_H
|
|
|
|
|
|
|
|
#include "Bullet3Common/b3Vector3.h"
|
|
|
|
|
2019-01-03 14:26:51 +01:00
|
|
|
B3_ATTRIBUTE_ALIGNED16(struct)
|
|
|
|
b3RayInfo
|
2017-08-01 14:30:58 +02:00
|
|
|
{
|
|
|
|
b3Vector3 m_from;
|
|
|
|
b3Vector3 m_to;
|
|
|
|
};
|
|
|
|
|
2019-01-03 14:26:51 +01:00
|
|
|
B3_ATTRIBUTE_ALIGNED16(struct)
|
|
|
|
b3RayHit
|
2017-08-01 14:30:58 +02:00
|
|
|
{
|
2019-01-03 14:26:51 +01:00
|
|
|
b3Scalar m_hitFraction;
|
|
|
|
int m_hitBody;
|
|
|
|
int m_hitResult1;
|
|
|
|
int m_hitResult2;
|
|
|
|
b3Vector3 m_hitPoint;
|
|
|
|
b3Vector3 m_hitNormal;
|
2017-08-01 14:30:58 +02:00
|
|
|
};
|
|
|
|
|
2019-01-03 14:26:51 +01:00
|
|
|
#endif //B3_RAYCAST_INFO_H
|