Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


velocity

The velocity used to calculate the _targetPosition. This is not used for movement but it will be returned, modified by any surfaces hit. This velocity can then be used in subsequent inputs for movement.
Read time 1 minuteLast updated 12 days ago

Definition

  • Type: Property
  • Namespace: Unity.U2D.Physics
  • Assembly: UnityEngine.PhysicsCore2DModule
public Vector2 velocity { readonly get; set; }