Falco Engine 3.9.0.1 (beta)
HingeJoint.cs
Go to the documentation of this file.
1using System.Runtime.CompilerServices;
2
3namespace FalcoEngine
4{
5 public class HingeJoint : Component
6 {
7 internal HingeJoint() { }
8
13 {
14 get
15 {
16 INTERNAL_get_anchor(out Vector3 value);
17 return value;
18 }
19 set
20 {
21 INTERNAL_set_anchor(ref value);
22 }
23 }
24
29 {
30 get
31 {
32 INTERNAL_get_connectedAnchor(out Vector3 value);
33 return value;
34 }
35 set
36 {
37 INTERNAL_set_connectedAnchor(ref value);
38 }
39 }
40
45 {
46 get
47 {
48 INTERNAL_get_axis(out Vector3 value);
49 return value;
50 }
51 set
52 {
53 INTERNAL_set_axis(ref value);
54 }
55 }
56
60 public float limitMin { [MethodImpl(MethodImplOptions.InternalCall)] get; [MethodImpl(MethodImplOptions.InternalCall)] set; }
61
65 public float limitMax { [MethodImpl(MethodImplOptions.InternalCall)] get; [MethodImpl(MethodImplOptions.InternalCall)] set; }
66
70 public bool linkedBodiesCollision { [MethodImpl(MethodImplOptions.InternalCall)] get; [MethodImpl(MethodImplOptions.InternalCall)] set; }
71
75 public Rigidbody connectedObject { [MethodImpl(MethodImplOptions.InternalCall)] get; [MethodImpl(MethodImplOptions.InternalCall)] set; }
76
80 [MethodImpl(MethodImplOptions.InternalCall)]
81 public extern void AutoConfigureAnchors();
82
86 [MethodImpl(MethodImplOptions.InternalCall)]
87 public extern void Rebuild();
88
89 /*----------- INTERNAL CALLS ------------*/
90
91 [MethodImpl(MethodImplOptions.InternalCall)]
92 private extern void INTERNAL_get_anchor(out Vector3 value);
93
94 [MethodImpl(MethodImplOptions.InternalCall)]
95 private extern void INTERNAL_set_anchor(ref Vector3 value);
96
97 [MethodImpl(MethodImplOptions.InternalCall)]
98 private extern void INTERNAL_get_connectedAnchor(out Vector3 value);
99
100 [MethodImpl(MethodImplOptions.InternalCall)]
101 private extern void INTERNAL_set_connectedAnchor(ref Vector3 value);
102
103 [MethodImpl(MethodImplOptions.InternalCall)]
104 private extern void INTERNAL_get_axis(out Vector3 value);
105
106 [MethodImpl(MethodImplOptions.InternalCall)]
107 private extern void INTERNAL_set_axis(ref Vector3 value);
108 }
109}
float limitMin
Get or set the lower angle limits of this joint
Definition: HingeJoint.cs:60
Vector3 axis
Get or set an axis of what rotation will be applied to
Definition: HingeJoint.cs:45
void AutoConfigureAnchors()
Auto configure connected anchor point depending on an anchor of this object
float limitMax
Get or set the upper angle limits of this joint
Definition: HingeJoint.cs:65
void Rebuild()
Rebuild this joint
bool linkedBodiesCollision
Get or set the linked bodies collision flag
Definition: HingeJoint.cs:70
Vector3 connectedAnchor
Get or set an anchor point relative to connected object
Definition: HingeJoint.cs:29
Vector3 anchor
Get or set an anchor point relative to this object
Definition: HingeJoint.cs:13
Rigidbody connectedObject
Get or set the object to connect with
Definition: HingeJoint.cs:75