Description
The Spring Attach behavior will attach two selected objects together with a spring.
This behavior will Trigger an event immediately.
Properties
Triggers Immediately
Object A |
This is the first object you want to attach. By default this is the current object selected. You can change this to any other object in your scene. |
Object B |
This is another object in your scene, it will be attached to Object A by a spring. |
Attach Point |
This is the specific X and Y location on each object where the attachment will be. Eg, the hand. on your character. |
Stiffness |
This is the force of the spring from Object A to Object B.
|
Damping |
This is the amount of force of the spring from Object B to Object A. This is measured as a %. |
Spring Color |
This is the color of your spring. You can select a color visually with the color picker, or enter a HEX value. |
Spring Width |
This is the thickness of the spring measured in pixels. The default value is 0px. |
Attachments Collide |
This toggle specifies where or not the two attached objects can collide with the spring. This means the spring itself can potentially stop your objects from moving. |
Outputs
Object A ID |
This outputs the Object ID of Object A. |
Object B ID |
This outputs the Object ID of Object B. |
Examples
You can create an Angry Birds style sling shot by adding 2 Spring attaches on an object. For each Spring Attach, Object A will be an object you created to represent the center of the rubber band, And Object B will be each side of a Y shape post.
Related
0 Comments