Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Rendering rope and performance cost
#4
(24-02-2023, 08:21 PM)Zombie1111 Wrote: I think the issue may be that I must call one of the functions in the pathsmootherscript manually? Because non of them gets ever called (Except for the onEnable/onDisable when I enable/disable the script)

Yes, you need to call GenerateSmoothChunks() passing an an array of positions instead of an ObiRopeBase instance as indicated in my previous post. If you want to trigger a renderer update too, you should also call the OnCurveGenerated() event.

See how both are usually called in the Actor_OnInterpolate() callback, as a response to the actor -rope in this case- finishing interpolating physics state.


(24-02-2023, 08:21 PM)Zombie1111 Wrote: This is what the two functions looks like now

Both look fine at first glance.

Let me know if you need further help,

cheers!
Reply


Messages In This Thread
RE: Rendering rope and performance cost - by josemendez - 27-02-2023, 09:29 AM