MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / ShapeSim

Class ShapeSim

deps/physx/physx/source/simulationcontroller/src/ScShapeSim.h:65–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63 class StaticSim;
64
65 class ShapeSim : public ElementSim
66 {
67 ShapeSim &operator=(const ShapeSim &);
68 public:
69
70 // passing in a pointer for the shape to output its bounds allows us not to have to compute them twice.
71 // A neater way to do this would be to ask the AABB Manager for the bounds after the shape has been
72 // constructed, but there is currently no spec for what the AABBMgr is allowed to do with the bounds,
73 // hence better not to assume anything.
74
75 ShapeSim(RigidSim&, const ShapeCore& core);
76 ~ShapeSim();
77
78 void reinsertBroadPhase();
79
80 PX_FORCE_INLINE const ShapeCore& getCore() const { return mCore; }
81
82 // TODO: compile time coupling
83
84 PX_INLINE PxGeometryType::Enum getGeometryType() const { return mCore.getGeometryType(); }
85
86 // This is just for getting a reference for the user, so we cast away const-ness
87

Callers

nothing calls this directly

Calls 1

getGeometryTypeMethod · 0.45

Tested by

no test coverage detected