SetMovementSine Class

Summary

A PlatformerGameKit.BehaviourTrees.LeafNode which sets the PlatformerGameKit.Characters.Character.MovementDirectionY to cause them to fly up and down in a sine wave.
Assembly
PlatformerGameKit.dll
Namespace
PlatformerGameKit.BehaviourTrees
Interfaces
Base Types
graph BT Type-->Base0["LeafNode"] click Base0 "/platformer/api/PlatformerGameKit.BehaviourTrees/LeafNode" Base0-->Base1["Object"] Type-.->Interface0["IBehaviourNode"] click Interface0 "/platformer/api/PlatformerGameKit.BehaviourTrees/IBehaviourNode" Type-.->Interface1["IPolymorphic"] Type["SetMovementSine"] class Type type-node

Syntax

[Serializable]
public sealed class SetMovementSine : LeafNode, IBehaviourNode, IPolymorphic

Remarks

Documentation: Behaviour Tree Brains - Leaves

Attributes

Type Description
SerializableAttribute

Properties

Name Value Summary
Amplitude float
The height of the sine wave.
Frequency float
The spacing between peaks of the sine wave.

Methods

Name Value Summary
Execute() Result
Runs this node's main logic.