IsWallInFront Class

Summary

A PlatformerGameKit.BehaviourTrees.ConditionNode which checks if a wall is in front of the character.
Assembly
PlatformerGameKit.dll
Namespace
PlatformerGameKit.BehaviourTrees
Interfaces
Base Types
graph BT Type-->Base0["ConditionNode"] click Base0 "/platformer/api/PlatformerGameKit.BehaviourTrees/ConditionNode" Base0-->Base1["Object"] Type-.->Interface0["IBehaviourNode"] click Interface0 "/platformer/api/PlatformerGameKit.BehaviourTrees/IBehaviourNode" Type-.->Interface1["IPolymorphic"] Type["IsWallInFront"] class Type type-node

Syntax

[Serializable]
public sealed class IsWallInFront : ConditionNode, IBehaviourNode, IPolymorphic

Remarks

Documentation: Behaviour Tree Brains - Conditions

Attributes

Type Description
SerializableAttribute

Properties

Name Value Summary
Condition bool
Called by PlatformerGameKit.BehaviourTrees.ConditionNode.Execute to run this node's main logic. true returns PlatformerGameKit.BehaviourTrees.Result.Pass and false returns PlatformerGameKit.BehaviourTrees.Result.Fail.
Layers LayerMask
The layers which count as walls.
Range float
The maximum distance within which to check (in meters).
WallAngle float
The maximum angle away from fully vertical that a surface can be and still be considered a wall.

Methods

Name Value Summary
Execute() Result
Accesses the PlatformerGameKit.BehaviourTrees.ConditionNode.Condition and calls PlatformerGameKit.BehaviourTrees.BehaviourTreeUtilities.ToResult(System.Boolean).
Inherited from ConditionNode