MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/PhysX / setLimit

Method setLimit

physx/source/physxextensions/src/ExtRevoluteJoint.cpp:74–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74void RevoluteJoint::setLimit(const PxJointAngularLimitPair& limit)
75{
76 PX_CHECK_AND_RETURN(limit.isValid(), "PxRevoluteJoint::setLimit: limit invalid");
77 PX_CHECK_AND_RETURN(limit.lower>-PxTwoPi && limit.upper<PxTwoPi , "PxRevoluteJoint::twist limit must be strictly between -2*PI and 2*PI");
78
79 data().limit = limit;
80 markDirty();
81}
82
83PxReal RevoluteJoint::getDriveVelocity() const
84{

Callers 5

createScissorLiftFunction · 0.45
setPxRevoluteJoint_LimitFunction · 0.45

Calls 2

markDirtyFunction · 0.85
isValidMethod · 0.45

Tested by

no test coverage detected