Example #1
0
        public override void Initialize()
        {
#if DEBUG
            Show = true;
#endif
            TVMesh mesh = Scene.CreateMeshBuilder(Name);
            mesh.CreateBox(1, 1, 1);
            mesh.SetPosition(Position.x, Position.y, Position.z);
            mesh.SetRotation(Rotation.x, Rotation.y, Rotation.z);
            mesh.SetScale(Scale.x, Scale.y, Scale.z);
            mesh.GetBoundingBox(ref boundingBoxMin, ref boundingBoxMax);
            mesh.Destroy();
            mesh = null;

            // Register object in Lua.
            ScriptManager.SetGlobal(Name, this);
        }
Example #2
0
 public override void GetBoundingBox(ref TV_3DVECTOR min, ref TV_3DVECTOR max)
 {
     mesh.GetBoundingBox(ref min, ref max);
 }
Example #3
0
 public override void GetBoundingBox(ref MTV3D65.TV_3DVECTOR min, ref MTV3D65.TV_3DVECTOR max)
 {
     //land.GetBoundingBox(ref min, ref max);
     mesh.GetBoundingBox(ref min, ref max);
 }