Replies: 1 comment
-
I don't think there are any issues exposing this (other than being aware that after every PhysicsSystem::Update they get reset, so if you want to send the values you need to read them before that point). I've added the accessors for you in d76ab0f. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Context is synchronizing / diffing state. There's
MotionProperties::SaveState()
, but it does far too much work for my needs - I know for example that restitution, damping, gravity factor aren't changed in my context, but there's no way to directly read force and torque from motion properties or body via public API so I can just serialize these parts and send them over the network. Are there any issues in the design that might cause this to break, or should I just add GetForce() / GetTorque() members to MotionProperties?Beta Was this translation helpful? Give feedback.
All reactions