Forum

User posts thirstyconsider
13 March 2025 07:33 [ON MODERATION]
Check if `setup_rotation()` correctly applies rotation to the right objects. Ensure inputs are mapped properly, update rotation every frame, and verify the camera is a child of the character. Debug with print statements!

bitlife
13 March 2025 07:33 [ON MODERATION]
Reply to post of user stephane
Hi there,

Can someone tell me what does not work in my code?

My scene:
I have an eye camera placed on a cube that is my character.

I would like the left side of the screen to control the translation as the right rotation.

Here is the link to test my application:bitlife

Here is the link of my code:

I think the problem is in the setup_rotation() line 347, but I do not see.

I imagine that for top and down rotation I have to do it on the camera while the right and the left rotation on the character.
But in any case, for the moment the character does not makes any rotation …

If anyone knows it would be great.
In the meantime I continue to search.

thanks a lot
Check if `setup_rotation()` correctly applies rotation to the right objects. Ensure inputs are mapped properly, update rotation every frame, and verify the camera is a child of the character. Debug with print statements!