-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLocker.cs
More file actions
45 lines (42 loc) · 1.25 KB
/
Copy pathLocker.cs
File metadata and controls
45 lines (42 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
using System;
using System.Collections.Generic;
using System.Text;
using TgcViewer.Example;
using TgcViewer;
using Microsoft.DirectX.Direct3D;
using System.Drawing;
using Microsoft.DirectX;
using TgcViewer.Utils.TgcSceneLoader;
using TgcViewer.Utils.TgcGeometry;
namespace AlumnoEjemplos.GODMODE
{
class Locker
{
private static TgcSceneLoader cargador;
public TgcMesh mesh;
public Boolean encontrado;
public Vector3 posVista;
public Vector3 lookAt;
public Vector3 posAnterior;
public Vector3 lookAtAnterior;
public bool adentro = false;
public Locker(String alumnoMediaFolder, Vector3 posicion,Vector3 escala)
{
cargador = new TgcSceneLoader();
TgcScene nueva = cargador.loadSceneFromFile(alumnoMediaFolder + "GODMODE\\Media\\locker-TgcScene.xml",
alumnoMediaFolder + "GODMODE\\Media\\");
mesh = nueva.Meshes[0];
mesh.Scale = escala;
mesh.Position = posicion;
encontrado = false;
}
public void manejarLocker(float elapsedTime)
{
mesh.render();
}
public Vector3 getPos()
{
return mesh.Position;
}
}
}