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

Method attach

physx/source/physxextensions/src/ExtDistanceJoint.cpp:138–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

136}
137
138bool DistanceJoint::attach(PxPhysics &physics, PxRigidActor* actor0, PxRigidActor* actor1)
139{
140 mPxConstraint = physics.createConstraint(actor0, actor1, *this, sShaders, sizeof(DistanceJointData));
141 return mPxConstraint!=NULL;
142}
143
144void DistanceJoint::exportExtraData(PxSerializationContext& stream)
145{

Callers 1

PxDistanceJointCreateMethod · 0.45

Calls 1

createConstraintMethod · 0.45

Tested by

no test coverage detected