Manual:

Tutorials:

API:

ChipmunkSegmentShape

Class : Inherits from ChipmunkShape

Chipmunk line segment collision shape type.

Can be given a radius to make it shaped like a capsule.


Variables


centerCenter of the segment relative to it's transform.
endPointLocation of the first endpoint of the segment shape relative to it's transform.
radiusRadius of the segment relative to it's transform.


Inherited Variables


bodyChipmunkBody that this shape is attached to.
frictionFriction value of this shape.
elasticityElasticity of this shapes
isSensorIs the shape a sensor.
collisionTypeCollision ID string used when defining @ChipmunkCollisionManager@ methods.
groupString that identifies the group a collision shape is in.