mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 10:46:00 +08:00
Fix issue where moving a seated avatar would not adjust their subsequent stand position.
Addresses http://opensimulator.org/mantis/view.php?id=7299
This commit is contained in:
@@ -2631,7 +2631,7 @@ namespace OpenSim.Region.Framework.Scenes
|
|||||||
|
|
||||||
// Vector3 standPositionAdjustment
|
// Vector3 standPositionAdjustment
|
||||||
// = part.SitTargetPosition + new Vector3(0.5f, 0f, m_sitAvatarHeight / 2f);
|
// = part.SitTargetPosition + new Vector3(0.5f, 0f, m_sitAvatarHeight / 2f);
|
||||||
Vector3 adjustmentForSitPosition = part.SitTargetPosition * part.GetWorldRotation();
|
Vector3 adjustmentForSitPosition = (part.SitTargetPosition + OffsetPosition) * part.GetWorldRotation();
|
||||||
|
|
||||||
// XXX: This is based on the physics capsule sizes. Need to find a better way to read this rather than
|
// XXX: This is based on the physics capsule sizes. Need to find a better way to read this rather than
|
||||||
// hardcoding here.
|
// hardcoding here.
|
||||||
|
|||||||
Reference in New Issue
Block a user