body.v vs shape.surface_v

Official forum for the Chipmunk2D Physics Library.
Post Reply
ref2401
Posts: 1
Joined: Thu Mar 19, 2015 7:30 am
Contact:

body.v vs shape.surface_v

Post by ref2401 »

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?
maximile
Posts: 157
Joined: Mon Aug 20, 2007 12:53 pm
Location: London, UK
Contact:

Re: body.v vs shape.surface_v

Post by maximile »

Heya,

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.
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests