Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ObiRope: 2D
#5
(16-01-2018, 12:03 PM)naoma Wrote: But I found another one issue. 
When I pin some GameObject with RigidBody2D to the rope in 2dMode the rope stretches with infinity length.
Probably ObiCollider2D has some bugs.

What you're asking for is two-way coupling between the rope and the rigidbody. This is only supported for 3D rigidbodies in 3.2, but we have added support for 2D too in 3.3 (unreleased). This means that in 2D rigidbodies will always pull the ropes with them and the ropes will not respond by pulling back.

I'm providing you a patch so that you can do what you need without waiting for an official release, you'll find it attached. Here's the link:
https://we.tl/WbRqJmSFDN
The patch contains these changes:

- 2 files modified: ObiRigidbody, ObiColliderBase
- 2 new files added: ObiRigidbody2D, ObiRigidbodyBase

After applying this patch, the rope should be able to resist the force applied by the rigidbody, allowing it to hang from the rope. Let me know if you encounter any issue while applying it.

cheers!
Reply


Messages In This Thread
ObiRope: 2D - by naoma - 15-01-2018, 08:19 PM
RE: ObiRope: 2D - by josemendez - 16-01-2018, 09:36 AM
RE: ObiRope: 2D - by naoma - 16-01-2018, 10:34 AM
RE: ObiRope: 2D - by naoma - 16-01-2018, 12:03 PM
RE: ObiRope: 2D - by josemendez - 16-01-2018, 09:07 PM
RE: ObiRope: 2D - by naoma - 18-01-2018, 04:55 PM