Skip to content

Commit

Permalink
demo - rope
Browse files Browse the repository at this point in the history
  • Loading branch information
nem0 committed Nov 22, 2024
1 parent ee0c68a commit cfca3b5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Binary file modified data/maps/demo/demo.unv
Binary file not shown.
3 changes: 1 addition & 2 deletions src/physics/physics_module.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1393,8 +1393,7 @@ struct PhysicsModuleImpl final : PhysicsModule
joint.connected_body = INVALID_ENTITY;
joint.local_frame0.p = PxVec3(0, 0, 0);
joint.local_frame0.q = PxQuat(0, 0, 0, 1);
joint.physx = PxDistanceJointCreate(
m_scene->getPhysics(), m_dummy_actor, PxTransform(PxIdentity), nullptr, PxTransform(PxIdentity));
joint.physx = PxDistanceJointCreate(m_scene->getPhysics(), m_dummy_actor, PxTransform(PxIdentity), nullptr, PxTransform(PxIdentity));
joint.physx->setConstraintFlag(PxConstraintFlag::eVISUALIZATION, true);
static_cast<PxDistanceJoint*>(joint.physx)->setDistanceJointFlag(PxDistanceJointFlag::eSPRING_ENABLED, true);

Expand Down

0 comments on commit cfca3b5

Please sign in to comment.