| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- //********************************** Banshee Engine (www.banshee3d.com) **************************************************//
- //**************** Copyright (c) 2016 Marko Pintera ([email protected]). All rights reserved. **********************//
- #include "BsJoint.h"
- namespace BansheeEngine
- {
- 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::setBreakToque(float torque)
- {
- mInternal->setBreakToque(torque);
- }
- }
|