Added forward function
This commit is contained in:
parent
3a7cd76d55
commit
8fec35657a
4
math_tool.gd
Normal file
4
math_tool.gd
Normal file
|
@ -0,0 +1,4 @@
|
|||
# Return the forward vector for a global transform
|
||||
static func forward(transform: Transform) -> Vector3:
|
||||
return transform.basis.z.normalized()
|
||||
|
Reference in a new issue