|
Kanda Interactions 0.7.1
|
Allowing the attached entity to be detached when the distance between the attached entity and the owner entity is under the threshold distance. When the distance is over the threshold, the entity will be attached again to the owner. More...
Inheritance diagram for ThresholdAttachable:Public Attributes | |
| float | DistanceSquared |
| The threshold distance between the attached entity and the owner entity but squared. | |
Allowing the attached entity to be detached when the distance between the attached entity and the owner entity is under the threshold distance. When the distance is over the threshold, the entity will be attached again to the owner.
The way we attach and detach is by enabling/disabling the Attachable component.