SpringDetails Struct

Summary

[System.SerializableAttribute] Parameters for a spring.
Assembly
FlexiMotion.dll
Namespace
FlexiMotion
Interfaces
Base Types
  • ValueType
graph BT Type-->Base0["ValueType"] Type-.->Interface0["IEquatable<SpringDetails>"] Type-.->Interface1["ISerializationCallbackReceiver"] Type["SpringDetails"] class Type type-node

Syntax

[Serializable]
public struct SpringDetails : ValueType, IEquatable<SpringDetails>, ISerializationCallbackReceiver

Attributes

Type Description
SerializableAttribute

Constructors

Name Summary
SpringDetails(float, float) Creates a new FlexiMotion.SpringDetails.

Fields

Name Constant Value Summary
drag
Determines how much this spring's velocity is reduced every frame. Values range from 0 to 1.
stiffness
Determines how strongly this spring tries to return to its starting rotation.

Properties

Name Value Summary
Default SpringDetails
Default values for a spring.
static
IsValid bool
Does this object have valid values in all fields?

Methods

Name Value Summary
Equals(Object) bool
Are all fields in this object equal to the equivalent in `obj`?
Equals(SpringDetails) 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.
ToString() string
Returns a string representation of this object.
Validate() void
Ensures that this object's fields have valid values.

Operators

Name Value Summary
operator !=(SpringDetails, SpringDetails) bool
operator ==(SpringDetails, SpringDetails) bool

Extension Methods

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