18-09-2023, 02:28 PM
@josemendez as always thanks for the informative and very swift response! much appreciated.
However this is what happens now in order:
- create ObiRope
- create blueprint during runtime with 2 control points
- create 2 attachments
- subscribe to OnBlueprintLoaded
- set ropes blueprint to this newly loaded blueprint
- add solver to ObiFixedUpdater
- OnBlueprintLoaded is called and here I set positions and I set both velocities and angularVelocities to Vector3.zero in order to test
- game runs but all particles are somewhere else and rope is bouncing all around
it looks like somehow all my code is again overriden by the physics simulation
However this is what happens now in order:
- create ObiRope
- create blueprint during runtime with 2 control points
- create 2 attachments
- subscribe to OnBlueprintLoaded
- set ropes blueprint to this newly loaded blueprint
- add solver to ObiFixedUpdater
- OnBlueprintLoaded is called and here I set positions and I set both velocities and angularVelocities to Vector3.zero in order to test
- game runs but all particles are somewhere else and rope is bouncing all around
it looks like somehow all my code is again overriden by the physics simulation