SanAndreasUnity/Assets/Scripts/Importing/Collision/Box.cs
2020-05-31 19:07:22 +02:00

20 lines
No EOL
483 B
C#

using System.IO;
namespace SanAndreasUnity.Importing.Collision
{
public class Box
{
public const int Size = 2 * Vector3.Size + Surface.Size;
public readonly Vector3 Min;
public readonly Vector3 Max;
public readonly Surface Surface;
public Box(BinaryReader reader, Version version)
{
Min = new Vector3(reader);
Max = new Vector3(reader);
Surface = new Surface(reader);
}
}
}