Hello! for the past year or so, I've been using a lerp system to lerp the notes to their DestroyPoint.
The NJS for the notes are 1.875, and the code is as follows:
if (JSONBeatmapLoader.instance != null)
{
double timeSinceInstantiated = JSONBeatmapLoader.GetAudioSourceTime() - TimeShouldBeInstantiated;
t = (float)(timeSinceInstantiated / (JSONBeatmapLoader.instance.NJS)); //Modify "JSONBeatmapLoader.instance.NJS * 2" to change it to the time you intend to end the Lerp or the speed of the actual note, dumbass
}
transform.localPosition = Vector3.Lerp(Vector3.up * JSONBeatmapLoader.instance.noteCreate, Vector3.up * JSONBeatmapLoader.instance.noteDestroy, t);```
But now this poses a bit of a problem, as the value 1.875 has found through guesswork. NJS is how long the note is on screen for.
1.875 is the exact time used, because the Hitbox position is different from the NoteDestroy Place, therefore changing NJS can screw stuff up drastically.
So, I was wondering, should I move the object without a lerp? What I was worried about is if the game lagged, the note would be out of place if I didn't use a Lerp, but I wanna know. How do I approach this problem? more stuff can be supplied if needed.