Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Ropes Attachment
#8
(07-05-2021, 01:03 PM)headcoach Wrote: I'm using the rope to visualize controls on sailing boat, I'm just increasing the rope length when the sails are allowed to move further out, so it makes it look like the player is actually controlling the sail with the rope but its only visual. The reason disabled/enabled is the game is multiplayer and the boat needs to be networked, I'm using spatial hashing to disable networked objects that are far away from the player, I could just make the boats ignore spatial hashing but that doesn't seem ideal. Is there a way of setting the rope back to its default values before enabling it again so it attaches properly? Because then I could just do that then set the rope length back to where I want it. 

Just also wanna say thank you for the help so far! I really appreciate it

In that case, you need to store the rope's current state somewhere. That can be done by either storing particles and current constraint configuration when the boat is disabled, so that it can be restored when the boat is enabled again (this can be a bit complicated) or simply by storing the intended length and calling ChangeLength(storedLength) right after enabling the boat.

(07-05-2021, 01:03 PM)headcoach Wrote: Just also wanna say thank you for the help so far! I really appreciate it

You're welcome Sonrojado. Let me know if you need further help.
Reply


Messages In This Thread
Ropes Attachment - by headcoach - 07-05-2021, 07:57 AM
RE: Ropes Attachment - by josemendez - 07-05-2021, 08:07 AM
RE: Ropes Attachment - by headcoach - 07-05-2021, 11:02 AM
RE: Ropes Attachment - by josemendez - 07-05-2021, 11:14 AM
RE: Ropes Attachment - by headcoach - 07-05-2021, 12:19 PM
RE: Ropes Attachment - by josemendez - 07-05-2021, 12:29 PM
RE: Ropes Attachment - by headcoach - 07-05-2021, 01:03 PM
RE: Ropes Attachment - by josemendez - 07-05-2021, 01:10 PM
RE: Ropes Attachment - by headcoach - 07-05-2021, 01:45 PM
RE: Ropes Attachment - by josemendez - 07-05-2021, 01:47 PM