Chipmunk2D Unity Documentation | Main Page | Forum

Manual

Tutorials

API

Classes

Structs

Enumerations

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 its transform.
endPointLocation of the first endpoint of the segment shape relative to its transform.
radiusRadius of the segment relative to its transform.


Inherited Variables


bodyChipmunkBody that this shape is attached to.
frictionFriction value of this shape.
elasticityElasticity of this shapes
isSensorIndicates if the shape is a sensor.
collisionTypeString identifier that that is used for collision events.
groupString that identifies the group a collision shape is in.
layersA bitmask of which Chipmunk layers a shape is in.
surfaceVelocityThe velocity of the surface of a shape separate from its rigid body's velocity.