10 #include <Atoms/Globals.h>
11 #include <AtomsCore/AtomsMath.h>
12 #include <AtomsCore/Metadata/MapMetadata.h>
84 bounceThreshold(0.5f),
85 forceLimit(std::numeric_limits<float>::max()),
86 isAcceleration(
false),
92 float bounceThreshold;
118 static const size_t version;
124 short constraintType;
127 bool enableCollision;
128 bool driveLimitsAreForces;
130 bool disablePreprocessing;
131 bool enableExtendedLimits;
134 bool enableProjection;
135 float projectionLinearTollerance;
136 float projectionAngularTollerance;
143 float bounceThreshold;
154 bool enableMinDistance;
156 bool enableMaxDistance;
164 float driveForceLimit;
165 float driveGearRatio;
172 short angularMotionX;
173 short angularMotionY;
174 short angularMotionZ;
176 bool enableDistanceLimit;
177 bool enableTwistLimit;
178 bool enableSwingLimit;
179 bool enablePyramidLimit;
186 bool enableLinearXLimit;
187 bool enableLinearYLimit;
188 bool enableLinearZLimit;
193 bool enableXLimitSpring;
194 bool enableYLimitSpring;
195 bool enableZLimitSpring;
196 float xLimitStiffnessSpring;
197 float xLimitDampingSpring;
198 float xLimitRestitutionSpring;
199 float xLimitBounceThresholdSpring;
200 float yLimitStiffnessSpring;
201 float yLimitDampingSpring;
202 float yLimitRestitutionSpring;
203 float yLimitBounceThresholdSpring;
204 float zLimitStiffnessSpring;
205 float zLimitDampingSpring;
206 float zLimitRestitutionSpring;
207 float zLimitBounceThresholdSpring;
230 void setBreakForce(
float force,
float torque);
236 void breakConstraint();
244 physx::PxJoint* joint;
248 bool drivePoseUpdated;
Definition: RigidBodyConstraint.h:78
Definition: RigidBodyConstraint.h:23
bool serialise(std::string &outStream) const
Binary Serialise.
bool deserialise(const AtomsCore::MapMetadata *inStream)
Binary Deserialise.
bool deserialise(const std::string &inStream)
Binary Deserialise.
bool serialise(AtomsCore::MapMetadata *outStream) const
Binary Serialise.
Definition: RigidBodyConstraint.h:216
AtomsMath::Matrixf Matrixf
Matrix class.
Definition: AtomsMath.h:64
AtomsMath::Vector2f Vector2f
Vector2 class.
Definition: AtomsMath.h:55
AtomsMath::Vector3f Vector3f
Vector3 class.
Definition: AtomsMath.h:58
Atoms namespace.
Definition: Agent.h:29
Definition: RigidBodyConstraint.h:54
Enum
Definition: RigidBodyConstraint.h:56
Definition: RigidBodyConstraint.h:40
Enum
Definition: RigidBodyConstraint.h:42
Definition: RigidBodyConstraint.h:68
Enum
Definition: RigidBodyConstraint.h:70
@ kLOCKED
The DOF is locked, it does not allow relative motion.
Definition: RigidBodyConstraint.h:71
@ kLIMITED
The DOF is limited, it only allows motion within a specific range.
Definition: RigidBodyConstraint.h:72
Definition: RigidBodyConstraint.h:27