Add force in not being implemented

Hi,

I have an FPS game and I have a game object which is a crate that is an imported fbx file. I want this crate to move while I am shooting it. I already have an AddForceAtPosition inside my Raycast but my crate is not moving even an inch.

What could be the possible problem and how can I solve it?

Thanks guys.

Hey! Check a few things:

  1. Does the crate have a Rigidbody component? It should.
  2. Is the Rigidbody isKinematic flag checked? It should NOT be.
  3. Have you tried turning down the mass of the Rigidbody? Set it very low (like 1) to test.
  4. When are you adding the force? Is this getting called? Do a Debug.Log call to ensure your code is reaching the AddForce Call
  5. How many time are you calling AddForceAtPosition? If it’s just once, use the optional second parameter of the function to set the ForceMode to Impulse, which is designed for one-time force adds.