Very cool. Any tips on how to optimize checking for collisions with the rotor blades? My kneejerk solution is to just spam raycasts 360 around the rotors but I'm imagining some kind of container check needs to precede this
ya you want to use a container check layer first, then within the container check you should check for player collisions and do the math for their position because you want the propellers to interact with players reliably, then if there are bricks present in the container check i advise shooting out about 20-60 raycasts out in 360 on the propeller axis, this should happen every tick, if you want a lot of helicopters to be present in your game keep the raycast number as low as you can but modify a base angle for the raycasts every tick so that it gets the full range of raycasts over a few ticks, using a relativley small amount for each tick, having the propellers interact with bricks can be done sloppily without any notice
also another tip is: use applyImpulse to give the helicopter small amounts of sway
there should actually be a big zip folder of my mad max gamemode somewhere in mod discussion that has the full helicopter code in it, although it might be a little out of date it has a lot of helpful math and things in it