![]() |
AW: Mouse Move to (x,y) Bewegung sehen
Aber auch keine lokale, wenn es eine globale gibt. Ich mag zwar globale Variablen auch nicht sonderlich, aber was soll' s?
|
AW: Mouse Move to (x,y) Bewegung sehen
Du kannst da auch noch eine Interpolation einführen, sodass du dann nicht immer eine Art von beschleunigte (quadratische) Bewegung hast.
|
AW: Mouse Move to (x,y) Bewegung sehen
Aphton wie geht das??
|
AW: Mouse Move to (x,y) Bewegung sehen
Liste der Anhänge anzeigen (Anzahl: 1)
Code:
P wäre dein interpolierter Punkt!
A = Startpunkt
B = Endpunkt dt = delta Time lt = last Tick A, B TPoint von mir aus dt = GetTickCount - lt lt = GetTickCount f(x) := irgend ein Interpolator mit x in [0, 1] fdt = f(dt) P = A * (1-fdt) + B * fdt Edit: Vlt ist das hier anschaulicher: |
Alle Zeitangaben in WEZ +1. Es ist jetzt 01:46 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz