Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public interface ICollidable
- {
- /// <summary>
- /// Test collision with another collidable
- /// </summary>
- /// <param name="tThis"></param>
- /// <param name="other"></param>
- /// <param name="tOther"></param>
- /// <returns></returns>
- bool Collides( ICollidable other);
- /// <summary>
- /// Try to intersect a ray with the collidable and return
- /// the location of the intersections.
- /// </summary>
- /// <param name="tThis"></param>
- /// <param name="ray"></param>
- /// <returns></returns>
- IEnumerable<Vector3> IntersectRay( PointDirection3 ray);
- /// <summary>
- /// Transform the location/rotation of the collidable
- /// </summary>
- /// <param name=""></param>
- /// <param name="transform"></param>
- /// <returns></returns>
- ICollidable Transform(Matrix4x4 transform);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement