Search in sources :

Example 6 with PhyWall

use of spacegraph.space2d.widget.windo.PhyWall in project narchy by automenta.

the class Explosives method main.

public static void main(String[] args) {
    PhyWall p = SpaceGraph.wall(1200, 1000);
    Dynamics2D w = p.W;
    w.setContactListener(new ExplosionContacts());
    // w.setGravity(new v2(0, -2.8f));
    staticBox(w, -8, -4, 8, 4);
    Gun g = new Gun(1f, w);
    Loop.of(g::fire).runFPS(10f);
}
Also used : PhyWall(spacegraph.space2d.widget.windo.PhyWall)

Aggregations

PhyWall (spacegraph.space2d.widget.windo.PhyWall)6 Gridding (spacegraph.space2d.container.Gridding)3 Loop (jcog.exe.Loop)2 Random (java.util.Random)1 HaiQae (jcog.learn.ql.HaiQae)1 FloatRange (jcog.math.FloatRange)1 XoRoShiRo128PlusRandom (jcog.math.random.XoRoShiRo128PlusRandom)1 Tensor (jcog.math.tensor.Tensor)1 TensorLERP (jcog.math.tensor.TensorLERP)1 UDPeer (jcog.net.UDPeer)1 PoleCart (nars.experiment.PoleCart)1 SpaceGraph (spacegraph.SpaceGraph)1 VERTICAL (spacegraph.space2d.container.Gridding.VERTICAL)1 CircleShape (spacegraph.space2d.phys.collision.shapes.CircleShape)1 PolygonShape (spacegraph.space2d.phys.collision.shapes.PolygonShape)1 Body2D (spacegraph.space2d.phys.dynamics.Body2D)1 BodyDef (spacegraph.space2d.phys.dynamics.BodyDef)1 BodyType (spacegraph.space2d.phys.dynamics.BodyType)1 Dynamics2D.staticBox (spacegraph.space2d.phys.dynamics.Dynamics2D.staticBox)1 Fixture (spacegraph.space2d.phys.dynamics.Fixture)1