Jolt Physics
A multi core friendly Game Physics Engine
|
#include <ShapeCast.h>
Additional Inherited Members | |
Public Member Functions inherited from ShapeCastT< Vec3, Mat44, ShapeCast > | |
JPH_OVERRIDE_NEW_DELETE | ShapeCastT (const Shape *inShape, Vec3Arg inScale, typename Mat::ArgType inCenterOfMassStart, Vec3Arg inDirection, const AABox &inWorldSpaceBounds) |
Constructor. | |
ShapeCastT (const Shape *inShape, Vec3Arg inScale, typename Mat::ArgType inCenterOfMassStart, Vec3Arg inDirection) | |
Constructor. | |
ShapeCast | PostTransformed (typename Mat::ArgType inTransform) const |
Transform this shape cast using inTransform. Multiply transform on the left left hand side. | |
ShapeCast | PostTranslated (typename Vec::ArgType inTranslation) const |
Translate this shape cast by inTranslation. | |
Vec3 | GetPointOnRay (float inFraction) const |
Get point with fraction inFraction on ray from mCenterOfMassStart to mCenterOfMassStart + mDirection (0 = start of ray, 1 = end of ray) | |
Static Public Member Functions inherited from ShapeCastT< Vec3, Mat44, ShapeCast > | |
static ShapeCast | sFromWorldTransform (const Shape *inShape, Vec3Arg inScale, typename Mat::ArgType inWorldTransform, Vec3Arg inDirection) |
Construct a shape cast using a world transform for a shape instead of a center of mass transform. | |
Public Attributes inherited from ShapeCastT< Vec3, Mat44, ShapeCast > | |
const Shape * | mShape |
Shape that's being cast (cannot be mesh shape). Note that this structure does not assume ownership over the shape for performance reasons. | |
const Vec3 | mScale |
Scale in local space of the shape being cast (scales relative to its center of mass) | |
const Mat44 | mCenterOfMassStart |
Start position and orientation of the center of mass of the shape (construct using sFromWorldTransform if you have a world transform for your shape) | |
const Vec3 | mDirection |
Direction and length of the cast (anything beyond this length will not be reported as a hit) | |
const AABox | mShapeWorldBounds |
Cached shape's world bounds, calculated in constructor. | |