OpenMetaverse.ObjectManager.SetScale C# (CSharp) 메소드

SetScale() 공개 메소드

Change the Scale (size) of an object
public SetScale ( Simulator simulator, uint localID, System.Vector3 scale, bool childOnly, bool uniform ) : void
simulator Simulator A reference to the object where the object resides
localID uint The objects ID which is local to the simulator the object is in
scale System.Vector3 The new scale of the object
childOnly bool If true, will change scale of this prim only, not entire linkset
uniform bool True to resize prims uniformly
리턴 void
        public void SetScale(Simulator simulator, uint localID, Vector3 scale, bool childOnly, bool uniform)
        {
            UpdateType type = UpdateType.Scale;

            if (!childOnly)
                type |= UpdateType.Linked;

            if (uniform)
                type |= UpdateType.Uniform;

            UpdateObject(simulator, localID, scale, type);
        }