public override void InterpolateUpdate() { if (IsOwner) { return; } if (positionInterpolation.Enabled && !positionInterpolation.current.UnityNear(positionInterpolation.target, 0.0015f)) { _position = (Vector3)positionInterpolation.Interpolate(); //RunChange_position(positionInterpolation.Timestep); } if (rotationInterpolation.Enabled && !rotationInterpolation.current.UnityNear(rotationInterpolation.target, 0.0015f)) { _rotation = (Quaternion)rotationInterpolation.Interpolate(); //RunChange_rotation(rotationInterpolation.Timestep); } if (velocityInterpolation.Enabled && !velocityInterpolation.current.UnityNear(velocityInterpolation.target, 0.0015f)) { _velocity = (Vector2)velocityInterpolation.Interpolate(); //RunChange_velocity(velocityInterpolation.Timestep); } if (rotvelocityInterpolation.Enabled && !rotvelocityInterpolation.current.UnityNear(rotvelocityInterpolation.target, 0.0015f)) { _rotvelocity = (float)rotvelocityInterpolation.Interpolate(); //RunChange_rotvelocity(rotvelocityInterpolation.Timestep); } }
public SnapShot GetSnapshot(ulong timestep) { SnapShot lower; SnapShot upper; if (FindSnapshots(timestep, out lower, out upper)) { float t = (timestep - lower.tick) / (float)(upper.tick - lower.tick); //Debug.LogFormat("UpdateSnapshot: {0} {1} {2} {3}", t, lower.tick, timestep, upper.tick); return(new SnapShot() { tick = timestep, position = InterpolateVector3.Interpolate(lower.position, upper.position, t), rotation = InterpolateQuaternion.Interpolate(lower.rotation, upper.rotation, t), velocity = InterpolateVector3.Interpolate(lower.velocity, upper.velocity, t), Health = Interpolated <int> .Interpolate(lower.Health, upper.Health, t), LastCommand = Interpolated <ulong> .Interpolate(lower.LastCommand, upper.LastCommand, t), }); } else { ulong start; ulong end; int count; GetSnapShotWindow(out start, out end, out count); float t = (timestep - start) / (float)(end - start); Debug.LogFormat("UpdateSnapshot: {0} {1} {2} {3} {4}", t, start, timestep, end, count); } return(new SnapShot()); }
public override void InterpolateUpdate() { if (IsOwner) { return; } if (positionInterpolation.Enabled && !positionInterpolation.current.UnityNear(positionInterpolation.target, 0.0015f)) { _position = (Vector3)positionInterpolation.Interpolate(); //RunChange_position(positionInterpolation.Timestep); } if (rotationInterpolation.Enabled && !rotationInterpolation.current.UnityNear(rotationInterpolation.target, 0.0015f)) { _rotation = (Quaternion)rotationInterpolation.Interpolate(); //RunChange_rotation(rotationInterpolation.Timestep); } if (xInterpolation.Enabled && !xInterpolation.current.UnityNear(xInterpolation.target, 0.0015f)) { _x = (float)xInterpolation.Interpolate(); //RunChange_x(xInterpolation.Timestep); } if (yInterpolation.Enabled && !yInterpolation.current.UnityNear(yInterpolation.target, 0.0015f)) { _y = (float)yInterpolation.Interpolate(); //RunChange_y(yInterpolation.Timestep); } if (ramInterpolation.Enabled && !ramInterpolation.current.UnityNear(ramInterpolation.target, 0.0015f)) { _ram = (float)ramInterpolation.Interpolate(); //RunChange_ram(ramInterpolation.Timestep); } }
public override void InterpolateUpdate() { if (IsOwner) { return; } if (positionInterpolation.Enabled && !positionInterpolation.current.Near(positionInterpolation.target, 0.0015f)) { _position = (Vector3)positionInterpolation.Interpolate(); RunChange_position(positionInterpolation.Timestep); } if (rotationInterpolation.Enabled && !rotationInterpolation.current.Near(rotationInterpolation.target, 0.0015f)) { _rotation = (Quaternion)rotationInterpolation.Interpolate(); RunChange_rotation(rotationInterpolation.Timestep); } if (healthInterpolation.Enabled && !healthInterpolation.current.Near(healthInterpolation.target, 0.0015f)) { _health = (float)healthInterpolation.Interpolate(); RunChange_health(healthInterpolation.Timestep); } if (projectilepositionInterpolation.Enabled && !projectilepositionInterpolation.current.Near(projectilepositionInterpolation.target, 0.0015f)) { _projectileposition = (Vector3)projectilepositionInterpolation.Interpolate(); RunChange_projectileposition(projectilepositionInterpolation.Timestep); } }
public override void InterpolateUpdate() { if (IsOwner) { return; } if (isDeadInterpolation.Enabled && !isDeadInterpolation.current.UnityNear(isDeadInterpolation.target, 0.0015f)) { _isDead = (bool)isDeadInterpolation.Interpolate(); //RunChange_isDead(isDeadInterpolation.Timestep); } if (positionInterpolation.Enabled && !positionInterpolation.current.UnityNear(positionInterpolation.target, 0.0015f)) { _position = (Vector3)positionInterpolation.Interpolate(); //RunChange_position(positionInterpolation.Timestep); } if (rotationInterpolation.Enabled && !rotationInterpolation.current.UnityNear(rotationInterpolation.target, 0.0015f)) { _rotation = (Quaternion)rotationInterpolation.Interpolate(); //RunChange_rotation(rotationInterpolation.Timestep); } if (healthInterpolation.Enabled && !healthInterpolation.current.UnityNear(healthInterpolation.target, 0.0015f)) { _health = (float)healthInterpolation.Interpolate(); //RunChange_health(healthInterpolation.Timestep); } }
public override void InterpolateUpdate() { if (IsOwner) { return; } if (PositionInterpolation.Enabled && !PositionInterpolation.current.UnityNear(PositionInterpolation.target, 0.0015f)) { _Position = (Vector3)PositionInterpolation.Interpolate(); //RunChange_Position(PositionInterpolation.Timestep); } if (RotationInterpolation.Enabled && !RotationInterpolation.current.UnityNear(RotationInterpolation.target, 0.0015f)) { _Rotation = (Quaternion)RotationInterpolation.Interpolate(); //RunChange_Rotation(RotationInterpolation.Timestep); } if (NetworkIDInterpolation.Enabled && !NetworkIDInterpolation.current.UnityNear(NetworkIDInterpolation.target, 0.0015f)) { _NetworkID = (int)NetworkIDInterpolation.Interpolate(); //RunChange_NetworkID(NetworkIDInterpolation.Timestep); } if (AnimationInterpolation.Enabled && !AnimationInterpolation.current.UnityNear(AnimationInterpolation.target, 0.0015f)) { _Animation = (int)AnimationInterpolation.Interpolate(); //RunChange_Animation(AnimationInterpolation.Timestep); } }
public override void InterpolateUpdate() { if (IsOwner) { return; } if (positionInterpolation.Enabled && !positionInterpolation.current.UnityNear(positionInterpolation.target, 0.0015f)) { _position = (Vector2)positionInterpolation.Interpolate(); //RunChange_position(positionInterpolation.Timestep); } if (rotationInterpolation.Enabled && !rotationInterpolation.current.UnityNear(rotationInterpolation.target, 0.0015f)) { _rotation = (Quaternion)rotationInterpolation.Interpolate(); //RunChange_rotation(rotationInterpolation.Timestep); } if (speedInterpolation.Enabled && !speedInterpolation.current.UnityNear(speedInterpolation.target, 0.0015f)) { _speed = (float)speedInterpolation.Interpolate(); //RunChange_speed(speedInterpolation.Timestep); } if (damageInterpolation.Enabled && !damageInterpolation.current.UnityNear(damageInterpolation.target, 0.0015f)) { _damage = (int)damageInterpolation.Interpolate(); //RunChange_damage(damageInterpolation.Timestep); } if (ownerNumInterpolation.Enabled && !ownerNumInterpolation.current.UnityNear(ownerNumInterpolation.target, 0.0015f)) { _ownerNum = (int)ownerNumInterpolation.Interpolate(); //RunChange_ownerNum(ownerNumInterpolation.Timestep); } }
public override void InterpolateUpdate() { if (IsOwner) { return; } if (ownerNetworkIdInterpolation.Enabled && !ownerNetworkIdInterpolation.current.UnityNear(ownerNetworkIdInterpolation.target, 0.0015f)) { _ownerNetworkId = (uint)ownerNetworkIdInterpolation.Interpolate(); //RunChange_ownerNetworkId(ownerNetworkIdInterpolation.Timestep); } if (positionInterpolation.Enabled && !positionInterpolation.current.UnityNear(positionInterpolation.target, 0.0015f)) { _position = (Vector3)positionInterpolation.Interpolate(); //RunChange_position(positionInterpolation.Timestep); } if (rotationInterpolation.Enabled && !rotationInterpolation.current.UnityNear(rotationInterpolation.target, 0.0015f)) { _rotation = (Quaternion)rotationInterpolation.Interpolate(); //RunChange_rotation(rotationInterpolation.Timestep); } if (healthInterpolation.Enabled && !healthInterpolation.current.UnityNear(healthInterpolation.target, 0.0015f)) { _health = (float)healthInterpolation.Interpolate(); //RunChange_health(healthInterpolation.Timestep); } if (shieldInterpolation.Enabled && !shieldInterpolation.current.UnityNear(shieldInterpolation.target, 0.0015f)) { _shield = (float)shieldInterpolation.Interpolate(); //RunChange_shield(shieldInterpolation.Timestep); } }
public override void InterpolateUpdate() { if (IsOwner) { return; } if (positionInterpolation.Enabled && !positionInterpolation.current.UnityNear(positionInterpolation.target, 0.0015f)) { _position = (Vector3)positionInterpolation.Interpolate(); //RunChange_position(positionInterpolation.Timestep); } if (rotationInterpolation.Enabled && !rotationInterpolation.current.UnityNear(rotationInterpolation.target, 0.0015f)) { _rotation = (Quaternion)rotationInterpolation.Interpolate(); //RunChange_rotation(rotationInterpolation.Timestep); } if (ownerNetIdInterpolation.Enabled && !ownerNetIdInterpolation.current.UnityNear(ownerNetIdInterpolation.target, 0.0015f)) { _ownerNetId = (uint)ownerNetIdInterpolation.Interpolate(); //RunChange_ownerNetId(ownerNetIdInterpolation.Timestep); } if (playerIDInterpolation.Enabled && !playerIDInterpolation.current.UnityNear(playerIDInterpolation.target, 0.0015f)) { _playerID = (int)playerIDInterpolation.Interpolate(); //RunChange_playerID(playerIDInterpolation.Timestep); } }
public override void InterpolateUpdate() { if (IsOwner) { return; } if (ownerNetworkIdInterpolation.Enabled && !ownerNetworkIdInterpolation.current.UnityNear(ownerNetworkIdInterpolation.target, 0.0015f)) { _ownerNetworkId = (uint)ownerNetworkIdInterpolation.Interpolate(); //RunChange_ownerNetworkId(ownerNetworkIdInterpolation.Timestep); } if (healthInterpolation.Enabled && !healthInterpolation.current.UnityNear(healthInterpolation.target, 0.0015f)) { _health = (float)healthInterpolation.Interpolate(); //RunChange_health(healthInterpolation.Timestep); } if (targetInterpolation.Enabled && !targetInterpolation.current.UnityNear(targetInterpolation.target, 0.0015f)) { _target = (Vector3)targetInterpolation.Interpolate(); //RunChange_target(targetInterpolation.Timestep); } if (baseRotationInterpolation.Enabled && !baseRotationInterpolation.current.UnityNear(baseRotationInterpolation.target, 0.0015f)) { _baseRotation = (Quaternion)baseRotationInterpolation.Interpolate(); //RunChange_baseRotation(baseRotationInterpolation.Timestep); } if (barrelRotationInterpolation.Enabled && !barrelRotationInterpolation.current.UnityNear(barrelRotationInterpolation.target, 0.0015f)) { _barrelRotation = (Quaternion)barrelRotationInterpolation.Interpolate(); //RunChange_barrelRotation(barrelRotationInterpolation.Timestep); } }
public override void InterpolateUpdate() { if (IsOwner) { return; } if (positionInterpolation.Enabled && !positionInterpolation.current.UnityNear(positionInterpolation.target, 0.0015f)) { _position = (Vector3)positionInterpolation.Interpolate(); //RunChange_position(positionInterpolation.Timestep); } if (rotationInterpolation.Enabled && !rotationInterpolation.current.UnityNear(rotationInterpolation.target, 0.0015f)) { _rotation = (Quaternion)rotationInterpolation.Interpolate(); //RunChange_rotation(rotationInterpolation.Timestep); } if (speedInterpolation.Enabled && !speedInterpolation.current.UnityNear(speedInterpolation.target, 0.0015f)) { _speed = (float)speedInterpolation.Interpolate(); //RunChange_speed(speedInterpolation.Timestep); } if (animationSpeedInterpolation.Enabled && !animationSpeedInterpolation.current.UnityNear(animationSpeedInterpolation.target, 0.0015f)) { _animationSpeed = (float)animationSpeedInterpolation.Interpolate(); //RunChange_animationSpeed(animationSpeedInterpolation.Timestep); } }
public override void InterpolateUpdate() { if (IsOwner) { return; } if (positionInterpolation.Enabled && !positionInterpolation.current.UnityNear(positionInterpolation.target, 0.0015f)) { _position = (Vector3)positionInterpolation.Interpolate(); //RunChange_position(positionInterpolation.Timestep); } if (rotationInterpolation.Enabled && !rotationInterpolation.current.UnityNear(rotationInterpolation.target, 0.0015f)) { _rotation = (Quaternion)rotationInterpolation.Interpolate(); //RunChange_rotation(rotationInterpolation.Timestep); } if (IsGroundedInterpolation.Enabled && !IsGroundedInterpolation.current.UnityNear(IsGroundedInterpolation.target, 0.0015f)) { _IsGrounded = (bool)IsGroundedInterpolation.Interpolate(); //RunChange_IsGrounded(IsGroundedInterpolation.Timestep); } if (IsStrafingInterpolation.Enabled && !IsStrafingInterpolation.current.UnityNear(IsStrafingInterpolation.target, 0.0015f)) { _IsStrafing = (bool)IsStrafingInterpolation.Interpolate(); //RunChange_IsStrafing(IsStrafingInterpolation.Timestep); } if (IsSprintingInterpolation.Enabled && !IsSprintingInterpolation.current.UnityNear(IsSprintingInterpolation.target, 0.0015f)) { _IsSprinting = (bool)IsSprintingInterpolation.Interpolate(); //RunChange_IsSprinting(IsSprintingInterpolation.Timestep); } if (InputHorizontalInterpolation.Enabled && !InputHorizontalInterpolation.current.UnityNear(InputHorizontalInterpolation.target, 0.0015f)) { _InputHorizontal = (float)InputHorizontalInterpolation.Interpolate(); //RunChange_InputHorizontal(InputHorizontalInterpolation.Timestep); } if (InputVerticalInterpolation.Enabled && !InputVerticalInterpolation.current.UnityNear(InputVerticalInterpolation.target, 0.0015f)) { _InputVertical = (float)InputVerticalInterpolation.Interpolate(); //RunChange_InputVertical(InputVerticalInterpolation.Timestep); } if (InputMagnitudeInterpolation.Enabled && !InputMagnitudeInterpolation.current.UnityNear(InputMagnitudeInterpolation.target, 0.0015f)) { _InputMagnitude = (float)InputMagnitudeInterpolation.Interpolate(); //RunChange_InputMagnitude(InputMagnitudeInterpolation.Timestep); } if (GroundDistanceInterpolation.Enabled && !GroundDistanceInterpolation.current.UnityNear(GroundDistanceInterpolation.target, 0.0015f)) { _GroundDistance = (float)GroundDistanceInterpolation.Interpolate(); //RunChange_GroundDistance(GroundDistanceInterpolation.Timestep); } }
public override void InterpolateUpdate() { if (IsOwner) { return; } if (positionInterpolation.Enabled && !positionInterpolation.current.UnityNear(positionInterpolation.target, 0.0015f)) { _position = (Vector3)positionInterpolation.Interpolate(); //RunChange_position(positionInterpolation.Timestep); } if (rotationInterpolation.Enabled && !rotationInterpolation.current.UnityNear(rotationInterpolation.target, 0.0015f)) { _rotation = (Quaternion)rotationInterpolation.Interpolate(); //RunChange_rotation(rotationInterpolation.Timestep); } if (axisDeltaInterpolation.Enabled && !axisDeltaInterpolation.current.UnityNear(axisDeltaInterpolation.target, 0.0015f)) { _axisDelta = (Vector2)axisDeltaInterpolation.Interpolate(); //RunChange_axisDelta(axisDeltaInterpolation.Timestep); } if (vertVelocityInterpolation.Enabled && !vertVelocityInterpolation.current.UnityNear(vertVelocityInterpolation.target, 0.0015f)) { _vertVelocity = (float)vertVelocityInterpolation.Interpolate(); //RunChange_vertVelocity(vertVelocityInterpolation.Timestep); } if (groundedInterpolation.Enabled && !groundedInterpolation.current.UnityNear(groundedInterpolation.target, 0.0015f)) { _grounded = (bool)groundedInterpolation.Interpolate(); //RunChange_grounded(groundedInterpolation.Timestep); } if (weaponIndexInterpolation.Enabled && !weaponIndexInterpolation.current.UnityNear(weaponIndexInterpolation.target, 0.0015f)) { _weaponIndex = (int)weaponIndexInterpolation.Interpolate(); //RunChange_weaponIndex(weaponIndexInterpolation.Timestep); } if (skillIndexInterpolation.Enabled && !skillIndexInterpolation.current.UnityNear(skillIndexInterpolation.target, 0.0015f)) { _skillIndex = (int)skillIndexInterpolation.Interpolate(); //RunChange_skillIndex(skillIndexInterpolation.Timestep); } if (blockedInterpolation.Enabled && !blockedInterpolation.current.UnityNear(blockedInterpolation.target, 0.0015f)) { _blocked = (bool)blockedInterpolation.Interpolate(); //RunChange_blocked(blockedInterpolation.Timestep); } if (lookatDirInterpolation.Enabled && !lookatDirInterpolation.current.UnityNear(lookatDirInterpolation.target, 0.0015f)) { _lookatDir = (Vector3)lookatDirInterpolation.Interpolate(); //RunChange_lookatDir(lookatDirInterpolation.Timestep); } }
public override void InterpolateUpdate() { if (IsOwner) { return; } if (rotationInterpolation.Enabled && !rotationInterpolation.current.UnityNear(rotationInterpolation.target, 0.0015f)) { _rotation = (Quaternion)rotationInterpolation.Interpolate(); //RunChange_rotation(rotationInterpolation.Timestep); } }
public override void InterpolateUpdate() { ///if (IsOwner) if (!IsRemote) { frameCount++; if (_dirtyFields[0] > 0) { /// send frame data frameSender.BMSData = Convert.ToBase64String(dirtyFieldsData.CompressBytes()); frameSender.FrameCount = frameCount; PTK.ArenaObservable.FrameData[] objs = { frameSender }; string json = frameSender.ToJson <PTK.ArenaObservable.FrameData>(objs, false); PTK.Ansuz.Instance.PublishToTopic(playerFrameTopic, json, 0); } return; } if (positionInterpolation.Enabled && !positionInterpolation.current.UnityNear(positionInterpolation.target, 0.0015f)) { _position = (Vector3)positionInterpolation.Interpolate(); //RunChange_position(positionInterpolation.Timestep); } if (rotationInterpolation.Enabled && !rotationInterpolation.current.UnityNear(rotationInterpolation.target, 0.0015f)) { _rotation = (Quaternion)rotationInterpolation.Interpolate(); //RunChange_rotation(rotationInterpolation.Timestep); } if (spineRotationInterpolation.Enabled && !spineRotationInterpolation.current.UnityNear(spineRotationInterpolation.target, 0.0015f)) { _spineRotation = (Vector3)spineRotationInterpolation.Interpolate(); //RunChange_spineRotation(spineRotationInterpolation.Timestep); } if (verticalInterpolation.Enabled && !verticalInterpolation.current.UnityNear(verticalInterpolation.target, 0.0015f)) { _vertical = (float)verticalInterpolation.Interpolate(); //RunChange_vertical(verticalInterpolation.Timestep); } if (horizontalInterpolation.Enabled && !horizontalInterpolation.current.UnityNear(horizontalInterpolation.target, 0.0015f)) { _horizontal = (float)horizontalInterpolation.Interpolate(); //RunChange_horizontal(horizontalInterpolation.Timestep); } if (isMovingInterpolation.Enabled && !isMovingInterpolation.current.UnityNear(isMovingInterpolation.target, 0.0015f)) { _isMoving = (bool)isMovingInterpolation.Interpolate(); //RunChange_isMoving(isMovingInterpolation.Timestep); } }
public override void InterpolateUpdate() { if (IsOwner) { return; } if (destNetPositionInterpolation.Enabled && !destNetPositionInterpolation.current.UnityNear(destNetPositionInterpolation.target, 0.0015f)) { _destNetPosition = (Vector3)destNetPositionInterpolation.Interpolate(); //RunChange_destNetPosition(destNetPositionInterpolation.Timestep); } if (destNetRotationInterpolation.Enabled && !destNetRotationInterpolation.current.UnityNear(destNetRotationInterpolation.target, 0.0015f)) { _destNetRotation = (Quaternion)destNetRotationInterpolation.Interpolate(); //RunChange_destNetRotation(destNetRotationInterpolation.Timestep); } if (destNetColorInterpolation.Enabled && !destNetColorInterpolation.current.UnityNear(destNetColorInterpolation.target, 0.0015f)) { _destNetColor = (Color)destNetColorInterpolation.Interpolate(); //RunChange_destNetColor(destNetColorInterpolation.Timestep); } if (destNetAvatorDimsInterpolation.Enabled && !destNetAvatorDimsInterpolation.current.UnityNear(destNetAvatorDimsInterpolation.target, 0.0015f)) { _destNetAvatorDims = (Vector3)destNetAvatorDimsInterpolation.Interpolate(); //RunChange_destNetAvatorDims(destNetAvatorDimsInterpolation.Timestep); } if (destCursorDimsInterpolation.Enabled && !destCursorDimsInterpolation.current.UnityNear(destCursorDimsInterpolation.target, 0.0015f)) { _destCursorDims = (Vector3)destCursorDimsInterpolation.Interpolate(); //RunChange_destCursorDims(destCursorDimsInterpolation.Timestep); } if (destCursorSpeedInterpolation.Enabled && !destCursorSpeedInterpolation.current.UnityNear(destCursorSpeedInterpolation.target, 0.0015f)) { _destCursorSpeed = (float)destCursorSpeedInterpolation.Interpolate(); //RunChange_destCursorSpeed(destCursorSpeedInterpolation.Timestep); } if (destAvatorSpeedInterpolation.Enabled && !destAvatorSpeedInterpolation.current.UnityNear(destAvatorSpeedInterpolation.target, 0.0015f)) { _destAvatorSpeed = (float)destAvatorSpeedInterpolation.Interpolate(); //RunChange_destAvatorSpeed(destAvatorSpeedInterpolation.Timestep); } if (destAvatorDestDistInterpolation.Enabled && !destAvatorDestDistInterpolation.current.UnityNear(destAvatorDestDistInterpolation.target, 0.0015f)) { _destAvatorDestDist = (float)destAvatorDestDistInterpolation.Interpolate(); //RunChange_destAvatorDestDist(destAvatorDestDistInterpolation.Timestep); } }
/// <summary> /// 插值字段更新 /// </summary> public override void InterpolateUpdate() { if (IsOwner) { return; } if (positionInterpolation.Enabled && !positionInterpolation.current.Near(positionInterpolation.target, 0.0015f)) { _position = (Vector3)positionInterpolation.Interpolate(); this.RunChange_Position(positionInterpolation.Timestep); } if (rotationInterpolation.Enabled && !rotationInterpolation.current.Near(rotationInterpolation.target, 0.0015f)) { _rotation = (Quaternion)rotationInterpolation.Interpolate(); this.RunChange_Rotation(rotationInterpolation.Timestep); } base.InterpolateUpdate(); }
public override void InterpolateUpdate() { if (IsOwner) { return; } if (positionInterpolation.Enabled && !positionInterpolation.current.UnityNear(positionInterpolation.target, 0.0015f)) { _position = (Vector3)positionInterpolation.Interpolate(); //RunChange_position(positionInterpolation.Timestep); } if (rotationInterpolation.Enabled && !rotationInterpolation.current.UnityNear(rotationInterpolation.target, 0.0015f)) { _rotation = (Quaternion)rotationInterpolation.Interpolate(); //RunChange_rotation(rotationInterpolation.Timestep); } if (hpInterpolation.Enabled && !hpInterpolation.current.UnityNear(hpInterpolation.target, 0.0015f)) { _hp = (int)hpInterpolation.Interpolate(); //RunChange_hp(hpInterpolation.Timestep); } if (hpMaxInterpolation.Enabled && !hpMaxInterpolation.current.UnityNear(hpMaxInterpolation.target, 0.0015f)) { _hpMax = (int)hpMaxInterpolation.Interpolate(); //RunChange_hpMax(hpMaxInterpolation.Timestep); } if (staminaInterpolation.Enabled && !staminaInterpolation.current.UnityNear(staminaInterpolation.target, 0.0015f)) { _stamina = (int)staminaInterpolation.Interpolate(); //RunChange_stamina(staminaInterpolation.Timestep); } if (staminaMaxInterpolation.Enabled && !staminaMaxInterpolation.current.UnityNear(staminaMaxInterpolation.target, 0.0015f)) { _staminaMax = (int)staminaMaxInterpolation.Interpolate(); //RunChange_staminaMax(staminaMaxInterpolation.Timestep); } if (playerNetworkIdInterpolation.Enabled && !playerNetworkIdInterpolation.current.UnityNear(playerNetworkIdInterpolation.target, 0.0015f)) { _playerNetworkId = (uint)playerNetworkIdInterpolation.Interpolate(); //RunChange_playerNetworkId(playerNetworkIdInterpolation.Timestep); } }
public override void InterpolateUpdate() { if (IsOwner) { return; } if (positionInterpolation.Enabled && !positionInterpolation.current.UnityNear(positionInterpolation.target, 0.0015f)) { _position = (Vector3)positionInterpolation.Interpolate(); //RunChange_position(positionInterpolation.Timestep); } if (rotationInterpolation.Enabled && !rotationInterpolation.current.UnityNear(rotationInterpolation.target, 0.0015f)) { _rotation = (Quaternion)rotationInterpolation.Interpolate(); //RunChange_rotation(rotationInterpolation.Timestep); } if (charTypeInterpolation.Enabled && !charTypeInterpolation.current.UnityNear(charTypeInterpolation.target, 0.0015f)) { _charType = (int)charTypeInterpolation.Interpolate(); //RunChange_charType(charTypeInterpolation.Timestep); } if (isGroundedInterpolation.Enabled && !isGroundedInterpolation.current.UnityNear(isGroundedInterpolation.target, 0.0015f)) { _isGrounded = (bool)isGroundedInterpolation.Interpolate(); //RunChange_isGrounded(isGroundedInterpolation.Timestep); } if (animationTypeInterpolation.Enabled && !animationTypeInterpolation.current.UnityNear(animationTypeInterpolation.target, 0.0015f)) { _animationType = (int)animationTypeInterpolation.Interpolate(); //RunChange_animationType(animationTypeInterpolation.Timestep); } if (damageInterpolation.Enabled && !damageInterpolation.current.UnityNear(damageInterpolation.target, 0.0015f)) { _damage = (int)damageInterpolation.Interpolate(); //RunChange_damage(damageInterpolation.Timestep); } if (livesInterpolation.Enabled && !livesInterpolation.current.UnityNear(livesInterpolation.target, 0.0015f)) { _lives = (int)livesInterpolation.Interpolate(); //RunChange_lives(livesInterpolation.Timestep); } }
public override void InterpolateUpdate() { if (IsOwner) { return; } if (positionInterpolation.Enabled && !positionInterpolation.current.UnityNear(positionInterpolation.target, 0.0015f)) { _position = (Vector3)positionInterpolation.Interpolate(); //RunChange_position(positionInterpolation.Timestep); } if (rotationInterpolation.Enabled && !rotationInterpolation.current.UnityNear(rotationInterpolation.target, 0.0015f)) { _rotation = (Quaternion)rotationInterpolation.Interpolate(); //RunChange_rotation(rotationInterpolation.Timestep); } if (FLCannonInterpolation.Enabled && !FLCannonInterpolation.current.UnityNear(FLCannonInterpolation.target, 0.0015f)) { _FLCannon = (Quaternion)FLCannonInterpolation.Interpolate(); //RunChange_FLCannon(FLCannonInterpolation.Timestep); } if (FRCannonInterpolation.Enabled && !FRCannonInterpolation.current.UnityNear(FRCannonInterpolation.target, 0.0015f)) { _FRCannon = (Quaternion)FRCannonInterpolation.Interpolate(); //RunChange_FRCannon(FRCannonInterpolation.Timestep); } if (BLCannonInterpolation.Enabled && !BLCannonInterpolation.current.UnityNear(BLCannonInterpolation.target, 0.0015f)) { _BLCannon = (Quaternion)BLCannonInterpolation.Interpolate(); //RunChange_BLCannon(BLCannonInterpolation.Timestep); } if (BRCannonInterpolation.Enabled && !BRCannonInterpolation.current.UnityNear(BRCannonInterpolation.target, 0.0015f)) { _BRCannon = (Quaternion)BRCannonInterpolation.Interpolate(); //RunChange_BRCannon(BRCannonInterpolation.Timestep); } if (healthInterpolation.Enabled && !healthInterpolation.current.UnityNear(healthInterpolation.target, 0.0015f)) { _health = (int)healthInterpolation.Interpolate(); //RunChange_health(healthInterpolation.Timestep); } }
public override void InterpolateUpdate() { if (IsOwner) { return; } if (positionInterpolation.Enabled && !positionInterpolation.current.UnityNear(positionInterpolation.target, 0.0015f)) { _position = (Vector3)positionInterpolation.Interpolate(); //RunChange_position(positionInterpolation.Timestep); } if (rotationInterpolation.Enabled && !rotationInterpolation.current.UnityNear(rotationInterpolation.target, 0.0015f)) { _rotation = (Quaternion)rotationInterpolation.Interpolate(); //RunChange_rotation(rotationInterpolation.Timestep); } if (characterColorInterpolation.Enabled && !characterColorInterpolation.current.UnityNear(characterColorInterpolation.target, 0.0015f)) { _characterColor = (Color)characterColorInterpolation.Interpolate(); //RunChange_characterColor(characterColorInterpolation.Timestep); } if (StrokeCountInterpolation.Enabled && !StrokeCountInterpolation.current.UnityNear(StrokeCountInterpolation.target, 0.0015f)) { _StrokeCount = (int)StrokeCountInterpolation.Interpolate(); //RunChange_StrokeCount(StrokeCountInterpolation.Timestep); } if (HoleScoreInterpolation.Enabled && !HoleScoreInterpolation.current.UnityNear(HoleScoreInterpolation.target, 0.0015f)) { _HoleScore = (int)HoleScoreInterpolation.Interpolate(); //RunChange_HoleScore(HoleScoreInterpolation.Timestep); } if (FinishedInterpolation.Enabled && !FinishedInterpolation.current.UnityNear(FinishedInterpolation.target, 0.0015f)) { _Finished = (bool)FinishedInterpolation.Interpolate(); //RunChange_Finished(FinishedInterpolation.Timestep); } }
public override void InterpolateUpdate() { if (IsOwner) { return; } if (positionInterpolation.Enabled && !positionInterpolation.current.UnityNear(positionInterpolation.target, 0.0015f)) { _position = (Vector3)positionInterpolation.Interpolate(); //RunChange_position(positionInterpolation.Timestep); } if (rotationInterpolation.Enabled && !rotationInterpolation.current.UnityNear(rotationInterpolation.target, 0.0015f)) { _rotation = (Quaternion)rotationInterpolation.Interpolate(); //RunChange_rotation(rotationInterpolation.Timestep); } if (spineRotationInterpolation.Enabled && !spineRotationInterpolation.current.UnityNear(spineRotationInterpolation.target, 0.0015f)) { _spineRotation = (Vector3)spineRotationInterpolation.Interpolate(); //RunChange_spineRotation(spineRotationInterpolation.Timestep); } if (verticalInterpolation.Enabled && !verticalInterpolation.current.UnityNear(verticalInterpolation.target, 0.0015f)) { _vertical = (float)verticalInterpolation.Interpolate(); //RunChange_vertical(verticalInterpolation.Timestep); } if (horizontalInterpolation.Enabled && !horizontalInterpolation.current.UnityNear(horizontalInterpolation.target, 0.0015f)) { _horizontal = (float)horizontalInterpolation.Interpolate(); //RunChange_horizontal(horizontalInterpolation.Timestep); } if (isMovingInterpolation.Enabled && !isMovingInterpolation.current.UnityNear(isMovingInterpolation.target, 0.0015f)) { _isMoving = (bool)isMovingInterpolation.Interpolate(); //RunChange_isMoving(isMovingInterpolation.Timestep); } }
public override void InterpolateUpdate() { if (IsOwner) { return; } if (headPositionInterpolation.Enabled && !headPositionInterpolation.current.UnityNear(headPositionInterpolation.target, 0.0015f)) { _headPosition = (Vector3)headPositionInterpolation.Interpolate(); //RunChange_headPosition(headPositionInterpolation.Timestep); } if (headRotationInterpolation.Enabled && !headRotationInterpolation.current.UnityNear(headRotationInterpolation.target, 0.0015f)) { _headRotation = (Quaternion)headRotationInterpolation.Interpolate(); //RunChange_headRotation(headRotationInterpolation.Timestep); } if (leftPositionInterpolation.Enabled && !leftPositionInterpolation.current.UnityNear(leftPositionInterpolation.target, 0.0015f)) { _leftPosition = (Vector3)leftPositionInterpolation.Interpolate(); //RunChange_leftPosition(leftPositionInterpolation.Timestep); } if (leftRotationInterpolation.Enabled && !leftRotationInterpolation.current.UnityNear(leftRotationInterpolation.target, 0.0015f)) { _leftRotation = (Quaternion)leftRotationInterpolation.Interpolate(); //RunChange_leftRotation(leftRotationInterpolation.Timestep); } if (rightPositionInterpolation.Enabled && !rightPositionInterpolation.current.UnityNear(rightPositionInterpolation.target, 0.0015f)) { _rightPosition = (Vector3)rightPositionInterpolation.Interpolate(); //RunChange_rightPosition(rightPositionInterpolation.Timestep); } if (rightRotationInterpolation.Enabled && !rightRotationInterpolation.current.UnityNear(rightRotationInterpolation.target, 0.0015f)) { _rightRotation = (Quaternion)rightRotationInterpolation.Interpolate(); //RunChange_rightRotation(rightRotationInterpolation.Timestep); } }
public override void InterpolateUpdate() { if (IsOwner) { return; } if (HeadsetPositionInterpolation.Enabled && !HeadsetPositionInterpolation.current.UnityNear(HeadsetPositionInterpolation.target, 0.0015f)) { _HeadsetPosition = (Vector3)HeadsetPositionInterpolation.Interpolate(); //RunChange_HeadsetPosition(HeadsetPositionInterpolation.Timestep); } if (HeadsetRotationInterpolation.Enabled && !HeadsetRotationInterpolation.current.UnityNear(HeadsetRotationInterpolation.target, 0.0015f)) { _HeadsetRotation = (Quaternion)HeadsetRotationInterpolation.Interpolate(); //RunChange_HeadsetRotation(HeadsetRotationInterpolation.Timestep); } if (LeftControllerPositionInterpolation.Enabled && !LeftControllerPositionInterpolation.current.UnityNear(LeftControllerPositionInterpolation.target, 0.0015f)) { _LeftControllerPosition = (Vector3)LeftControllerPositionInterpolation.Interpolate(); //RunChange_LeftControllerPosition(LeftControllerPositionInterpolation.Timestep); } if (LeftControllerRotationInterpolation.Enabled && !LeftControllerRotationInterpolation.current.UnityNear(LeftControllerRotationInterpolation.target, 0.0015f)) { _LeftControllerRotation = (Quaternion)LeftControllerRotationInterpolation.Interpolate(); //RunChange_LeftControllerRotation(LeftControllerRotationInterpolation.Timestep); } if (RightControllerPositionInterpolation.Enabled && !RightControllerPositionInterpolation.current.UnityNear(RightControllerPositionInterpolation.target, 0.0015f)) { _RightControllerPosition = (Vector3)RightControllerPositionInterpolation.Interpolate(); //RunChange_RightControllerPosition(RightControllerPositionInterpolation.Timestep); } if (RightControllerRotationInterpolation.Enabled && !RightControllerRotationInterpolation.current.UnityNear(RightControllerRotationInterpolation.target, 0.0015f)) { _RightControllerRotation = (Quaternion)RightControllerRotationInterpolation.Interpolate(); //RunChange_RightControllerRotation(RightControllerRotationInterpolation.Timestep); } }
public override void InterpolateUpdate() { if (IsOwner) { return; } if (positionInterpolation.Enabled && !positionInterpolation.current.UnityNear(positionInterpolation.target, 0.0015f)) { _position = (Vector3)positionInterpolation.Interpolate(); //RunChange_position(positionInterpolation.Timestep); } if (rotationInterpolation.Enabled && !rotationInterpolation.current.UnityNear(rotationInterpolation.target, 0.0015f)) { _rotation = (Quaternion)rotationInterpolation.Interpolate(); //RunChange_rotation(rotationInterpolation.Timestep); } if (dataInterpolation.Enabled && !dataInterpolation.current.UnityNear(dataInterpolation.target, 0.0015f)) { _data = (byte)dataInterpolation.Interpolate(); //RunChange_data(dataInterpolation.Timestep); } }
public override void InterpolateUpdate() { if (IsOwner) { return; } if (MyIDInterpolation.Enabled && !MyIDInterpolation.current.UnityNear(MyIDInterpolation.target, 0.0015f)) { _MyID = (uint)MyIDInterpolation.Interpolate(); //RunChange_MyID(MyIDInterpolation.Timestep); } if (PositionInterpolation.Enabled && !PositionInterpolation.current.UnityNear(PositionInterpolation.target, 0.0015f)) { _Position = (Vector3)PositionInterpolation.Interpolate(); //RunChange_Position(PositionInterpolation.Timestep); } if (RotationInterpolation.Enabled && !RotationInterpolation.current.UnityNear(RotationInterpolation.target, 0.0015f)) { _Rotation = (Quaternion)RotationInterpolation.Interpolate(); //RunChange_Rotation(RotationInterpolation.Timestep); } }
public override void InterpolateUpdate() { if (IsOwner) { return; } if (positionInterpolation.Enabled && !positionInterpolation.current.UnityNear(positionInterpolation.target, 0.0015f)) { _position = (Vector2)positionInterpolation.Interpolate(); //RunChange_position(positionInterpolation.Timestep); } if (rotationInterpolation.Enabled && !rotationInterpolation.current.UnityNear(rotationInterpolation.target, 0.0015f)) { _rotation = (Quaternion)rotationInterpolation.Interpolate(); //RunChange_rotation(rotationInterpolation.Timestep); } if (lookleftInterpolation.Enabled && !lookleftInterpolation.current.UnityNear(lookleftInterpolation.target, 0.0015f)) { _lookleft = (bool)lookleftInterpolation.Interpolate(); //RunChange_lookleft(lookleftInterpolation.Timestep); } }
public override void InterpolateUpdate() { if (IsOwner) { return; } if (positionInterpolation.Enabled && !positionInterpolation.current.UnityNear(positionInterpolation.target, 0.0015f)) { _position = (Vector3)positionInterpolation.Interpolate(); //RunChange_position(positionInterpolation.Timestep); } if (rotationInterpolation.Enabled && !rotationInterpolation.current.UnityNear(rotationInterpolation.target, 0.0015f)) { _rotation = (Quaternion)rotationInterpolation.Interpolate(); //RunChange_rotation(rotationInterpolation.Timestep); } if (cloakValueInterpolation.Enabled && !cloakValueInterpolation.current.UnityNear(cloakValueInterpolation.target, 0.0015f)) { _cloakValue = (float)cloakValueInterpolation.Interpolate(); //RunChange_cloakValue(cloakValueInterpolation.Timestep); } }
public override void InterpolateUpdate() { if (IsOwner) { return; } if (positionInterpolation.Enabled && !positionInterpolation.current.UnityNear(positionInterpolation.target, 0.0015f)) { _position = (Vector3)positionInterpolation.Interpolate(); //RunChange_position(positionInterpolation.Timestep); } if (rotationInterpolation.Enabled && !rotationInterpolation.current.UnityNear(rotationInterpolation.target, 0.0015f)) { _rotation = (Quaternion)rotationInterpolation.Interpolate(); //RunChange_rotation(rotationInterpolation.Timestep); } if (healthInterpolation.Enabled && !healthInterpolation.current.UnityNear(healthInterpolation.target, 0.0015f)) { _health = (int)healthInterpolation.Interpolate(); //RunChange_health(healthInterpolation.Timestep); } if (onGroundInterpolation.Enabled && !onGroundInterpolation.current.UnityNear(onGroundInterpolation.target, 0.0015f)) { _onGround = (bool)onGroundInterpolation.Interpolate(); //RunChange_onGround(onGroundInterpolation.Timestep); } if (isDeadInterpolation.Enabled && !isDeadInterpolation.current.UnityNear(isDeadInterpolation.target, 0.0015f)) { _isDead = (bool)isDeadInterpolation.Interpolate(); //RunChange_isDead(isDeadInterpolation.Timestep); } if (runninValInterpolation.Enabled && !runninValInterpolation.current.UnityNear(runninValInterpolation.target, 0.0015f)) { _runninVal = (int)runninValInterpolation.Interpolate(); //RunChange_runninVal(runninValInterpolation.Timestep); } if (horizontalValInterpolation.Enabled && !horizontalValInterpolation.current.UnityNear(horizontalValInterpolation.target, 0.0015f)) { _horizontalVal = (int)horizontalValInterpolation.Interpolate(); //RunChange_horizontalVal(horizontalValInterpolation.Timestep); } if (isJumpingInterpolation.Enabled && !isJumpingInterpolation.current.UnityNear(isJumpingInterpolation.target, 0.0015f)) { _isJumping = (bool)isJumpingInterpolation.Interpolate(); //RunChange_isJumping(isJumpingInterpolation.Timestep); } if (isThrowingInterpolation.Enabled && !isThrowingInterpolation.current.UnityNear(isThrowingInterpolation.target, 0.0015f)) { _isThrowing = (bool)isThrowingInterpolation.Interpolate(); //RunChange_isThrowing(isThrowingInterpolation.Timestep); } if (fireIntInterpolation.Enabled && !fireIntInterpolation.current.UnityNear(fireIntInterpolation.target, 0.0015f)) { _fireInt = (int)fireIntInterpolation.Interpolate(); //RunChange_fireInt(fireIntInterpolation.Timestep); } if (aimIntInterpolation.Enabled && !aimIntInterpolation.current.UnityNear(aimIntInterpolation.target, 0.0015f)) { _aimInt = (int)aimIntInterpolation.Interpolate(); //RunChange_aimInt(aimIntInterpolation.Timestep); } if (hasSnippedInterpolation.Enabled && !hasSnippedInterpolation.current.UnityNear(hasSnippedInterpolation.target, 0.0015f)) { _hasSnipped = (int)hasSnippedInterpolation.Interpolate(); //RunChange_hasSnipped(hasSnippedInterpolation.Timestep); } }
public override void InterpolateUpdate() { if (IsOwner) { return; } if (positionInterpolation.Enabled && !positionInterpolation.current.UnityNear(positionInterpolation.target, 0.0015f)) { _position = (Vector3)positionInterpolation.Interpolate(); //RunChange_position(positionInterpolation.Timestep); } if (rotationInterpolation.Enabled && !rotationInterpolation.current.UnityNear(rotationInterpolation.target, 0.0015f)) { _rotation = (Quaternion)rotationInterpolation.Interpolate(); //RunChange_rotation(rotationInterpolation.Timestep); } if (livesInterpolation.Enabled && !livesInterpolation.current.UnityNear(livesInterpolation.target, 0.0015f)) { _lives = (int)livesInterpolation.Interpolate(); //RunChange_lives(livesInterpolation.Timestep); } if (healthInterpolation.Enabled && !healthInterpolation.current.UnityNear(healthInterpolation.target, 0.0015f)) { _health = (int)healthInterpolation.Interpolate(); //RunChange_health(healthInterpolation.Timestep); } if (characterIDInterpolation.Enabled && !characterIDInterpolation.current.UnityNear(characterIDInterpolation.target, 0.0015f)) { _characterID = (int)characterIDInterpolation.Interpolate(); //RunChange_characterID(characterIDInterpolation.Timestep); } if (isRunningInterpolation.Enabled && !isRunningInterpolation.current.UnityNear(isRunningInterpolation.target, 0.0015f)) { _isRunning = (bool)isRunningInterpolation.Interpolate(); //RunChange_isRunning(isRunningInterpolation.Timestep); } if (isIdleInterpolation.Enabled && !isIdleInterpolation.current.UnityNear(isIdleInterpolation.target, 0.0015f)) { _isIdle = (bool)isIdleInterpolation.Interpolate(); //RunChange_isIdle(isIdleInterpolation.Timestep); } if (isAttackingRightInterpolation.Enabled && !isAttackingRightInterpolation.current.UnityNear(isAttackingRightInterpolation.target, 0.0015f)) { _isAttackingRight = (bool)isAttackingRightInterpolation.Interpolate(); //RunChange_isAttackingRight(isAttackingRightInterpolation.Timestep); } if (isHitInterpolation.Enabled && !isHitInterpolation.current.UnityNear(isHitInterpolation.target, 0.0015f)) { _isHit = (bool)isHitInterpolation.Interpolate(); //RunChange_isHit(isHitInterpolation.Timestep); } if (isAttackingLeftInterpolation.Enabled && !isAttackingLeftInterpolation.current.UnityNear(isAttackingLeftInterpolation.target, 0.0015f)) { _isAttackingLeft = (bool)isAttackingLeftInterpolation.Interpolate(); //RunChange_isAttackingLeft(isAttackingLeftInterpolation.Timestep); } if (isShootingInterpolation.Enabled && !isShootingInterpolation.current.UnityNear(isShootingInterpolation.target, 0.0015f)) { _isShooting = (bool)isShootingInterpolation.Interpolate(); //RunChange_isShooting(isShootingInterpolation.Timestep); } }