Aurora.Modules.CityBuilder.CityModule.createCube C# (CSharp) Method

createCube() public method

Constructs a cube at a given location and size.
public createCube ( System.Vector3 pos, System.Vector3 dim, UUID TextureID ) : OpenSim.Framework.PrimitiveBaseShape
pos System.Vector3 The position of the cube, at it's center, [X,Y,Z]
dim System.Vector3 The size of the cube.
TextureID UUID
return OpenSim.Framework.PrimitiveBaseShape
        public PrimitiveBaseShape createCube(Vector3 pos, Vector3 dim, UUID TextureID)
        {
            //  Construct a cube at a given position, size and texture UUID.
            PrimitiveBaseShape cubeShape = PrimitiveBaseShape.CreateBox();// new PrimitiveBaseShape();
            cubeShape.ToOmvPrimitive(pos, Quaternion.Identity);
            cubeShape.Scale = dim;
            sceneGraph.AddNewPrim(UUID.Zero, UUID.Zero, pos, Quaternion.Identity, cubeShape);
            return cubeShape;
        }