BehaviourPath.with_knots


Description:

[ CCode ( has_construct_function = false , type = "ClutterBehaviour*" ) ]
[ Version ( since = "1.0" ) ]
public BehaviourPath.with_knots (Alpha? alpha, Knot[] knots)

Creates a new path behaviour that will make the actors visit all of the given knots in order with straight lines in between.

A path will be created where the first knot is used in a MOVE_TO and the subsequent knots are used in LINE_TOs.

If alpha is not null, the Behaviour will take ownership of the Alpha instance. In the case when alpha is null, it can be set later with set_alpha.

Parameters:

alpha

a Alpha instance, or null

knots

an array of Knots

n_knots

number of entries in knots

Returns:

a Behaviour




2022 vala-language.org