Falco Engine 3.9.0.1 (beta)
FreeJoint.cs
Go to the documentation of this file.
1using System.Runtime.CompilerServices;
2
3namespace FalcoEngine
4{
5 public class FreeJoint : Component
6 {
7 internal FreeJoint() { }
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_limitMin(out Vector3 value);
49 return value;
50 }
51 set
52 {
53 INTERNAL_set_limitMin(ref value);
54 }
55 }
56
61 {
62 get
63 {
64 INTERNAL_get_limitMax(out Vector3 value);
65 return value;
66 }
67 set
68 {
69 INTERNAL_set_limitMax(ref value);
70 }
71 }
72
76 public bool linkedBodiesCollision { [MethodImpl(MethodImplOptions.InternalCall)] get; [MethodImpl(MethodImplOptions.InternalCall)] set; }
77
81 public Rigidbody connectedObject { [MethodImpl(MethodImplOptions.InternalCall)] get; [MethodImpl(MethodImplOptions.InternalCall)] set; }
82
86 [MethodImpl(MethodImplOptions.InternalCall)]
87 public extern void AutoConfigureAnchors();
88
92 [MethodImpl(MethodImplOptions.InternalCall)]
93 public extern void Rebuild();
94
95 /*----------- INTERNAL CALLS ------------*/
96
97 [MethodImpl(MethodImplOptions.InternalCall)]
98 private extern void INTERNAL_get_anchor(out Vector3 value);
99
100 [MethodImpl(MethodImplOptions.InternalCall)]
101 private extern void INTERNAL_set_anchor(ref Vector3 value);
102
103 [MethodImpl(MethodImplOptions.InternalCall)]
104 private extern void INTERNAL_get_connectedAnchor(out Vector3 value);
105
106 [MethodImpl(MethodImplOptions.InternalCall)]
107 private extern void INTERNAL_set_connectedAnchor(ref Vector3 value);
108
109 [MethodImpl(MethodImplOptions.InternalCall)]
110 private extern void INTERNAL_get_limitMin(out Vector3 value);
111
112 [MethodImpl(MethodImplOptions.InternalCall)]
113 private extern void INTERNAL_set_limitMin(ref Vector3 value);
114
115 [MethodImpl(MethodImplOptions.InternalCall)]
116 private extern void INTERNAL_get_limitMax(out Vector3 value);
117
118 [MethodImpl(MethodImplOptions.InternalCall)]
119 private extern void INTERNAL_set_limitMax(ref Vector3 value);
120 }
121}
void AutoConfigureAnchors()
Auto configure connected anchor point depending on an anchor of this object
Vector3 limitMin
Get or set the lower angle limits of this joint
Definition: FreeJoint.cs:45
Rigidbody connectedObject
Get or set the object to connect with
Definition: FreeJoint.cs:81
void Rebuild()
Rebuild this joint
Vector3 anchor
Get or set an anchor point relative to this object
Definition: FreeJoint.cs:13
Vector3 limitMax
Get or set the upper angle limits of this joint
Definition: FreeJoint.cs:61
bool linkedBodiesCollision
Get or set the linked bodies collision flag
Definition: FreeJoint.cs:76
Vector3 connectedAnchor
Get or set an anchor point relative to connected object
Definition: FreeJoint.cs:29