KinematicCharacterBody.MoveAndCollide(Vector2) Method
Definition¶
Namespace: Brine2D.ECS.Components
Queues a discrete move for this tick. Unlike MoveAndSlide(Vector2), the character
moves exactly by motion without sliding along surfaces. If a solid
surface is hit during the cast, the character stops at the contact point and
LastMoveAndCollideHit is set with full sub-shape detail; otherwise it is
null. The result is available after the next pre-physics step.
Mutually exclusive with MoveAndSlide(Vector2) per tick — velocity integration is skipped for any tick in which a MoveAndCollide(Vector2) motion is queued.
public Brine2D.ECS.Components.KinematicCharacterBody MoveAndCollide(System.Numerics.Vector2 motion);
Parameters¶
motion System.Numerics.Vector2