BsCollision.h 575 B

1234567891011121314151617181920212223
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. #pragma once
  4. #include "BsCorePrerequisites.h"
  5. #include "BsVector3.h"
  6. namespace BansheeEngine
  7. {
  8. struct ContactPoint
  9. {
  10. Vector3 point;
  11. Vector3 normal;
  12. };
  13. struct CollisionData
  14. {
  15. SPtr<Collider> collider;
  16. Vector<ContactPoint> contactPoints;
  17. Vector3 impulse;
  18. Vector3 relativeVelocity;
  19. };
  20. }