Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rope/rod freezing
#2
(17-02-2024, 02:59 PM)stepkka Wrote: I need to reset a rope to blueprint and freeze it.

Hi!

Define "freeze": just completely freeze in place, behave like a rigidbody, stop being simulated but still able to be programmatically deformed...?

(17-02-2024, 02:59 PM)stepkka Wrote: In addition, ideally I need to set the rope's parent to some object without a solver.

If you want the rope to still be simulated or rendered, it needs to have a ObiSolver above it in the scene hierarchy. Depending on your use case, you might be able to just take the rope's mesh and apply it to a regular object, then have it rendered normally or simulated as a rigid object that doesn't need to be part of a solver.

(17-02-2024, 02:59 PM)stepkka Wrote: I'm calling ResetParticles, but the rope's shape stays the same as the last frame before this procedure.

ResetParticles will reset particle positions to the ones specified in the blueprint, but will not prevent them from being simulated normally. This said, the rope should go back to the pose it was in when first loaded into the solver, I've been unable to reproduce it staying the same as the last frame. How are you calling ResetParticles()?

(17-02-2024, 02:59 PM)stepkka Wrote: So.. can I reset particles and move the rope outside of solver, or this is not recommended?

It is not possible to move an actor outside of the solver, in case you want it to be updated at all. See:
http://obi.virtualmethodstudio.com/manua...olver.html

Quote:Every actor needs to have a solver up its hierarchy in order to get updated and rendered.

Depending on your use case and what you mean by freezing, there's better/simpler solutions. Could you go into further details?

kind regards,
Reply


Messages In This Thread
Rope/rod freezing - by stepkka - 17-02-2024, 02:59 PM
RE: Rope/rod freezing - by josemendez - 19-02-2024, 08:27 AM
RE: Rope/rod freezing - by stepkka - 19-02-2024, 12:24 PM
RE: Rope/rod freezing - by josemendez - 19-02-2024, 03:33 PM