Motion
Get Motion

ReferenceScripting APIVector2sub

Vector2.sub

method

This less another.

Namesub
Kindmethod of Vector2
Called asvector2.sub(…)
Since0.3

Syntax

sub(v: Vector2): Vector2

Parameters

NameTypeDescription
vVector2The other

Returns

Vector2: the difference.