Skip to content

Commit 587f52f

Browse files
committed
added hinge joint properties
1 parent 983d064 commit 587f52f

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

Runtime/Scripts/Physics/ZOHingeJoint.cs

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,38 @@ public UnityEngine.HingeJoint UnityHingeJoint {
3535
}
3636
}
3737

38+
/// <summary>
39+
/// The direction of axis in which the body is constrained.
40+
/// </summary>
41+
/// <value></value>
42+
public Vector3 Axis {
43+
get {
44+
return UnityHingeJoint.axis;
45+
}
46+
set {
47+
UnityHingeJoint.axis = value;
48+
}
49+
}
50+
51+
/// <summary>
52+
/// The position of the anchor in which the joint body is constrained
53+
/// </summary>
54+
/// <value></value>
55+
public Vector3 Anchor {
56+
get {
57+
return UnityHingeJoint.anchor;
58+
}
59+
set {
60+
UnityHingeJoint.anchor = value;
61+
}
62+
}
63+
64+
public Vector3 ConnectedAnchor {
65+
get {
66+
return UnityHingeJoint.connectedAnchor;
67+
}
68+
}
69+
3870
public bool _debug = false;
3971

4072

0 commit comments

Comments
 (0)