A function defined in BBMOD_Vec3.gml
Sub(_v)
Subtracts vector _v
from this vector and returns the result as a new vector.
Name | Type | Description |
---|---|---|
_v | Struct.BBMOD_Vec3 |
The vector to subtract from this one. |
Struct.BBMOD_Vec3
The created vector.
var _v1 = new BBMOD_Vec3(1.0, 2.0, 3.0);
var _v2 = new BBMOD_Vec3(4.0, 5.0, 6.0);
var _v3 = _v1.Sub(_v2); // Equals to BBMOD_Vec3(-3.0, -3.0, -3.0)
Copyright © 2025, BlueBurn. Built on January 04, 2025 using GMDoc.