7 lines
276 B
GDScript
7 lines
276 B
GDScript
extends RefCounted
|
|
# All MSE/MDE vectors are Z-up. Convert orientation before the cm->m scale.
|
|
static func direction(source: Vector3) -> Vector3:
|
|
return Vector3(source.x, source.z, -source.y)
|
|
static func position(source: Vector3) -> Vector3:
|
|
return direction(source) * 0.01
|