mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 05:17:24 +02:00
Fix attempt for avatar stuck in geometry.
This commit is contained in:
parent
eccc9ff47c
commit
1ce4dcc6e5
1 changed files with 5 additions and 1 deletions
|
@ -276,7 +276,11 @@
|
||||||
var offset = { x: 0, y: 1.0, z: -0.5 - properties.dimensions.z * properties.registrationPoint.z };
|
var offset = { x: 0, y: 1.0, z: -0.5 - properties.dimensions.z * properties.registrationPoint.z };
|
||||||
var position = Vec3.sum(properties.position, Vec3.multiplyQbyV(properties.rotation, offset));
|
var position = Vec3.sum(properties.position, Vec3.multiplyQbyV(properties.rotation, offset));
|
||||||
MyAvatar.position = position;
|
MyAvatar.position = position;
|
||||||
print("Moving Avatar in front of the chair.")
|
print("Moving Avatar in front of the chair.");
|
||||||
|
// Delay standing up by 1 cycle.
|
||||||
|
// This leaves times for the avatar to actually move since a lot
|
||||||
|
// of the stand up operations are threaded
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.standUp();
|
this.standUp();
|
||||||
|
|
Loading…
Reference in a new issue