Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save nico-abram/c8193d8cb8b4de4694cea9ad7e6f3c9a to your computer and use it in GitHub Desktop.
Save nico-abram/c8193d8cb8b4de4694cea9ad7e6f3c9a to your computer and use it in GitHub Desktop.
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