Nikki and the Robots

Syndicate content
News from the Makers of Nikki and the Robots 2013-05-10T14:26:54Z WordPress
Updated: 9 hours 55 min ago

Nikki’s “Realistic” Movement Physics (Chipmunk)

Fri, 05/10/2013 - 14:26

We were recently asked by James Harriman how we handled movement physics in Nikki and the Robots.

James Harriman:

I wondered how you handled the movement of Nikki in your game. Did you make him/her a kinematic body and allow her to be pushed by certain objects? Or is she a dynamic rigid body with enough constraints to keep her from bouncing around?

Sönke, main programmer of Nikki and the Robots:

Well, I am kind of an autodidact when it comes to physics engines so I am not to sure about the terminology. What's the difference between a kinematic and a dynamic rigid body?

But to give some overview: Nikki is just a normal physics object in the scene and interacts with the other objects much like every other object.

The Nikki object does not change its shape. To ensure that Nikki does not rotate, the rotational mass is set to infinity. Controlling of Nikki works through applying forces (or -- in case of jumping -- a momentum) on the object. We consciously refrained from manipulating the velocity or position directly. We hope that Nikki's movements integrate better with the physics and feel much more natural that way. Also, it helps to prevent weird behavior in the physics scene. The downside of this is that you don't have full control over Nikki's movements, i. e. you cannot work with traditional animations.

Generally, this was one of the more challenging things that we programmed for our game. Working on this also really changed my perception of other platformers. In most other platformers, the movements of the protagonist are animated and don't feel really physically natural. Well, at least if you spent some months trying to do it differently. ;)

Please feel free to let us know about what implementations of movement physics you have worked with and which you prefer!

Categories: Game news

Who's new

  • alondavid
  • plyspomitox
  • alaamarz
  • Herman
  • Amber

Who's online

There are currently 1 user and 30 guests online.

Online users

  • Annonith
claymr's picture

claymr is a
Annex: Conquer the World gamer.
  • 20:01:24 new update for Build a World released
  • 18:16:57 [url]
  • 19:43:27 another cube/block game...