Created
May 8, 2018 21:25
-
-
Save nico-abram/c8193d8cb8b4de4694cea9ad7e6f3c9a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using TGC.Core.SceneLoader; | |
using TGC.Core.Example; | |
using TGC.Core.Mathematica; | |
namespace TGC.Group.Model.GameObjects | |
{ | |
class CajaEmpujable | |
{ | |
public TgcMesh Mesh; | |
private TGCVector3 delta; | |
public CajaEmpujable(TgcMesh mesh, TGCVector3 pos) | |
{ | |
Mesh = mesh; | |
Mesh.Position = pos; | |
} | |
public void ColisionXZ(Character pj) | |
{ | |
delta = pj.Position() - pj.PosBeforeMovingInXZ; | |
Mesh.Move(delta); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment