Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
RShapeCast Struct Reference

#include <ShapeCast.h>

Inheritance diagram for RShapeCast:
ShapeCastT< RVec3, RMat44, RShapeCast >

Public Member Functions

 RShapeCast (const ShapeCast &inCast)
 Convert from ShapeCast, converts single to double precision. More...
 
 operator ShapeCast () const
 Convert to ShapeCast, which implies casting from double precision to single precision. More...
 
- Public Member Functions inherited from ShapeCastT< RVec3, RMat44, RShapeCast >
JPH_OVERRIDE_NEW_DELETE ShapeCastT (const Shape *inShape, Vec3Arg inScale, typename Mat::ArgType inCenterOfMassStart, Vec3Arg inDirection, const AABox &inWorldSpaceBounds)
 Constructor. More...
 
 ShapeCastT (const Shape *inShape, Vec3Arg inScale, typename Mat::ArgType inCenterOfMassStart, Vec3Arg inDirection)
 Constructor. More...
 
RShapeCast PostTransformed (typename Mat::ArgType inTransform) const
 Transform this shape cast using inTransform. Multiply transform on the left left hand side. More...
 
RShapeCast PostTranslated (typename Vec::ArgType inTranslation) const
 Translate this shape cast by inTranslation. More...
 
RVec3 GetPointOnRay (float inFraction) const
 Get point with fraction inFraction on ray from mCenterOfMassStart to mCenterOfMassStart + mDirection (0 = start of ray, 1 = end of ray) More...
 

Additional Inherited Members

- Static Public Member Functions inherited from ShapeCastT< RVec3, RMat44, RShapeCast >
static RShapeCast 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. More...
 
- Public Attributes inherited from ShapeCastT< RVec3, RMat44, RShapeCast >
const ShapemShape
 Shape that's being cast (cannot be mesh shape). Note that this structure does not assume ownership over the shape for performance reasons. More...
 
const Vec3 mScale
 Scale in local space of the shape being cast. More...
 
const RMat44 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) More...
 
const Vec3 mDirection
 Direction and length of the cast (anything beyond this length will not be reported as a hit) More...
 
const AABox mShapeWorldBounds
 Cached shape's world bounds, calculated in constructor. More...
 

Constructor & Destructor Documentation

◆ RShapeCast()

RShapeCast::RShapeCast ( const ShapeCast inCast)
inlineexplicit

Convert from ShapeCast, converts single to double precision.

Member Function Documentation

◆ operator ShapeCast()

RShapeCast::operator ShapeCast ( ) const
inlineexplicit

Convert to ShapeCast, which implies casting from double precision to single precision.


The documentation for this struct was generated from the following file: