public Explosivo(TGCVector3 posicion, GameLogic logica, Planta planta) { this.logica = logica; body = FactoryBody.crearBodyExplosivo(posicion, 10); this.logica.addBulletObject(this); callback = new CollisionCallbackDisparo(logica, this); this.planta = planta; }
public SuperBala(TgcMesh planta, GameLogic logica, float angulo) { body = FactoryBody.crearBodyConImpulsoDoble(planta.Position, radio, masa, planta.Rotation, angulo); logica.addBulletObject(this); callback = new CollisionCallbackDisparo(logica, this); }