fix euler, start fix midpoint
This commit is contained in:
@@ -40,7 +40,8 @@ public:
|
||||
void applyExternalForce(Vec3 force);
|
||||
|
||||
void Midpoint(Spring& spring, float timestep);
|
||||
int LengthCalculator(Vec3 position1, Vec3 position2);
|
||||
std::tuple<Vec3, Vec3> MidPointStep(float timestep, const Spring& spring, Vec3 position, Vec3 velocity, Vec3 normal, float length);
|
||||
float LengthCalculator(Vec3 vector);
|
||||
|
||||
Vec3 calculatePositionTimestepEuler(Vec3 oldPosition, float timestep, Vec3 veloctiy);
|
||||
Vec3 calculateVelocityTimestepEuler(Vec3 oldVelocity, float timestep, Vec3 acceleration);
|
||||
|
||||
Reference in New Issue
Block a user