I have a cart and I want it to be able to be destroyed when it is hit hard enough.
However, the entire cart is held together by WeldConstraints.
This seems to make it impossible to detect the difference in motion between two sections of the cart, as they always move together. This means I can’t use the difference in velocity to see if they should break apart or not.
I’ve looked for solutions, but couldn’t find any. I wondered if RunService has one after simulation but before constraints, but nothing there either.
Any ideas or suggestions?
With this event, you could probably run a check to see when the cart’s hitbox, or a part of the cart hits something, and if the carts velocity is something something, then break it. I am not actually sure how you can check how fast something is going so…
The issue with this event is that it can take a few frames before actually sending the event, so the velocity could have changed quite a bit, which is a problem if you need the velocity before it is changed by the collision
Also, to know which part to break requires knowing individual speed per part, which seems impossible due to the WeldConstraints.
Thanks for the reply, nonetheless =)
1 Like