Summary
[
System.SerializableAttribute] Defines the core details for a spring simulation.- Assembly
- FlexiMotion
.dll - Namespace
- FlexiMotion
- Interfaces
-
- ICopyable
<SpringDefinitions> - IValidatable
- I
Serialization Callback Receiver
- ICopyable
- Base Types
-
- Object
graph BT
Type-->Base0["Object"]
Type-.->Interface0["ICopyable<SpringDefinitions>"]
Type-.->Interface1["IValidatable"]
click Interface1 "/flexi-motion/api/FlexiMotion/IValidatable"
Type-.->Interface2["ISerializationCallbackReceiver"]
Type["SpringDefinitions"]
class Type type-node
Syntax
[Serializable]
public class SpringDefinitions : ICopyable<SpringDefinitions>, IValidatable,
ISerializationCallbackReceiver
Attributes
| Type | Description |
|---|---|
| Serializable |
Fields
| Name | Constant Value | Summary |
|---|---|---|
| DetailsField | _Details |
The name of the serialized backing field of
FlexiMotion.SpringDefinitions.Details.static
|
| RadiiField | _Radii |
The name of the serialized backing field of
FlexiMotion.SpringDefinitions.Radii.static
|
| TransformsField | _Transforms |
The name of the serialized backing field of
FlexiMotion.SpringDefinitions.Transforms.static
|
Properties
| Name | Value | Summary |
|---|---|---|
| Count | int |
The number of springs.
|
| Details | SpringDetails[] |
The
FlexiMotion.SpringDetails of each spring. |
| Radii | float[] |
The collision radius of each spring's tail.
|
| Transforms | Transform[] |
The
UnityEngine.Transform of each spring. |
Methods
| Name | Value | Summary |
|---|---|---|
| Add |
void |
Adds a spring at the end of the arrays.
|
| Contains |
bool |
Does the
FlexiMotion.SpringDefinitions.Transforms array contain the `transform`? |
| CopyFrom |
void |
Copies the contents of `copyFrom` into this object, replacing its previous contents.
|
| Equals |
bool |
Are all fields in this object equal to the equivalent in `obj`?
|
| Equals |
bool |
Are all fields in this object equal to the equivalent fields in `other`?
|
| GetHashCode |
int |
Returns a hash code based on the values of this object's fields.
|
| IndexOf |
int |
Returns the index of the `transform` in the
FlexiMotion.SpringDefinitions.Transforms array. |
| Remove |
void |
Removes the spring at the specified `index`.
|
| Remove |
bool |
Removes any springs with missing or identical
FlexiMotion.SpringDefinitions.Transforms. |
| Validate |
bool |
Ensures that this object's fields have valid values and returns true if anything was changed.
|
| ValidateArraySizes |
bool |
Ensures that all the arrays have the same size.
|
Operators
| Name | Value | Summary |
|---|---|---|
| operator != |
bool | |
| operator == |
bool |
Extension Methods
| Name | Value | Summary |
|---|---|---|
| LogTemp |
T |
Debug.Log(message, context) with an [System.ObsoleteAttribute] warning so you remember
to remove any calls.
From FMUtilities
|
| SafeGetHashCode |
int |
Uses
System.Collections.Generic.EqualityComparer`1.Default to get a hash code.From FMUtilities
|