42 virtual bool MustBeStatic()
const override {
return mInnerShape->MustBeStatic(); }
64 virtual Stats GetStatsRecursive(VisitedShapes &
ioVisitedShapes)
const override;
#define JPH_EXPORT
Definition Core.h:227
std::uint64_t uint64
Definition Core.h:443
unsigned int uint
Definition Core.h:439
#define JPH_NAMESPACE_END
Definition Core.h:367
#define JPH_NAMESPACE_BEGIN
Definition Core.h:361
AllocateFunction Allocate
Definition Memory.cpp:59
#define JPH_OVERRIDE_NEW_DELETE
Macro to override the new and delete functions.
Definition Memory.h:29
#define JPH_DECLARE_SERIALIZABLE_VIRTUAL(linkage, class_name)
Definition SerializableObject.h:100
EShapeSubType
This enumerates all shape types, each shape can return its type through Shape::GetSubType.
Definition Shape.h:74
Array< ShapeRefC > ShapeList
Definition Shape.h:51
EShapeType
Shapes are categorized in groups, each shape can return which group it belongs to through its Shape::...
Definition Shape.h:57
@ Decorated
Used by DecoratedShape.
Base class for shapes that decorate another shape with extra functionality (e.g. scale,...
Definition DecoratedShape.h:29
virtual uint GetSubShapeIDBitsRecursive() const override
Get the max number of sub shape ID bits that are needed to be able to address any leaf shape in this ...
Definition DecoratedShape.h:48
const Shape * GetInnerShape() const
Access to the decorated inner shape.
Definition DecoratedShape.h:39
RefConst< Shape > mInnerShape
Definition DecoratedShape.h:67
JPH_OVERRIDE_NEW_DELETE DecoratedShape(EShapeSubType inSubType)
Constructor.
Definition DecoratedShape.h:34
virtual Vec3 GetCenterOfMass() const override
All shapes are centered around their center of mass. This function returns the center of mass positio...
Definition DecoratedShape.h:45
DecoratedShape(EShapeSubType inSubType, const Shape *inInnerShape)
Definition DecoratedShape.h:35
virtual bool MustBeStatic() const override
Check if this shape can only be used to create a static body or if it can also be dynamic/kinematic.
Definition DecoratedShape.h:42
Class that constructs a DecoratedShape.
Definition DecoratedShape.h:13
Holds a 4x4 matrix of floats, but supports also operations on the 3x3 upper left part of the matrix.
Definition Mat44.h:13
Definition PhysicsMaterial.h:23
Definition Reference.h:151
Base class for all shapes (collision volume of a body). Defines a virtual interface for collision det...
Definition Shape.h:178
A sub shape id contains a path to an element (usually a triangle or other primitive type) of a compou...
Definition SubShapeID.h:23