KinematicBodyMoveAndCollide Method |
Moves the body along the vector rel_vec. The body will stop if it collides. Returns a KinematicCollision, which contains information about the collision.
If test_only is true, the body does not move but the would-be collision information is given.
Namespace: Godot
public KinematicCollision MoveAndCollide( Vector3 relVec, bool infiniteInertia = true, bool excludeRaycastShapes = true, bool testOnly = false )
[Missing <param name="relVec"/> documentation for "M:Godot.KinematicBody.MoveAndCollide(Godot.Vector3,System.Boolean,System.Boolean,System.Boolean)"]
[Missing <param name="infiniteInertia"/> documentation for "M:Godot.KinematicBody.MoveAndCollide(Godot.Vector3,System.Boolean,System.Boolean,System.Boolean)"]
[Missing <param name="excludeRaycastShapes"/> documentation for "M:Godot.KinematicBody.MoveAndCollide(Godot.Vector3,System.Boolean,System.Boolean,System.Boolean)"]
[Missing <param name="testOnly"/> documentation for "M:Godot.KinematicBody.MoveAndCollide(Godot.Vector3,System.Boolean,System.Boolean,System.Boolean)"]
[Missing <returns> documentation for "M:Godot.KinematicBody.MoveAndCollide(Godot.Vector3,System.Boolean,System.Boolean,System.Boolean)"]