From cfca3b5dc189e6d9471ae0cafc6fab44071972fa Mon Sep 17 00:00:00 2001 From: Mikulas Florek Date: Fri, 22 Nov 2024 17:21:46 +0100 Subject: [PATCH] demo - rope --- data/maps/demo/demo.unv | Bin 14758 -> 8564 bytes src/physics/physics_module.cpp | 3 +-- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/data/maps/demo/demo.unv b/data/maps/demo/demo.unv index 47daa61103f45eeb5b1bef65276bc0ad99f26000..b6cca8fa9332ce8bd7714a6901eba8a756a0fcb1 100644 GIT binary patch literal 8564 zcmb_hd03Oz(w}$9n+hD-IE14473?|%2MFV7P=bAEGX=FFKhbIwWH zsO&Tj03`UePM%S2$}fj9V`+i0%vc77Qd5bc!el80LuG-<0;Ps3Q&D?IQKbpYm4=-1 z{4$fZ0`e_oMw9^HH3Y!s3lN?T6v#3i_t_m<7IyeP^xQLJ&UhVyEGVeK&>~6Q=6XLY zMNkwxnwWm$xgBgNk!526hxM%mT`uIt90 z>6W}IAVKhcz9#aoRkQ6P_md6RcMRHwDv?{H0e%Ch6`TfDKMQ|FmmVSr-`uTr@K5cI znUi~8eZPMbsupXYMLg@9r4l|~fYp`p$wPm!JDy~1c%YBbK)em7c@qYPH4NSWff5bK z6>tzh3<=oN-vvMc5jLIF6Ghb4#@HK^1Y6fbcZx<{Lk(NMeDvD@D~M^JBihWD`9M>x z%aA@Nk_E@2>*5y&S~Q^Bc;FODRmwHMSfTo6lwfx~*ik-N5gCay%&t!^PbOXG=$d7P$X z)a`roH^n&|P05ocAgu0^K5p*OL`VBVrBP&|6l9^k>@)DUje`W6&*2?oYbAnh?Cw*) zB!v+%O4PzNz4>AX^H>L&`~P*~%`G~|v4#VlIg@F*LPc!o9Y3a8n;BdYvMdtXgv-#hxejsQffA@SVS!aCxtO^`#djSNdyU>`&M0tJ&QiSjT@LU1irJ#f>_ zS@@k^us(sy6Fz%_+7^xY4b4^bOl262xJ+1jVcNhC&NYesKW!3w*bC@3U-v?H)oFw7 z-9D-j>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GBzVZM<`q0-IG7bYWH|U0JY?7d2p%%bCW42opMr->qu?RyuizmY zpx_}JsNf;HUBN?!HX!UlhK?tA+z(dpXe-#S2>Ecj$Ji?PA#{&(O2Ok*IbPcd9getPhysics(), 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(joint.physx)->setDistanceJointFlag(PxDistanceJointFlag::eSPRING_ENABLED, true);