mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
Use chode character actor.SetMomentum() to force full restore Velocity in scenepresence TeleportWithMomentum(), since actor.Velocity was selected by original coders as the input of a desired velocity (even 'forces') that is modified by character conditions, like not changing velocity.Z if it is in free fall.
This commit is contained in:
@@ -1082,7 +1082,9 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
CheckLandingPoint(ref pos);
|
||||
AbsolutePosition = pos;
|
||||
AddToPhysicalScene(isFlying);
|
||||
Velocity = vel;
|
||||
if (PhysicsActor != null)
|
||||
PhysicsActor.SetMomentum(vel);
|
||||
|
||||
SendTerseUpdateToAllClients();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user