mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 05:24:06 +02:00
Only do collision checking for own avatar.
This commit is contained in:
parent
597769a861
commit
1118c06f5d
1 changed files with 3 additions and 1 deletions
|
@ -261,7 +261,9 @@ void Avatar::simulate(float deltaTime) {
|
|||
}
|
||||
|
||||
// collision response with voxels
|
||||
updateCollisionWithVoxels(deltaTime);
|
||||
if (_isMine) {
|
||||
updateCollisionWithVoxels(deltaTime);
|
||||
}
|
||||
|
||||
// driving the avatar around should only apply if this is my avatar (as opposed to an avatar being driven remotely)
|
||||
if (_isMine) {
|
||||
|
|
Loading…
Reference in a new issue