Bacon2D

Chain QML Type

The chain shape provides an efficient way to connect many edges together to construct your static game worlds. Chain shapes automatically eliminate ghost collisions and provide two-sided collision. More...

Import Statement: import Bacon2D 1.0
Inherits:

Fixture

Properties

Detailed Description

Property Documentation

loop : bool

This property connects the last vertices to the first vertices completing a loop. This requires at least 3 vertices.


nextVertex : QPointF

This property holds the vertices of the next Chain, used for connecting multiple chains together by creating ghost vertices.


prevVertex : QPointF

This property holds the vertices of the previous Chain, used for connecting multiple chains together by creating ghost vertices.


vertices : list<QPointF>

This property holds a list of vertices that when connected define the Chain.