(KinematicBody2D)What do you do with character collisions?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By keito940
:warning: Old Version Published before Godot 3 was released.

As I looked at the manual, in the collision of physic characters,
There are KinematicBody2D.is_ colliding and KinematicBody2D.get_collision_normal, but why is not it.
What has become of that?

Which engine version are you using?

Zylann | 2017-11-21 18:55

Godot3.0 alpha2.

keito940 | 2017-11-22 06:27

:bust_in_silhouette: Reply From: kidscancode

That manual page has not yet been rewritten for Godot 3.0. If you’re going to use the development version, you can’t rely on documentation being complete (docs can’t be written until after the code is finished). If you’re new to Godot, you should probably stick with 2.1 until 3.0 is released.

If you are going to be working with 3.0, the API docs are up to date:
http://docs.godotengine.org/en/latest/classes/class_kinematicbody2d.html

In brief, you use move_and_collide() to move a kinematic body and detect collisions.

If there is a collision, a KinematicCollision2D object is returned:

This object contains information about the collision.

Thank you very much.
It has not been rewritten yet.

keito940 | 2017-11-24 08:27