Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Make rope into a slingshot to launch a sphere
#2
Hi there,

None of your screenshots show up, so I can only guess.

Quote:First the rope wasn't bending enough, so I tried fixing it with the stretching scale value in the Obi Rope class, but then the rope was too loose and it didn't "jump back" to launch the sphere.

As the name implies, "stretching scale" scales the amount of stretching in the rope. A value of 1 (100%) will allow the rope to stretch/compress normally. Values larger than 1 will force the rope to stretch beyond its rest length (making it longer) and values less than 1 will force the rope to compress below its rest length (making it shorter). This has nothing to do with bending.

If the rope isn't bending enough, adjust its max bending parameter accordingly. See:
http://obi.virtualmethodstudio.com/tutor...aints.html

Quote:The sphere movement is implemented with a RigidBody, and it's using the Obi Collider component for the collision detection.

Mass plays a very important role here, as it determines how the rope and the ball react to each other. If the ball has more mass than the rope, it will be easier for it to push against the rope and stretch it. If the ball is lighter than the rope, the rope will be largely unaffected by the ball (and will behave close to what you have now).

If you want to make the rope more elastic, slightly increase its stretching compliance, and make sure the mass of the ball is comparable to the mass of the rope particles.
Reply


Messages In This Thread
RE: Make rope into a slingshot to launch a sphere - by josemendez - 24-05-2021, 07:48 AM