This commit is contained in:
watrabi
2025-10-28 14:05:46 -04:00
parent 977f1ff4b8
commit c93494f795
452 changed files with 47860 additions and 152 deletions
+33
View File
@@ -0,0 +1,33 @@
/* Copyright 2003-2005 ROBLOX Corporation, All Rights Reserved */
#pragma once
#include "Util/G3DCore.h"
#include "Util/Quaternion.h"
namespace RBX {
class RunningAverageState
{
private:
Vector3 position;
Quaternion angles;
static float weight(); // % of prior average to use
public:
static int stepsToSleep(); // number of good steps to sleep
RunningAverageState() {}
void reset(const CoordinateFrame& cofm);
void update(const CoordinateFrame& cofm, float radius);
bool withinTolerance(const CoordinateFrame& cofm, float radius, float tolerance);
};
}// namespace