-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathTransformObject.cs
33 lines (30 loc) · 932 Bytes
/
TransformObject.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
using Unity.Jobs.LowLevel.Unsafe;
using UnityEngine;
namespace PersistentShipObjects {
public class TransformObject // gdi gh is right
{
public AltVector3 pos;
public AltVector3 rot;
public int unlockableID;
public string unlockableName;
public TransformObject(Vector3 newPosition, Vector3 newRotation, int newUnlockableID, string newUnlockableName) {
pos = new AltVector3(newPosition);
rot = new AltVector3(newRotation);
unlockableID = newUnlockableID;
unlockableName = newUnlockableName;
}
}
public class AltVector3 {
public float x;
public float y;
public float z;
public AltVector3(Vector3 value) {
x = value.x;
y = value.y;
z = value.z;
}
public Vector3 GetVector3() {
return new Vector3(x, y, z);
}
}
}