| 1234567891011121314151617181920212223 |
- //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
- //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
- #include "BsPhysXFixedJoint.h"
- #include "BsFPhysxJoint.h"
- #include "extensions\PxFixedJoint.h"
- using namespace physx;
- namespace BansheeEngine
- {
- PhysXFixedJoint::PhysXFixedJoint(PxPhysics* physx)
- {
- PxFixedJoint* joint = PxFixedJointCreate(*physx, nullptr, PxTransform(), nullptr, PxTransform());
- joint->userData = this;
- mInternal = bs_new<FPhysXJoint>(joint);
- }
- PhysXFixedJoint::~PhysXFixedJoint()
- {
- bs_delete(mInternal);
- }
- }
|