KinPortal/Game/Portal.cs
2020-05-15 12:18:51 +02:00

25 lines
659 B
C#
Executable File

using System;
using Microsoft.Xna.Framework;
namespace KinPortal {
public class Portal : InterruptorObject {
public Vector3 Normal {
get {
return Vector3.Transform(new Vector3(1, 0, 0), Rot);
}
}
public Vector3 Up {
get {
return Vector3.Transform(new Vector3(0, 0, 1), Rot);
}
}
public Portal(string filepath, Vector3 pos, Quaternion rot, Scene scene)
: base(filepath, pos, rot, scene, ShapeType.TRIANGULATE, true, new NoTargetingStrategy(), new PortalCollisionStrategy()) {}
public Portal(string filepath, Scene scene)
: this(filepath, Vector3.Zero, Quaternion.Identity, scene) {}
}
}