Skip to content

BoingBehavior

Applies spring-based motion to a single transform.

Inherits from: BoingBase

Fields

UpdateMode

csharp
public BoingManager.UpdateMode UpdateMode

Type: BoingManager.UpdateMode

Match this mode with how you update your object's transform.

Fixed Update - Use this mode if you update your object's transform in FixedUpdate(). Also use this mode if the game object is affected by Unity physics (i.e. has a Rigidbody), which uses fixed updates. This uses fixed Time.fixedDeltaTime.

Update - Only use this mode if your render logic pulls transforms during Update() and before LateUpdate(), such as Unity's skinned sprite renderer (in certain versions).

Late Update - Use this mode if you update your object's transform in Update(). This uses the variable Time.deltaTime.

TwoDDistanceCheck

csharp
public bool TwoDDistanceCheck

Type: bool

Enable to only check distance on a 2D plane.

TwoDPositionInfluence

csharp
public bool TwoDPositionInfluence

Type: bool

Enable to only apply effector position influence on a 2D plane.

TwoDRotationInfluence

csharp
public bool TwoDRotationInfluence

Type: bool

Enable to only apply effector rotation influence on a 2D plane.

EnablePositionEffect

csharp
public bool EnablePositionEffect

Type: bool

Check to enable position effects.

EnableRotationEffect

csharp
public bool EnableRotationEffect

Type: bool

Check to enable rotation effects.

EnableScaleEffect

csharp
public bool EnableScaleEffect

Type: bool

Check to enable scale effects.

GlobalReactionUpVector

csharp
public bool GlobalReactionUpVector

Type: bool

If checked, Reaction Up is defined in global space. If unchecked, Reaction Up is in local space.

TranslationLockSpace

csharp
public BoingManager.TransformLockSpace TranslationLockSpace

Type: BoingManager.TransformLockSpace

Lock translation in global space or object's local space.

LockTranslationX

csharp
public bool LockTranslationX

Type: bool

When locked, translational effects along the X axis are eliminated.

LockTranslationY

csharp
public bool LockTranslationY

Type: bool

When locked, translational effects along the Y axis are eliminated.

LockTranslationZ

csharp
public bool LockTranslationZ

Type: bool

When locked, translational effects along the Z axis are eliminated.

RotationLockSpace

csharp
public BoingManager.TransformLockSpace RotationLockSpace

Type: BoingManager.TransformLockSpace

Lock rotation in global space or object's local space.

LockRotationX

csharp
public bool LockRotationX

Type: bool

When locked, rotational effects along the X axis (in terms of Euler angles) are eliminated.

LockRotationY

csharp
public bool LockRotationY

Type: bool

When locked, rotational effects along the Y axis (in terms of Euler angles) are eliminated.

LockRotationZ

csharp
public bool LockRotationZ

Type: bool

When locked, rotational effects along the Z axis (in terms of Euler angles) are eliminated.

SharedParams

csharp
public SharedBoingParams SharedParams

Type: SharedBoingParams

Shared boing parameters can be created as Unity assets by right-clicking in the Project menu and selecting Create > Boing Kit > Shared Boing Params. Useful for avoiding duplicate parameter management when multiple objects share identical parameters.