BsPhysXFixedJoint.cpp 687 B

12345678910111213141516171819202122
  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. mInternal = bs_new<FPhysXJoint>(joint);
  13. }
  14. PhysXFixedJoint::~PhysXFixedJoint()
  15. {
  16. bs_delete(mInternal);
  17. }
  18. }