Class RuleAnglePenalty Extends GridGraphRule
Public
Applies penalty based on the slope of the surface below the node.
This is useful if you for example want to discourage agents from walking on steep slopes.
The penalty applied is equivalent to:
penalty = curve.evaluate(slope angle in degrees) * penaltyScale
Inner Types
Public Methods
DisposeUnmanagedData
()
Called when the rule is removed or the graph is destroyed.
Public
Public Variables
curve
Public
penaltyScale
Public
Inherited Public Members
Hash
Hash of the settings for this rule.
Public
Pass
Where in the scanning process a rule will be executed.
Public
SetDirty
()
Call if you have changed any setting of the rule.
Public
enabled
Only enabled rules are executed.
Public
Private/Protected Members
angleToPenalty
Private