Your code looks correct. The update method will indeed be called every frame, and within that method, the cube should rotate around the Y-axis based on the delta time and the specified speed.
If you're encountering an issue where the cube isn't rotating as expected, one possible cause could be related to how the Rotate component is attached to the cube or if the cube itself is set up correctly within the Needle Engine scene.
I would recommend checking the following:
- Ensure that the
Rotate component is attached to the cube object in your scene.
- Verify that the Needle Engine scene is set up correctly with the cube object and that the
Rotate component is functioning as expected within the context of the whole scene.
- Check if there are any errors in the console or any other parts of your code that may be interfering with the rotation.
If you've already checked these and the issue persists, feel free to provide more details or ask specific questions, and I'll be happy to assist you further.
0 messages left GPT 3.5
thread_7uR0Nm10JsaDvORffPlH8CXM