Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Your first 3D game" has several mistakes #6878

Closed
mazingtech opened this issue Mar 3, 2023 · 2 comments · Fixed by #6811
Closed

"Your first 3D game" has several mistakes #6878

mazingtech opened this issue Mar 3, 2023 · 2 comments · Fixed by #6811
Labels
area:getting started Issues and PRs related to the Getting Started section of the documentation bug topic:dotnet

Comments

@mazingtech
Copy link

Your Godot version:4.0.stable.mono

Issue description:

  1. 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

@YuriSizov YuriSizov added bug topic:dotnet area:getting started Issues and PRs related to the Getting Started section of the documentation and removed enhancement labels Mar 3, 2023
@wzwywx
Copy link

wzwywx commented Mar 5, 2023

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))

@3lijah
Copy link

3lijah commented Mar 5, 2023

Also the C# snippets don't compile. I have working here: https://www.reddit.com/r/godot/comments/11ib90a/comment/jb1tko6/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:getting started Issues and PRs related to the Getting Started section of the documentation bug topic:dotnet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants