[Opensim-dev] llSetHoverHeight

Michael Cortez mcortez at gmail.com
Thu Mar 5 17:55:44 UTC 2009


> It would probably be a good idea to have llMoveTo() and llSetHoverHeight()
> be mutually exclusive, so perhaps adding another flag to PhysicsActor for
> PIDHover {True/False}, and then using that in the various physics
> implementations to signal when only the Z axis should be used.
>

An alternative I thought of this morning, was to have an Axis bit flag
variable which would specify which Axes are to be affected by
PIDTarget/Tua/Active like this:

[Flags]
public enum PIDAxes
{
  X,    // 0000
  Y,    // 0001
  Z    // 0010
}

PIDAxes PIDAxesAffected = X | Y | Z; // Default

PIDAxes PIDAxesAffected = Z; // Hover only

--
Mike C.



More information about the Opensim-dev mailing list