Stilllegung des Forums
Das Forum wurde am 05.06.2023 nach über 20 Jahren stillgelegt (weitere Informationen und ein kleiner Rückblick).
Registrierungen, Anmeldungen und Postings sind nicht mehr möglich. Öffentliche Inhalte sind weiterhin zugänglich.
Das Team von spieleprogrammierer.de bedankt sich bei der Community für die vielen schönen Jahre.
Wenn du eine deutschsprachige Spieleentwickler-Community suchst, schau doch mal im Discord und auf ZFX vorbei!
Werbeanzeige
Quellcode |
|
1 2 3 4 5 6 7 8 9 10 11 |
Frame 1 (nach 10ms): positionX = 10 * 0.01 * 1 => 0.1 acceleration = 1 + 0.01 * 100 => 2 Frame 2 (nach 20ms): positionX = 10 * 0.01 * 2 => 0.2 acceleration = 2 + 0.01 * 100 => 3 ... Frame 20: (nach 200ms): positionX = 10 * 0.01 * 20 => 2.0 acceleration = 20 + 0.01 * 100 => 21 |
Quellcode |
|
1 2 3 4 5 6 7 |
Frame 1: (nach 100ms): positionX = 10 * 0.1 * 1 => 1.0 acceleration = 1 + 0.1 * 100 => 11 Frame 2: (nach 200ms): positionX = 10 * 0.1 * 11 => 11.0 acceleration = 11 + 0.1 * 100 => 21 |
Community-Fossil
Beruf: Teamleiter Mobile Applikationen & Senior Software Engineer
Ja, musste halt n Integral benutzen.
Die Intervalle sind dann Wurscht, das Ergebnis stimmt, weil es nicht iterativ ist.
Community-Fossil
Beruf: Teamleiter Mobile Applikationen & Senior Software Engineer
Dieser Beitrag wurde bereits 4 mal editiert, zuletzt von »BlueCobold« (19.02.2011, 20:58)
Fixed Timestep ist doch nicht das Gegenteil von Iterativ
Werbeanzeige