This commit is contained in:
CortexCore
2023-11-06 01:17:23 +08:00
parent bd40165ade
commit 5446067f91
114 changed files with 2023 additions and 414 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;