SphereColliderDefinitionsBuilder Class

Summary

A utility for building FlexiMotion.Modifiers.SphereColliderDefinitions.
Assembly
FlexiMotion.dll
Namespace
FlexiMotion.Modifiers
Base Types
  • Object
graph BT Type-->Base0["Object"] Type["SphereColliderDefinitionsBuilder"] class Type type-node

Syntax

public class SphereColliderDefinitionsBuilder

Fields

Name Constant Value Summary
Spheres
The list which will set the FlexiMotion.Modifiers.SphereColliderDefinitions.Spheres.
Transforms
The list which will set the FlexiMotion.Modifiers.SphereColliderDefinitions.Transforms.

Properties

Name Value Summary
Count int
The number of colliders.

Methods

Name Value Summary
Add(Transform, SphereDefinition) int
Adds a new collider.
Build() SphereColliderDefinitions
Creates a new FlexiMotion.Modifiers.SphereColliderDefinitions with the contents of this builder.
Clear() void
Removes all colliders.
GetUsedBones() IEnumerable<Transform>
Returns the objects that are used by this modifier.
Remove(Transform) bool
Removes the collider with the specified `transform` and returns true if it was present.
RemoveAt(int) void
Removes the collider at the specified `index`.
TryGet(int, Transform, SphereDefinition) bool
If a collider exists at the specified `index` and has a UnityEngine.Transform, this method outputs its details and returns true.

Extension Methods

Name Value Summary
LogTemp<SphereColliderDefinitionsBuilder>(Object) T
Debug.Log(message, context) with an [System.ObsoleteAttribute] warning so you remember to remove any calls.
SafeGetHashCode<SphereColliderDefinitionsBuilder>() int
Uses System.Collections.Generic.EqualityComparer`1.Default to get a hash code.