Struct JointMovementInfo
Serializable representation of the joint movement info
describing a single particle's movement.
Assembly: .dll
Syntax
[Serializable]
public struct JointMovementInfo
Constructors
JointMovementInfo(Vector2Int, Vector2Int, ActionType)
Declaration
public JointMovementInfo(Vector2Int jmOffset, Vector2Int movementOffset, ActionType movementAction)
Parameters
Type |
Name |
Description |
Vector2Int |
jmOffset |
|
Vector2Int |
movementOffset |
|
ActionType |
movementAction |
|
Fields
Empty
An empty record specifying no movement at all.
Declaration
public static JointMovementInfo Empty
Field Value
jmOffset
The global movement of the particle's
stationary part.
Declaration
public Vector2Int jmOffset
Field Value
Type |
Description |
Vector2Int |
|
movementAction
The type of movement performed by the particle.
Declaration
public ActionType movementAction
Field Value
movementOffset
The local offset the particle's own movement
(expansion or contraction) applies to neighbors
bonded to its moving part.
Declaration
public Vector2Int movementOffset
Field Value
Type |
Description |
Vector2Int |
|
Methods
Equals(object)
Indicates whether this instance and a specified object are equal.
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
object |
obj |
The object to compare with the current instance.
|
Returns
Type |
Description |
bool |
true if obj and this instance are the same type and represent the same value; otherwise, false.
|
Overrides
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type |
Description |
int |
A 32-bit signed integer that is the hash code for this instance.
|
Overrides
Operators
operator ==(JointMovementInfo, JointMovementInfo)
Declaration
public static bool operator ==(JointMovementInfo i1, JointMovementInfo i2)
Parameters
Returns
operator !=(JointMovementInfo, JointMovementInfo)
Declaration
public static bool operator !=(JointMovementInfo i1, JointMovementInfo i2)
Parameters
Returns