Describe the bug
Lag compensation example from Advanced Tutorial is not work properly. The snapshot system does not have snapshot for passed frame yet. it always return previous frame snapshot
To Reproduce
Steps to reproduce the behavior:
Go to samples/AdvancedTutorial/scene/Level1
Click on "Play As Server" from BoltScenes window
Open Bolt.AdvancedTutorial.WeaponRifle.cs
Add breakpoint to line 23.
using (var hits = BoltNetwork.RaycastAll (new Ray (pos, look * Vector3.forward), cmd.ServerFrame)) {
Add breakpoint to BoltPhysics.Raycast method
Try to shoot from game scene
compare the passed frame to BoltPhysics.Raycast method and last snapshot frame
Expected behavior
The snapshot system always have a snapshot for passed frame on playable server at least.
Actual behavior
The snapshot system always return previous frame snapshot( it is last snapshot)
Screenshots
Desktop (If applicable, please complete the following information):
Describe the bug Lag compensation example from Advanced Tutorial is not work properly. The snapshot system does not have snapshot for passed frame yet. it always return previous frame snapshot
To Reproduce Steps to reproduce the behavior:
Expected behavior The snapshot system always have a snapshot for passed frame on playable server at least.
Actual behavior The snapshot system always return previous frame snapshot( it is last snapshot)
Screenshots
Desktop (If applicable, please complete the following information):
Additional context