ChainSegment

data class ChainSegment(val ghost1: Vec2, val segment: Segment, val ghost2: Vec2, val chainId: Int)

A chain segment with ghost vertices for smooth collision.

Parameters

ghost1

The ghost vertex before point1

segment

The actual segment

ghost2

The ghost vertex after point2

chainId

The owning chain shape index (internal)

Constructors

Link copied to clipboard
constructor(ghost1: Vec2, segment: Segment, ghost2: Vec2, chainId: Int)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard