| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
- //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
- #include "Physics/BsJoint.h"
- namespace bs
- {
- Rigidbody* Joint::getBody(JointBody body) const
- {
- return mInternal->getBody(body);
- }
- void Joint::setBody(JointBody body, Rigidbody* value)
- {
- mInternal->setBody(body, value);
- }
- Vector3 Joint::getPosition(JointBody body) const
- {
- return mInternal->getPosition(body);
- }
- Quaternion Joint::getRotation(JointBody body) const
- {
- return mInternal->getRotation(body);
- }
- void Joint::setTransform(JointBody body, const Vector3& position, const Quaternion& rotation)
- {
- mInternal->setTransform(body, position, rotation);
- }
- float Joint::getBreakForce() const
- {
- return mInternal->getBreakForce();
- }
- void Joint::setBreakForce(float force)
- {
- mInternal->setBreakForce(force);
- }
- float Joint::getBreakTorque() const
- {
- return mInternal->getBreakTorque();
- }
- void Joint::setBreakTorque(float torque)
- {
- mInternal->setBreakTorque(torque);
- }
- bool Joint::getEnableCollision() const
- {
- return mInternal->getEnableCollision();
- }
- void Joint::setEnableCollision(bool value)
- {
- mInternal->setEnableCollision(value);
- }
- }
|