BasePart.WillTouch(BasePart other)

As a roblox developer, it is currently impossible to make a car interact realistically with the environment.

WillTouch fires when the engine detects a collision, but before it solves the collision.

Consider a wooden fence. If you drive into it, it will break and slow your car down. This is impossible right now because Touched fires after the engine has solved the collision and decided that the car should bounce backwards.

19 Likes

This could also solve a big problem with making realistic trampolines. I support this!

1 Like

Another argument for BasePart:StopSleepingLazyBum() and BasePart:GoToBedItsTimeToSleep() and maybe even BasePart:HeyBuddyAreYouAwakeRightNow()

17 Likes

Same as Part.TouchedBeforePhysics ?

3 Likes

Yeah looks like it

The problem with implementation would be that calling a Roblox function through the C sided physics engine could really slow it down? It might need to check if there is a Lua event connected halfway through the script making switches in and out of fields.

If you ask why with .Touched it doesn’t do it, I think only sending a table to a Lua interpreter which then fires the events after all the C sided code is done is the reason it doesn’t do it.