Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Question about fishing rod mechanic
#8
(14-09-2023, 02:21 PM)erenjeagerot Wrote: I wish the rope length could be adjusted by changing "a variable value" of one of the obi rope components.

Hi!

Setting the length of a rope doesn't mean anything unless you also specify how the length should be changed (at which point, in which direction) and how the existing rope should react when its length is changed.

Cursors allow you to change the length at runtime, bu specifying a point in the rope where new rope is inserted/removed and in which direction. The rest of the rope will just react physically to the change in length. You can write a component that simply calls cursor.ChangeLength(value), with "value" being exposed in the inspector, this does what you want - but would only work in play mode though.

Since there's no physical simulation outside of play mode, in-editor you can only change rope length by dragging blueprint control points around. This not only allows you to set the length but also the shape of the rope, which is a must.

kind regards,
Reply


Messages In This Thread
RE: Question about fishing rod mechanic - by josemendez - 14-09-2023, 02:48 PM