Spring Attach

Description

The Spring Attach behavior will attach two selected objects together with a spring. 

This behavior will Trigger an event immediately. 

 

 

Properties

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. 

You can enter the numbers manually, or visually by moving the blue target when selecting Object A or B from the behavior properties.

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

This behavior has no outputs.

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

Detach Object

Pivot Attach

Rope Attach

Weld Attach

 

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk