Advertisement
Guest User

Untitled

a guest
Jun 29th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. public interface ICollidable
  2. {
  3. /// <summary>
  4. /// Test collision with another collidable
  5. /// </summary>
  6. /// <param name="tThis"></param>
  7. /// <param name="other"></param>
  8. /// <param name="tOther"></param>
  9. /// <returns></returns>
  10. bool Collides( ICollidable other);
  11.  
  12. /// <summary>
  13. /// Try to intersect a ray with the collidable and return
  14. /// the location of the intersections.
  15. /// </summary>
  16. /// <param name="tThis"></param>
  17. /// <param name="ray"></param>
  18. /// <returns></returns>
  19. IEnumerable<Vector3> IntersectRay( PointDirection3 ray);
  20.  
  21. /// <summary>
  22. /// Transform the location/rotation of the collidable
  23. /// </summary>
  24. /// <param name=""></param>
  25. /// <param name="transform"></param>
  26. /// <returns></returns>
  27. ICollidable Transform(Matrix4x4 transform);
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement