Interhaptics SDK for Unity 1.6
Loading...
Searching...
No Matches
BodyMapping.cs
Go to the documentation of this file.
1/* ​
2* Copyright (c) 2023 Go Touch VR SAS. All rights reserved. ​
3* ​
4*/
5
7{
11 public enum Perception
12 {
13 None = -1,
14 Stiffness = 0,
15 Texture = Stiffness + 1,
16 Vibration = Texture + 1,
18 };
19
23 public enum BufferDataType
24 {
25 Amplitude = 0,
26 PCM = 0,
27 Frequency = 1,
28 Transient = 2
29 };
30
34 public enum BodyPartID
35 {
36 // List of all body parts with specific identifiers - 56 bodyparts
37 Bp_None = -1,
38
39 Bp_Chest = 340,
40 Bp_Waist = 325,
41 Bp_Crane = 359,
42 Bp_Neck = 358,
43
46
49
52
55
56 Bp_Left_palm = 216,
57 Bp_Right_palm = 116,
58
59 Bp_Left_sole = 200,
60 Bp_Right_sole = 100,
61
62 Bp_Left_hallux = 233,
65 Bp_Left_ring_toe = 236,
67
68 Bp_Right_hallux = 133,
73
77
81
85
89
93
97
101
105
109
112 Bp_Right_pinky_third = 158, //56 bodyparts
113 };
114
118 public enum Operator
119 {
120 Minus = -1,
121 Neutral = 0,
122 Plus = 1,
123 };
124
128 public enum LateralFlag
129 {
130 Unknown_position = -1,
131 Global = 0,
132 Right = 1,
133 Left = 2,
134 Center = 3
135 };
136
140 public enum GroupID
141 {
142 Unknown = -1,
143
144 All = 0,
145
146 Top = 100,
147 Down = 101,
148
149 Arm = 200,
150 Head = 201,
151 Chest = 202,
152 Waist = 203,
153 Leg = 204,
154
155 Upper_arm = 300,
156 Lower_arm = 301,
157 Hand = 302,
158 Crane = 303,
159 Neck = 304,
160 Upper_leg = 305,
161 Lower_leg = 306,
162 Foot = 307,
163
164 Palm = 400,
165 Finguer = 401,
166 Sole = 402,
167 Toe = 403,
168
169 Thumb = 500,
170 Index = 501,
171 Middle = 502,
172 Ring = 503,
173 Pinky = 504,
174 Hallux = 505,
175 Index_toe = 506,
176 Middle_toe = 507,
177 Ring_toe = 508,
178 Pinky_toe = 509,
179
180 First = 600,
181 Second = 601,
182 Third = 602,
183 };
184
188 public struct CommandData
189 {
190
191 public CommandData(Operator _sign, GroupID _group, LateralFlag _side = LateralFlag.Global)
192 {
193 Sign = _sign;
194 Group = _group;
195 Side = _side;
196 }
197
198 // Variables ------------------------------------------------------------------------------------
199
204
209
214
215 };
216
217}
BufferDataType
Enumeration for types of haptic buffer data.
@ PCM
PCM data type, same as amplitude.
GroupID
Enumeration for group identification in haptic command data.
Operator
Enumeration for operator signs in haptic command data.
BodyPartID
Enumeration for identifying different body parts for haptic effects.
Perception
Enumeration for different types of haptic perceptions.
@ AllPerception
All types of perceptions.
LateralFlag
Enumeration for lateral flag in haptic command data.
Structure for command data in haptic systems.
Operator Sign
Sign of the operation (+/-)
CommandData(Operator _sign, GroupID _group, LateralFlag _side=LateralFlag.Global)