You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/Virtual-Anatomy-(Unreal-Engine)/Explorer-level (hospital and simple environment)/Utilities/AnatomyHelpers.md
Retrieves an instance of the simulation manager from the GameMode associated with the provided world.
40
40
41
41
**Parameters**:
42
-
-`world`: The world in which the GameMode contains the simulation manager instance.
42
+
-`World`: The world in which the GameMode contains the simulation manager instance.
43
43
44
44
**Returns**:
45
45
A `TObjectPtr<UCPP_SimulationManager>` pointing to the simulation manager. If the simulation manager is not present in the GameMode, the function returns `nullptr`.
Retrieves the mesh selector instance from the user character in the specified world.
66
66
67
67
**Parameters**:
68
-
-`world`: The world containing the user character (instance of `UCPP_User`).
68
+
-`World`: The world containing the user character (instance of `UCPP_User`).
69
69
70
70
**Returns**:
71
71
A `TObjectPtr<UMeshSelector>` pointing to the mesh selector instance. If the world does not contain an instance of `UCPP_User`, the function returns `nullptr`.
72
72
73
73
---
74
74
75
-
### `float DegToRad(float angle)`
75
+
### `float DegTo# AnatomyUtils
76
+
77
+
A namespace containing utility functions for operations related to anatomy exploration in the context of a game or simulation. These functions are specifically designed to work reliably at the explorer level. While most functions are robust, some may return `nullptr` under specific conditions, which requires caution during use.
Retrieves an instance of the simulation manager from the GameMode associated with the provided world.
114
+
115
+
**Parameters**:
116
+
-`World`: The world in which the GameMode contains the simulation manager instance.
117
+
118
+
**Returns**:
119
+
A `TObjectPtr<UCPP_SimulationManager>` pointing to the simulation manager. If the simulation manager is not present in the GameMode, the function returns `nullptr`.
Retrieves the mesh selector instance from the user character in the specified world.
140
+
141
+
**Parameters**:
142
+
-`World`: The world containing the user character (instance of `UCPP_User`).
143
+
144
+
**Returns**:
145
+
A `TObjectPtr<UMeshSelector>` pointing to the mesh selector instance. If the world does not contain an instance of `UCPP_User`, the function returns `nullptr`.
Calculates beats per minute to the beats per second
153
+
154
+
**Parameters**:
155
+
-`BeatsPerMinute`: beats per minute of the heart
156
+
-`MaxPossibleBPS`: maximum beats per seconds given in the Types/SlideBarParameter.h, we have to suply this number to properly scale how often "hearth releases new particles" default value is 5 since max possible BPM is 300 and 300 BPM / 60 sec = 5 BPS
157
+
158
+
**Returns**:
159
+
How often should CPP_BloodParticleSystem tick, use this value to configure tick frequency.
160
+
161
+
---
162
+
163
+
### `float ConvertDegreesToRadians(float Angle)`
164
+
165
+
**Description**:
166
+
Converts an angle from degrees to radians.
167
+
168
+
**Parameters**:
169
+
-`Angle`: The angle in degrees.
82
170
83
171
**Returns**:
84
-
The angle converted to radians.
172
+
The angle converted to radians.
85
173
86
174
---
87
175
176
+
88
177
## Notes
89
178
90
179
- Ensure the validity of pointers returned by these functions before usage to avoid null pointer dereferencing.
0 commit comments