Orientation record struct
public readonly record struct Orientation A rotation, as a quaternion in doubles on Godot’s axes. It’s a small value type, so pass it around and compare it freely.
var turned = Orientation.Yaw(90).Then(Orientation.Axis(new MapVector(1, 0, 0), Math.PI / 8));
var ahead = turned.Rotate(new MapVector(0, 0, -1));
- Assembly
- EvilEngine.Api
- Commit
- 4ff877b1