Implement basic X/Z control surface

This commit is contained in:
Tom
2020-09-16 21:40:41 -07:00
parent 70bb24a7fb
commit a981ab84f5
5 changed files with 47 additions and 4 deletions

View File

@ -82,7 +82,7 @@ func (c *Client) HandleGame() error {
case <-c.closing:
return http.ErrServerClosed
case <-cTick.C:
if err := c.Physics.Tick(&c.Wd); err != nil {
if err := c.Physics.Tick(c.Inputs, &c.Wd); err != nil {
c.disconnect()
return err
}