Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ protected override void Awake()
// would give more jittery movement.

// FixedUpdate for physics
void FixedUpdate()
protected override void FixedUpdate()
{
// who ever has authority moves the Rigidbody with physics.
// everyone else simply sets it to kinematic.
Expand Down Expand Up @@ -95,6 +95,8 @@ void FixedUpdate()
// the authority owner might use it either way.
if (!owned) rb.isKinematic = true;
}

base.FixedUpdate();
}

protected override void OnTeleport(Vector3 destination)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ protected override void Awake()
// would give more jittery movement.

// FixedUpdate for physics
void FixedUpdate()
protected override void FixedUpdate()
{
// who ever has authority moves the Rigidbody with physics.
// everyone else simply sets it to kinematic.
Expand Down Expand Up @@ -114,6 +114,8 @@ void FixedUpdate()
#else
if (!owned) rb.isKinematic = true;
#endif

base.FixedUpdate();
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ protected override void Awake()
// would give more jittery movement.

// FixedUpdate for physics
void FixedUpdate()
protected override void FixedUpdate()
{
// who ever has authority moves the Rigidbody with physics.
// everyone else simply sets it to kinematic.
Expand Down Expand Up @@ -95,6 +95,8 @@ void FixedUpdate()
// the authority owner might use it either way.
if (!owned) rb.isKinematic = true;
}

base.FixedUpdate();
}

protected override void OnTeleport(Vector3 destination)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ protected override void Awake()
// would give more jittery movement.

// FixedUpdate for physics
void FixedUpdate()
protected override void FixedUpdate()
{
// who ever has authority moves the Rigidbody with physics.
// everyone else simply sets it to kinematic.
Expand Down Expand Up @@ -116,6 +116,8 @@ void FixedUpdate()
if (!owned) rb.isKinematic = true;
#endif
}

base.FixedUpdate();
}

protected override void OnTeleport(Vector3 destination)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ protected override void Awake()
// would give more jittery movement.

// FixedUpdate for physics
void FixedUpdate()
protected override void FixedUpdate()
{
// who ever has authority moves the Rigidbody with physics.
// everyone else simply sets it to kinematic.
Expand Down Expand Up @@ -95,6 +95,8 @@ void FixedUpdate()
// the authority owner might use it either way.
if (!owned) rb.isKinematic = true;
}

base.FixedUpdate();
}

protected override void OnTeleport(Vector3 destination)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@ protected override void Configure()
}

// update //////////////////////////////////////////////////////////////
void Update()
protected virtual void Update()
{
if (updateMethod == UpdateMethod.Update)
DoUpdate();
}

void FixedUpdate()
protected virtual void FixedUpdate()
{
if (updateMethod == UpdateMethod.FixedUpdate)
DoUpdate();
Expand All @@ -89,7 +89,7 @@ void FixedUpdate()
}
}

void LateUpdate()
protected virtual void LateUpdate()
{
if (updateMethod == UpdateMethod.LateUpdate)
DoUpdate();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ protected override void Configure()
}

// update //////////////////////////////////////////////////////////////
void Update()
protected virtual void Update()
{
if (updateMethod == UpdateMethod.Update)
DoUpdate();
}

void FixedUpdate()
protected virtual void FixedUpdate()
{
if (updateMethod == UpdateMethod.FixedUpdate)
DoUpdate();
Expand All @@ -76,7 +76,7 @@ void FixedUpdate()
}
}

void LateUpdate()
protected virtual void LateUpdate()
{
if (updateMethod == UpdateMethod.LateUpdate)
DoUpdate();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ protected override void Configure()

// update //////////////////////////////////////////////////////////////
// Update applies interpolation
void Update()
protected virtual void Update()
{
if (updateMethod == UpdateMethod.Update)
DoUpdate();
}

void FixedUpdate()
protected virtual void FixedUpdate()
{
if (updateMethod == UpdateMethod.FixedUpdate)
DoUpdate();
Expand All @@ -62,7 +62,7 @@ void FixedUpdate()
// use LateUpdate to ensure changes are detected in the same frame.
// otherwise this may run before user update, delaying detection until next frame.
// this could cause visible jitter.
void LateUpdate()
protected virtual void LateUpdate()
{
if (updateMethod == UpdateMethod.LateUpdate)
DoUpdate();
Expand Down