Chipmunk2D Unity Documentation | Main Page | Forum

Manual

Tutorials

API

Classes

Structs

Enumerations

ChipmunkShape.surfaceVelocity

var surfaceVelocity : Vector2

Description

The velocity of the surface of a shape separate from its rigid body's velocity.

This is useful for things like conveyor belts, where the surface of a shape is moving even though the shape is not. Another example is a player's feet. The simplified player collision shape doesn't change or move, but the feet (surface) do.