Skip to content

PhysicsBodyComponent.LinearVelocity Property

Definition

Namespace: Brine2D.ECS.Components

Gets or sets the linear velocity of this body in pixels per second.

public System.Numerics.Vector2 LinearVelocity { get; set; }

Property Value

System.Numerics.Vector2

Remarks

For Kinematic bodies, the setter has no persistent effect. The physics system derives and overwrites kinematic velocity every fixed-update frame from the body's position displacement.