public bool Compare(Action action) { if (ObjectType.Equals(action.ObjectType) && MotionType.Equals(action.MotionType) && Name.Equals(action.Name)) { return(true); } return(false); }
public bool VerifyPrediction(ref VelocityPredictedState state) { return(Vector3.SqrMagnitude(Linear - state.Linear) < 0.025f && Vector3.SqrMagnitude(Angular - state.Angular) < 0.025f && MotionType.Equals(state.MotionType)); }