psychicsoftware
August 25, 2005
Darkwind

Cameras, GUIs and Physics Calcs

August 25, 2005
Darkwind

Working on the camera- finally managed to separate camera from server control, allowing smooth client-side animation and hopefully removing the ‘judder’ that some users were experiencing. Improvements of the in-battle GUIs (thanks Jim). Spent quite some time removing client/server physics drift — realised for example that Torque normally only invokes onCollision callbacks on the server, whereas we need it on client too; other problems were due to compression/rounding errors when sending commands from client to server. Spent lots more time with collision resolution — there are serious bugs in the method used by Torque for rigid body dynamics, so I had to patch together a reasonable replacement. Also had to synchronise the order of object simulation on client & server, because otherwise collisions would not turn out to be the same and we would be back in a drift situation. These problems of drift wouldn’t really be noticed in a real-time game where the client nudges the objects slowly back to position over a period of a second or two, but you really notice it when those objects are otherwise not moving!

Got basic waypoint-based racing AI working. Here we have a set of bots racing around the track, with speeds and collisions being logged in the database.

[This is an historical blog post which used to live on my Darkwind website]

Tweet
Under the Hood
Artificial Stupidity

Newsletter

Your email address will not be shared with any 3rd parties, and will only be used for occasional newletters about Psychic Software's games.
 
[Our Privacy Policy]

Presskit

  • Press Kit here

Games in Development

  • The Necromancer's Tale
  • Newby Chinese

Games Released

  • Darkwind: War on Wheels
  • Let's Break Stuff!
  • Musclecar Online
  • Goblins & Gottos
  • Orbs.it
  • Mars Defender
  • Demon Pit
  • Afterburn 2150
  • Block Rockin'
  • More on Gooogle Play
  • More on iOS Appstore

Unfinished Projects “On Hiatus”

  • Zed's Dead
  • Ping Pong Planets
  • Godkin

Archives

  • June 2022
  • April 2022
  • May 2021
  • December 2020
  • November 2020
  • October 2020
  • August 2020
  • May 2020
  • March 2020
  • October 2019
  • October 2018
  • August 2018
  • July 2018
  • January 2018
  • September 2017
  • August 2017
  • May 2017
  • July 2016
  • May 2016
  • April 2016
  • December 2015
  • November 2015
  • September 2015
  • July 2015
  • May 2015
  • April 2015
  • February 2015
  • January 2015
  • December 2014
  • October 2014
  • August 2014
  • January 2014
  • December 2013
  • September 2013
  • July 2013
  • May 2013
  • April 2013
  • March 2013
  • December 2012
  • October 2012
  • August 2012
  • June 2012
  • May 2012
  • April 2012
  • March 2012
  • February 2012
  • January 2012
  • November 2011
  • October 2011
  • September 2011
  • August 2011
  • July 2011
  • June 2011
  • May 2011
  • April 2011
  • March 2011
  • February 2011
  • January 2011
  • March 2006
  • February 2006
  • January 2006
  • November 2005
  • October 2005
  • September 2005
  • August 2005
  • July 2005
  • December 1995

Categories

  • Afterburn 2150
  • Block Rockin'
  • Conferences & Events
  • Darkwind
  • Dead By Dawn
  • Demon Pit
  • Game Musings
  • Goblins & Grottos
  • Godkin
  • Guest Posts
  • Let's Break Stuff!
  • Mars Defender
  • Monster Melee
  • Musclecar Online
  • Newby Chinese
  • Orbs.it
  • PC Gamer
  • Rock Paper Shotgun
  • Techie
  • The Necromancer
  • Uncategorized
  • Zed's Dead

CyberChimps WordPress Themes

PSYCHICSOFTWARE | Psychic Games Ltd.
Sam Redfern indie games developer and university academic