How to make sure that when I throw the weapon it fell to the ground and did not hang at certain coordinates?
I have a blueprint of dropping weapons, but when I press a button, my weapon just hangs at certain coordinates. And I want it to fall.
asked Mar 03 '18 at 07:16 PM in Blueprint Scripting
You need to check the box that says "Simulate Physics" and the box that says "Enable Gravity". They both need to be enabled on the root component. The root component is the one at the root of the component tree in the blueprint editor. It usually starts out as "DefaultSceneRoot" but that won't do physics.
If you have DefaultSceneRoot then you can replace it with the mesh (drag-drop) so the mesh becomes the root component. Then enabling physics and gravity will work.
Or you can do what I do: use a collision component for the root. It gets physics/gravity/collision and the mesh has them all turned off. I find that to be more stable in the physics engine than using a mesh directly.
answered Mar 04 '18 at 07:24 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here