0 votes

In Godot has a built-in object/class for implementation of 3D player (player controlled character)?

PS: I Have my own implementation of 3D player. I want to know is there any standard solution.

in Engine by (359 points)

1 Answer

0 votes

There is no (buggy) character controlled like in other engines, you need to program your own (buggy) character controller (like one usually ends doing in other engines xD).

That said, there is an API on KinematicBody (move) that is useful for p/np controlled characters.

You can see an implementation of it on the Kinematic Character demo.

In Godot 3, move_and_slide makes programming controlled characters easier without compromising flexibility (demo on master branch uses this).

RigidBody also have a Character mode, which nulls rotations and also the possibility to use a "custom integrator" to modify the body state (velocities) used by the physics engine.

The 3D platformer demo is an example of this type of bodies.

ps: Up to Godot 2.1.x, KinematicBody is limited to the use only of layers to detect collisions, RigidBody use masks instead (which is the "correct" way).

by (7,922 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.