mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 18:25:33 +08:00
replace util.clip by utils.clamp (from libomv), and a few more cosmetics
This commit is contained in:
@@ -2667,9 +2667,9 @@ Console.WriteLine(" JointCreateFixed");
|
||||
|
||||
SafeNativeMethods.AllocateODEDataForThread(0);
|
||||
|
||||
_position.X = Util.Clip(_position.X, 0.5f, _parent_scene.WorldExtents.X - 0.5f);
|
||||
_position.Y = Util.Clip(_position.Y, 0.5f, _parent_scene.WorldExtents.Y - 0.5f);
|
||||
_position.Z = Util.Clip(_position.Z + 0.2f, -100f, 50000f);
|
||||
_position.X = Utils.Clamp(_position.X, 0.5f, _parent_scene.WorldExtents.X - 0.5f);
|
||||
_position.Y = Utils.Clamp(_position.Y, 0.5f, _parent_scene.WorldExtents.Y - 0.5f);
|
||||
_position.Z = Utils.Clamp(_position.Z + 0.2f, -100f, 50000f);
|
||||
|
||||
m_lastposition = _position;
|
||||
_velocity.X = 0;
|
||||
|
||||
Reference in New Issue
Block a user