Falco Engine 3.9.0.1 (beta)
Collider.cs
Go to the documentation of this file.
1using System;
2using System.Runtime.CompilerServices;
3using System.Runtime.InteropServices;
4
5namespace FalcoEngine
6{
7 public class Collider : Component
8 {
9 internal Collider()
10 {
11
12 }
13
14 /*----------- PUBLIC ------------*/
15
20 {
21 get
22 {
23 INTERNAL_get_offset(out Vector3 value);
24 return value;
25 }
26 set
27 {
28 INTERNAL_set_offset(ref value);
29 }
30 }
31
36 {
37 get
38 {
39 INTERNAL_get_rotation(out Quaternion value);
40 return value;
41 }
42 set
43 {
44 INTERNAL_set_rotation(ref value);
45 }
46 }
47
48 /*----------- INTERNAL CALLS ------------*/
49
50 [MethodImpl(MethodImplOptions.InternalCall)]
51 private extern void INTERNAL_get_offset(out Vector3 value);
52
53 [MethodImpl(MethodImplOptions.InternalCall)]
54 private extern void INTERNAL_set_offset(ref Vector3 value);
55
56 [MethodImpl(MethodImplOptions.InternalCall)]
57 private extern void INTERNAL_get_rotation(out Quaternion value);
58
59 [MethodImpl(MethodImplOptions.InternalCall)]
60 private extern void INTERNAL_set_rotation(ref Quaternion value);
61 }
62}
Quaternion rotation
Get or set the offset rotation
Definition: Collider.cs:36
Vector3 offset
Get or set the offset position from center of the game object
Definition: Collider.cs:20