An empty chain of points, or empty polygon (loop). More...

Import Statement: import Felgo 3.0



Detailed Description

A chain shape is a free form sequence of line segments. The chain has two-sided collision, so you can use inside and outside collision. Therefore, you may use any winding order. Connectivity information is used to create smooth collisions. WARNING: The chain will not collide properly if there are self-intersections.

Property Documentation

loop : bool

Determines if the end of the chain connects back to the beginning.

nextVertex : point

Establish connectivity to a vertex that follows the last vertex. Not used for loops.

prevVertex : point

Establish connectivity to a vertex that precedes the first vertex. Not used for loops.

vertices : list<point>

Contains a list of vertices, defined by Qt.point() objects in pixels, that make up the shape in a clockwise winding. If loop is false, the minimum number of vertices is 2. If it is true, the minimum number is 3.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
create apps
create games
cross platform
native performance
3rd party services
game network
level editor
easiest to learn
biggest time saving
best support