godot-docs
godot-docs copied to clipboard
"Your first 3D game" has several mistakes
Your Godot version:4.0.stable.mono
Issue description:
- Properties of Vector2/Vector3 are suppose to be in uppercase; 2.Parameter "delta" are suppose to be a double, instead of float 3._velocity = MoveAndSlide(_velocity, Vector3.Up); is not right either.
URL to the documentation page (if already existing): https://docs.godotengine.org/en/stable/getting_started/first_3d_game/03.player_movement_code.html
My math is rusty but is PI/4 90 degrees or is it 45 degrees?
The comments for the code in the second script in this section (https://docs.godotengine.org/en/stable/getting_started/first_3d_game/04.mob_scene.html#removing-monsters-off-screen) says that the rotation range is between -90 to 90 degrees.
# This function will be called from the Main scene.
func initialize(start_position, player_position):
...
# In this rotation^, the mob will move directly towards the player
# so we rotate it randomly within range of -90 and +90 degrees.
rotate_y(randf_range(-PI / 4, PI / 4))
Also the C# snippets don't compile. I have working here: https://www.reddit.com/r/godot/comments/11ib90a/comment/jb1tko6/