body.v vs shape.surface_v

Official forum for the Chipmunk2D Physics Library.

body.v vs shape.surface_v

Postby ref2401 » Thu Mar 19, 2015 7:38 am

Can't understand the difference between body's velocity (body.v) and surface velocity of the shape added to this body (shape.surface_v). Could anyone explain it to me please?
Posts: 1
Joined: Thu Mar 19, 2015 7:30 am

Re: body.v vs shape.surface_v

Postby maximile » Thu Apr 02, 2015 12:49 pm


The body's velocity is the speed and direction the body is moving in.

A shape's surface velocity affects other things that are touching it. As an example, you could create a static body with a shape representing a conveyor belt and then set its surface velocity to move anything that sits on top of it.

Hope that helps.
Posts: 157
Joined: Mon Aug 20, 2007 12:53 pm
Location: London, UK

Return to Chipmunk2D Physics

Who is online

Users browsing this forum: No registered users and 4 guests