Conflicting documentation in understanding ReplicateState #904
NiekZndt
started this conversation in
Documentation
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In the documentation of the Client Side Prediction on the topic of Understanding ReplicateState under "Using States In Code" the following code snippet is provided the prevent movement in the future.
However looking at the api documentation PredictionRigidbody, addVelocity is not a method of PredictionRigidbody. And in the description of the Velocity method it states "Simulate should still be called normally." which it doesn't in the example. So is AddVelocity replaced with AddForce or just setting the velocity? Should simulate be invoked after setting te velocity to zero in the future?
the doc: https://firstgeargames.com/FishNet/api/api/FishNet.Object.Prediction.PredictionRigidbody.html
PredictionRigidbody api: https://firstgeargames.com/FishNet/api/api/FishNet.Object.Prediction.PredictionRigidbody.html
Beta Was this translation helpful? Give feedback.
All reactions