Behavior : Gravitation
Author:Rex.Rainbow
- Local gravitation, stand on physics behavior.
Download
Properties
Source
Source tag
- Target will be attracted with sources which have the same tag.
Force
- Applying force to target. Source only.
Sensitivity range
- Appling force when distance is less then this range. 0 is infinity. Source only.
Target
Target tag
- Target will be attracted with sources which have the same tag.
Actions
Action:Set force
- Set applied force for source.
- Force ( number ) : Gravitation force.
Activated
Action:Set source enable
- Enable to be a gravitation source.
- Source ( Combo ) : Enable to be source.
Action:Set target enable
- Enable to be a gravitation target.
- Target ( Combo ) : Enable to be target.
Sensitivity
Action:Set sensitivity range
- Set sensitivity range for source.
- Range ( number ) : Sensitivity range.
Tag
Action:Set source tag
- Set source tag.
- Source tag ( string ) : Source tag.
Action:Set target tag
- Set target tag.
- Target tag ( string ) : Target tag.
Expressions
Expression:Force
Expression:Range
Enable
Expression:IsSource
Expression:IsTarget
Source
Expression:SourceUID
- Get attracting source uid.
Tag
Expression:SourceTag
Expression:TargetTag
Target
Expression:TargetUID
- Get attracted target uid.
Conditions
Source
Condition:Begin attracting
- Triggered when attracting beginning, to get attracted target uid.
Condition:End attracting
- Triggered when attracting end, to get attracted target uid.
Condition:Has attracting
- Source has attracting target.
Target
Condition:Has been attracted
- Target has been attracted by source.
Condition:Begin attracted
- Triggered when attracted beginning, to get attracted source uid.
Condition:End attracted
- Triggered when attracted ending, to get attracted source uid.