Falco Engine 3.9.0.1 (beta)
FixedJoint.cs
Go to the documentation of this file.
1using System.Runtime.CompilerServices;
2
3namespace FalcoEngine
4{
5 public class FixedJoint : Component
6 {
7 internal FixedJoint() { }
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
44 public bool linkedBodiesCollision { [MethodImpl(MethodImplOptions.InternalCall)] get; [MethodImpl(MethodImplOptions.InternalCall)] set; }
45
49 public Rigidbody connectedObject { [MethodImpl(MethodImplOptions.InternalCall)] get; [MethodImpl(MethodImplOptions.InternalCall)] set; }
50
54 [MethodImpl(MethodImplOptions.InternalCall)]
55 public extern void AutoConfigureAnchors();
56
60 [MethodImpl(MethodImplOptions.InternalCall)]
61 public extern void Rebuild();
62
63 /*----------- INTERNAL CALLS ------------*/
64
65 [MethodImpl(MethodImplOptions.InternalCall)]
66 private extern void INTERNAL_get_anchor(out Vector3 value);
67
68 [MethodImpl(MethodImplOptions.InternalCall)]
69 private extern void INTERNAL_set_anchor(ref Vector3 value);
70
71 [MethodImpl(MethodImplOptions.InternalCall)]
72 private extern void INTERNAL_get_connectedAnchor(out Vector3 value);
73
74 [MethodImpl(MethodImplOptions.InternalCall)]
75 private extern void INTERNAL_set_connectedAnchor(ref Vector3 value);
76 }
77}
void AutoConfigureAnchors()
Auto configure connected anchor point depending on an anchor of this object
bool linkedBodiesCollision
Get or set the linked bodies collision flag
Definition: FixedJoint.cs:44
Vector3 anchor
Get or set an anchor point relative to this object
Definition: FixedJoint.cs:13
void Rebuild()
Rebuild this joint
Rigidbody connectedObject
Get or set the object to connect with
Definition: FixedJoint.cs:49
Vector3 connectedAnchor
Get or set an anchor point relative to connected object
Definition: FixedJoint.cs:29