key press not working when physics is turned on and gravity is 0

I am currently trying to add torque as rotating movements (currently doing it with a cube just for testing) and when I turn off gravity and turn on physics, nothing seems to work anymore.
the button press is not working on hold anymore and i have to continuously click it to activate anything (which is not what i want). it worked before going towards physics and i have no clue why it is not now :confused:

this will eventually lead into seeing how the torque of the movement leads to the displacement of the cube in space because of the forces behind it.



image
image

Hey there @mmartin139! I believe gravity isn’t the thing causing issues here, it’s actually the wonderful nature of Simulate Physics. When you simulate physics, the cube separates from it’s parent object. So the root object that is taking the input basically loses the cube entirely and the cube becomes it’s own actor. So an easy fix for this is to make the cube the root object like this:

2022-11-18_04-30-09

If that doesn’t solve your issue, is your object on a player controlled pawn or random object? If it’s a random object you must use the Enable Input node before it will take input.