hiker
a6568e01ea
Propperly handle instand speed increases in the physics when rewinding.
2016-09-26 09:01:18 +10:00
hiker
74f521980a
Fixed time handling to be in synch between history and rewind.
2016-09-23 07:56:21 +10:00
hiker
25a457f88f
Moved m_speed computation, so that the correct speed was computed
...
when the engine force (which is speed dependent) is used.
2016-09-22 08:57:37 +10:00
hiker
f0b5f41fc7
Added info message in case of rewinding.
2016-09-21 17:33:37 +10:00
hiker
1651d28a4c
In case of history replay update dt earlier so that World is updated
...
with the replay dt value.
2016-09-21 17:31:24 +10:00
hiker
15660f2d7a
Bugfixes: update MaxSpeed(dt=0) (which updates additional engine power
...
and slowdowns correctly). Call proceedToTransform after updating
the velocities (which are read).
2016-09-21 17:28:26 +10:00
hiker
f09ed569cc
Bugfix: kart rewinder stored incorrect bullet zipper speed.
2016-09-21 17:27:08 +10:00
hiker
457cb700d2
Make rewind work with history replay (when replaying kart controls),
...
which allows to have reproducible test cases.
2016-09-13 09:58:42 +10:00
hiker
f8b48a0313
Added zipper speed to state of kart.
2016-09-13 09:55:51 +10:00
hiker
876ba33876
Added state saving for skidding.
2016-09-09 13:38:39 +10:00
hiker
e1af0cc353
Fixed various bugs in max speed state saving.
2016-09-09 13:36:49 +10:00
hiker
3a367ce989
For debugging: instead of specifying the time to go back, specify the
...
time to go back to.
2016-09-07 08:46:46 +10:00
hiker
6245cea609
Added MaxSpeed to saved state of each kart.
2016-09-07 08:15:09 +10:00
hiker
7d7b98564f
Fixed speed smoothing factor (which hopefully fixes the shaking camera).
2016-09-05 17:54:45 +10:00
hiker
77ae30a0c5
Avoid compiler warning.
2016-09-05 09:59:29 +10:00
hiker
1860edca4e
Save startup-boost information in state.
2016-09-05 08:14:51 +10:00
hiker
a563266988
Made the KartRewinder to be a kart (which gives it easier access to
...
some of the kart attributes that need to be saved).
2016-09-05 08:00:21 +10:00
hiker
b91ecc9754
Use exponential smoothing for speed, to further reduce stuttering
...
in speed (and therefore camera).
2016-09-01 15:52:26 +10:00
hiker
f89aaa67f5
Reduce (admittedly very minor) camera jitter by computing the speed
...
of a kart after it was capped by max speed.
2016-09-01 09:54:09 +10:00
hiker
2a06036fb7
Changed order in which rendering and various updates are done, which
...
results in the physics reacting one frame earlier to user input.
2016-08-31 16:31:59 +10:00
hiker
ce91d6c2b4
Bugfix (saved incorrect variable).
2016-08-31 16:27:05 +10:00
hiker
e6b2c0f1a0
Fised neniry leak.
2016-08-22 18:08:51 +10:00
hiker
75e1f1c82b
Bugfix, wrong variable type.
2016-08-22 18:06:26 +10:00
hiker
8f068c4ff0
Somewhat reduced debug output.
2016-08-22 18:05:14 +10:00
hiker
e62948499f
Fixed compiler warning.
2016-08-22 18:04:06 +10:00
hiker
e7803fe1ab
Don't use intermediate states when replaying (only the original state),
...
since the states after the original are potentially incorrect (due to
the (later) insertion of an event that triggers the rewind).
Rewinds are now much more different than previously ... wip.
2016-08-19 16:38:49 +10:00
hiker
3d5de1c24c
Fixed saving kart control events (they stored the previous value, not
...
the new value).
2016-08-17 17:54:26 +10:00
hiker
adba5c48c8
Fix commented out code to use setter/getter in KartControl.
2016-08-17 08:32:11 +10:00
hiker
e56d324738
Moved the kart control events from the kart control class instead
...
of the kart rewinder.
2016-08-17 08:08:42 +10:00
hiker
7c899c943c
Refactored KartControl to use setters/getters instead of
...
just public variables.
2016-08-15 17:26:07 +10:00
hiker
239881ef5e
Refactored event handling, so that now not only Rewinder objects
...
can store events. This allows e.g. a 'new attachment' event to
be handled entirely in the attachment class, not in the kart
rewinder anymore.
2016-08-11 17:16:54 +10:00
hiker
e621e93f4c
Updated comments.
2016-08-10 08:35:23 +10:00
hiker
eaf21fe2f8
Replaced #include in kart.hpp to reduce dependencies; some coding style fixes.
2016-08-10 08:21:37 +10:00
hiker
7c598df8d1
Save powerup state in kart status.
2016-08-09 17:46:06 +10:00
hiker
f4f2f11943
Fix crash in case the same event is replayed more than once.
2016-08-09 17:39:20 +10:00
hiker
a5ce27caa5
Added events for new attachments.
2016-08-09 17:16:45 +10:00
hiker
5f6c954c5a
Added documentation.
2016-08-08 18:10:30 +10:00
hiker
5da96cf9d0
Fixed documentation and usage of ATTACHMENT_NOLOKS_SWATTER (which is
...
never an actual attachment value, even nolok has 'ATTACHMENT_SWATTER'
set).
2016-08-08 17:57:15 +10:00
hiker
f341cd1440
Optimised rewind of attachments (avoid creating new attachments
...
when the attachment was not changed).
2016-08-08 17:46:52 +10:00
hiker
c01f838b0f
Merge remote-tracking branch 'origin/master' into rewind
2016-08-08 14:34:24 +10:00
Benau
15a2526971
Merge branch 'fix_graph'
2016-08-08 08:56:05 +08:00
hiker
b3f932a0e3
Renamed getState to saveState, and added support for saving a kart's
...
attachmend in a state.
2016-08-08 10:33:12 +10:00
MTres19
8e8433f08c
Credit where credit is due ( #2593 )
...
* Give GeekPenguinBR and TuxKartDriver credit
* Give credit to samuncle and konstin
2016-08-05 19:12:52 -04:00
hiker
40697ab5f7
Bugfix for rewind: previously for a floating point value f add(f)
...
would actually call add(Vec3(f)), which adds a vector (f,f,f).
2016-08-05 17:22:04 +10:00
hiker
e039eb59c9
Added more fields to debug output.
2016-08-05 17:21:17 +10:00
hiker
05db7c1481
Use BareNetworkString for storing states and events.
2016-08-04 23:17:16 +10:00
hiker
1025e25846
Refactored RewindInfo into astand-alone class/file with separate
...
classes for time, event, and states.
2016-08-03 17:48:38 +10:00
Benau
10937333a1
Remove duplicated code in navmesh
2016-08-03 12:37:48 +08:00
hiker
3eb94e023d
Fixed error in rewind when only event but no state information
...
was available at chosen rewind-to time.
2016-08-02 21:24:10 +10:00
hiker
9f0529f26f
Merge branch 'master' of https://github.com/supertuxkart/stk-code
2016-08-01 08:42:09 +10:00