BehaviourRotate


Description:

[ CCode ( has_construct_function = false , type = "ClutterBehaviour*" ) ]
public BehaviourRotate (Alpha? alpha, RotateAxis axis, RotateDirection direction, double angle_start, double angle_end)

Creates a new BehaviourRotate.

This behaviour will rotate actors bound to it on axis, following direction, between angle_start and angle_end. Angles >= 360 degrees will be clamped to the canonical interval <0, 360), if angle_start == angle_end, the behaviour will carry out a single rotation of 360 degrees.

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

axis

the rotation axis

direction

the rotation direction

angle_start

the starting angle in degrees, between 0 and 360.

angle_end

the final angle in degrees, between 0 and 360.

Returns:

the newly created BehaviourRotate.