In my project my cameras will allow mouse screen positions iMouseX() & iMouseLookX() ect, to control my ship rigidbody movements ( as well as keyboard key input ).
in a networked project this is an issue, because the mouse cursor positions don't have networking options, and need to be proportional.
I have a solution -
An EOI object is a float by design and supports values from 0.0f to 1.0f
I can pass a mouse value like 12.734 to the EOI but as soon as the value reach's 1 or greater, it tunicates to 1.0.
so i have the idea to take say 12.234 for instance and shift the decimal place 2 places to the left to become 0.12234, then after the value is networked by EOI, i can re-shift the decimal place back 2 places to the right.
This would allow me to network the mouse positions using the EOI objects and not have to use the network array process.
I'm NOT looking for a network array solution here, but only a math process to shift the decimal point in both directions so the EOI object can handle the networking process for me.
I'm assuming the EOI object can handle the networking routines much better than any scripted process i can come up with, i only need a math process to shift the decimal place left and right by 2 places.
Got any ideas ?
in a networked project this is an issue, because the mouse cursor positions don't have networking options, and need to be proportional.
I have a solution -
An EOI object is a float by design and supports values from 0.0f to 1.0f
I can pass a mouse value like 12.734 to the EOI but as soon as the value reach's 1 or greater, it tunicates to 1.0.
so i have the idea to take say 12.234 for instance and shift the decimal place 2 places to the left to become 0.12234, then after the value is networked by EOI, i can re-shift the decimal place back 2 places to the right.
This would allow me to network the mouse positions using the EOI objects and not have to use the network array process.
I'm NOT looking for a network array solution here, but only a math process to shift the decimal point in both directions so the EOI object can handle the networking process for me.
I'm assuming the EOI object can handle the networking routines much better than any scripted process i can come up with, i only need a math process to shift the decimal place left and right by 2 places.
Got any ideas ?