Ejemplo n.º 1
0
        public void AddMesh(long id, int time, int duration, Matrix4x4 transform, Vector3 pivot)
        {
            DebugRenderPrimitive mesh = new DebugRenderTriMesh(transform, pivot);

            mesh.StartTime = time;
            mesh.Duration  = duration;
            mesh.Id        = id;
            Session.AddPrimitive(mesh);
            NotifyDurationChanged(time);
        }
Ejemplo n.º 2
0
        public void AddTriangle(long mesh_id, int time, Vector3 a, Vector3 b, Vector3 c, Color32 color)
        {
            DebugRenderStorage.ModificationAt(time);

            DebugRenderTriMesh mesh = DebugRenderStorage.GetPrimitive(mesh_id) as DebugRenderTriMesh;

            if (mesh != null)
            {
                mesh.AddTriangle(time, a, b, c, color);
            }
            UpdateDuration(time);
        }