Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Ropes are really wiggly and stretched out
#4
(26-04-2021, 10:31 PM)daniaalazmat Wrote: Thank you for getting back to me. I also wanted to know whether there is a way to increase the size of the rope. What i am currently trying to do is make the player to grab one end of the rope and then keep pulling it which should increase the length of the rope.


You can use a cursor:
http://obi.virtualmethodstudio.com/tutor...ursor.html

(26-04-2021, 10:31 PM)daniaalazmat Wrote: And one more question i wanted to ask is that is there anything for checking whether the rope is being streched than normal. On which i want the rope to be expected

Sure. You can calculate strain as the ratio between current length and rest length:

Code:
float strain = rope.CalculateLength()/rope.restLength;

a strain value of 1 means the rope is not stretched or compressed. >1, stretched. <1, compressed.
Reply


Messages In This Thread
RE: Ropes are really wiggly and stretched out - by josemendez - 27-04-2021, 07:15 AM