BsPhysXFixedJoint.cpp 714 B

1234567891011121314151617181920212223
  1. //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
  2. //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
  3. #include "BsPhysXFixedJoint.h"
  4. #include "BsFPhysxJoint.h"
  5. #include "extensions\PxFixedJoint.h"
  6. using namespace physx;
  7. namespace BansheeEngine
  8. {
  9. PhysXFixedJoint::PhysXFixedJoint(PxPhysics* physx)
  10. {
  11. PxFixedJoint* joint = PxFixedJointCreate(*physx, nullptr, PxTransform(), nullptr, PxTransform());
  12. joint->userData = this;
  13. mInternal = bs_new<FPhysXJoint>(joint);
  14. }
  15. PhysXFixedJoint::~PhysXFixedJoint()
  16. {
  17. bs_delete(mInternal);
  18. }
  19. }