This commit is contained in:
CortexCore
2023-11-15 23:54:54 +08:00
parent ee3ecec6cb
commit 3c837a4a33
356 changed files with 73756 additions and 26493 deletions

View File

@@ -179,6 +179,14 @@ namespace BITKit
public Vector3 position;
public Vector3 forward;
public Quaternion rotation;
public Location(Vector3 position, Quaternion rotation)
{
this.position = position;
this.rotation = rotation;
this.forward = rotation * Vector3.forward;
}
public Location Set(Vector3 value)
{
position = value;