Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Need help with Touch event or an alternative method?

Asked by 2 years ago

I currently have a tsunami that I want to use in game to destroy a ton of trees. Initially I thought I could use a Touch function however it only works when one of the parts is unanchored. Therefore I unanchored the tsunami and used a bodyvelocity. Unfortunately the bodyvelocity method lags out the physics very badly due to the size of the tsunami.

It would be more effective to have both the tsunami and the trees be anchored, however the only other method I can find is raycasting, and I'd need to use over 3 million raycasts to cover every stud on the tsunami. Is there an alternative way to detect a collision between the two?

0
Can't you weld the trees and destroy the welds when the tsunami touches the trees? cool_u10u 0 — 2y
0
Use hinges ? SuperPuiu 497 — 2y
0
I'll look into using hinges, for the weld idea I need to actually find a method that detects when the tsunami touches the tree, any part that is welded to another that is anchored won't cause a touched event to fire if the other part is also anchored. Unfairey 2 — 2y

Answer this question