Delta time meters

This commit is contained in:
Irastris
2026-08-16 16:48:00 -04:00
parent f8ef48d74e
commit 115bb6d2ea
13 changed files with 364 additions and 111 deletions
+6 -1
View File
@@ -17,7 +17,12 @@ public:
virtual int _execute(u32);
virtual int _delete();
f32 acc(s16 param_0, s16 param_1, s16 param_2) {
f32 acc(DUSK_IF_ELSE(f32, s16) param_0, DUSK_IF_ELSE(f32, s16) param_1, DUSK_IF_ELSE(f32, s16) param_2) {
#if TARGET_PC
if (param_0 == param_2) {
return 1.0f;
}
#endif
return ((f32)(param_1 - param_2) * (f32)(param_1 - param_2)) / ((f32)(param_0 - param_2) * (f32)(param_0 - param_2));
}