SanAndreasUnity/Assets/Scripts/Importing/Collision/Box.cs

20 lines
483 B
C#
Raw Normal View History

2020-05-31 17:07:22 +00:00
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);
}
}
}