BsFixedJoint.h 905 B

1234567891011121314151617181920212223242526272829303132
  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 "BsJoint.h"
  6. namespace BansheeEngine
  7. {
  8. /** @addtogroup Physics
  9. * @{
  10. */
  11. struct FIXED_JOINT_DESC;
  12. /** Physics joint that will maintain a fixed distance and orientation between its two attached bodies. */
  13. class BS_CORE_EXPORT FixedJoint : public Joint
  14. {
  15. public:
  16. FixedJoint(const FIXED_JOINT_DESC& desc) { }
  17. virtual ~FixedJoint() { }
  18. /** Creates a new fixed joint. */
  19. static SPtr<FixedJoint> create(const FIXED_JOINT_DESC& desc);
  20. };
  21. /** Structure used for initializing a new FixedJoint. */
  22. struct FIXED_JOINT_DESC : JOINT_DESC
  23. { };
  24. /** @} */
  25. }