Originally posted by Dealman
View Post
For the recoil try regular AddImpulseAtLocation in the direction reverse to the muzzle socket forward vector. Something like GetForwardVector(muzzle_socket) * (-1) * RecoilStrenght would be the impulse vector itself.
MMT functions have to be called from MMTPhysicsUpdate event and this makes them not very suitable for the input driven events. Add impulse will work just fine and better suited for this kind of behavior.
Btw, I'm not sure if recoil should originate from the muzzle, perhaps it should be somewhere between the breach and middle of the barrel.
Comment