Skip to content

BoingBones ​

Applies spring-based motion to a chain of bones.

Inherits from: BoingBase → BoingBehavior → BoingReactor

Fields ​

BoneChains ​

csharp
public BoingBones.Chain[] BoneChains

Type: BoingBones.Chain[]

Each bone chain builds a chain (or tree if a bone has multiple children) of bouncy bones starting from the specified roots.

Each root is a Transform object. It can be that of a game object or of a bone.

TwistPropagation ​

csharp
public bool TwistPropagation

Type: bool

If checked, relative bone twists will be propagated down bone chains from parents to children.

If unchecked, relative bone twists between parents and children will be immediately eliminated.

BoingColliders ​

csharp
public BoingBoneCollider[] BoingColliders

Type: BoingBoneCollider[]

List of Boing Colliders, Boing Kit's own implementation of lightweight colliders, that collide with bones.

UnityColliders ​

csharp
public Collider[] UnityColliders

Type: Collider[]

List of Unity colliders that collide with bones.

DebugDrawRawBones ​

csharp
public bool DebugDrawRawBones

Type: bool

Draw bones before any effects are applied.

DebugDrawTargetBones ​

csharp
public bool DebugDrawTargetBones

Type: bool

Draw target bones that boing bones spring towards.

DebugDrawBoingBones ​

csharp
public bool DebugDrawBoingBones

Type: bool

Draw internal boing bones.

DebugDrawFinalBones ​

csharp
public bool DebugDrawFinalBones

Type: bool

Draw final bones after animation blend.

DebugDrawColliders ​

csharp
public bool DebugDrawColliders

Type: bool

Draw bone colliders.

DebugDrawChainBounds ​

csharp
public bool DebugDrawChainBounds

Type: bool

Draw AABB bounds of bone chains.

DebugDrawBoneNames ​

csharp
public bool DebugDrawBoneNames

Type: bool

Draw bone names.

DebugDrawLengthFromRoot ​

csharp
public bool DebugDrawLengthFromRoot

Type: bool

Draw chain length to each bone.

Methods ​

HandleTeleport() ​

csharp
public override void HandleTeleport()

Call this to handle teleporting of the whole rig. This will reset all the bone springs to their current transforms to prevent any weird spring behavior caused by sudden large changes in bone transforms.