NxPointOnLineJoint* World::CreatePointOnLineJoint(NxActor* a0, NxActor* a1, NxVec3 globalAnchor, NxVec3 globalAxis) { NxPointOnLineJointDesc polDesc; polDesc.actor[0] = a0; polDesc.actor[1] = a1; polDesc.setGlobalAnchor(globalAnchor); polDesc.setGlobalAxis(globalAxis); polDesc.jointFlags |= NX_JF_COLLISION_ENABLED; return (NxPointOnLineJoint*)gScene->createJoint(polDesc); }
NxPointOnLineJoint* CreatePointOnLineJoint(NxActor* a0, NxActor* a1, const NxVec3& globalAnchor, const NxVec3& globalAxis, NxScene* gScene) { NxPointOnLineJointDesc polDesc; polDesc.actor[0] = a0; polDesc.actor[1] = a1; polDesc.setGlobalAnchor(globalAnchor); polDesc.setGlobalAxis(globalAxis); polDesc.jointFlags |= NX_JF_COLLISION_ENABLED; NxJoint* joint = gScene->createJoint(polDesc); return static_cast<NxPointOnLineJoint*>(joint); }