1 | //************************************ bs::framework - Copyright 2018 Marko Pintera **************************************// |
---|---|
2 | //*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********// |
3 | #include "Physics/BsJoint.h" |
4 | |
5 | namespace bs |
6 | { |
7 | Rigidbody* Joint::getBody(JointBody body) const |
8 | { |
9 | return mInternal->getBody(body); |
10 | } |
11 | |
12 | void Joint::setBody(JointBody body, Rigidbody* value) |
13 | { |
14 | mInternal->setBody(body, value); |
15 | } |
16 | |
17 | Vector3 Joint::getPosition(JointBody body) const |
18 | { |
19 | return mInternal->getPosition(body); |
20 | } |
21 | |
22 | Quaternion Joint::getRotation(JointBody body) const |
23 | { |
24 | return mInternal->getRotation(body); |
25 | } |
26 | |
27 | void Joint::setTransform(JointBody body, const Vector3& position, const Quaternion& rotation) |
28 | { |
29 | mInternal->setTransform(body, position, rotation); |
30 | } |
31 | |
32 | float Joint::getBreakForce() const |
33 | { |
34 | return mInternal->getBreakForce(); |
35 | } |
36 | |
37 | void Joint::setBreakForce(float force) |
38 | { |
39 | mInternal->setBreakForce(force); |
40 | } |
41 | |
42 | float Joint::getBreakTorque() const |
43 | { |
44 | return mInternal->getBreakTorque(); |
45 | } |
46 | |
47 | void Joint::setBreakTorque(float torque) |
48 | { |
49 | mInternal->setBreakTorque(torque); |
50 | } |
51 | |
52 | bool Joint::getEnableCollision() const |
53 | { |
54 | return mInternal->getEnableCollision(); |
55 | } |
56 | |
57 | void Joint::setEnableCollision(bool value) |
58 | { |
59 | mInternal->setEnableCollision(value); |
60 | } |
61 | } |