Can't Set Simulate Physics C++ [Solved]
So I have a parent Pawn who takes input to move left and right and a space bar to jump, this is then received by the child pawn and addForce is used to make the jump, but it constantly says simulate physics needs to be enabled.
As you can see I set collision and simulate in code, yet in the blueprint view there isn't even the tickbox to activate physics.
What is going on?
First, to see all the other stuff in the Physics Pannel, you need to change the UPROPERTY from EditAnywhere to VisibleAnywhere.
Second, make sure your root is also capable of having physics enabled.
Third, I would also enable gravity.
Fourth, make sure you set up your Mesh correctly (adding collision for example).
Fifth, if it's still not working, I would try to wake up the rigid body.
Let me know if that works for you! <3
Hey thanks for the reminder. I changed the property to visibleanywhere which revealed the tick boxes for physics and gravity. I ended up adding a box collider as the root.
answered Jul 08 '17 at 11:58 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here