Shouldn't this make a box that goes really fast to the right?
It doesn't!!! 😈 ❓ 😢 🙁
How can I apply massive force to something, so I can make things like explosion effects? There has to be some way. I can't seem to breach 200 on the linear velocity of any object, at least by directly setting it. Only way is by collision of heavy objects under gravity.
What am I doing wrong!?
-B
It doesn't!!! 😈 ❓ 😢 🙁
Code:
var b:b2Body;
var bd:b2BodyDef = new b2BodyDef();
var sd:b2PolygonDef = new b2PolygonDef();
sd.SetAsBox(10, 10);
sd.density = .1;
sd.friction = .5;
sd.restitution = .5;
bd.isSleeping = false;
bd.angularDamping = .2;
bd.linearDamping = .2;
bd.position.Set(-400, -200);
b = _sim.world.CreateBody(bd);
b.CreateShape(sd);
b.SetMassFromShapes();
b.SetLinearVelocity(new b2Vec2(400000000000000000000000000000000, 0));
var bd:b2BodyDef = new b2BodyDef();
var sd:b2PolygonDef = new b2PolygonDef();
sd.SetAsBox(10, 10);
sd.density = .1;
sd.friction = .5;
sd.restitution = .5;
bd.isSleeping = false;
bd.angularDamping = .2;
bd.linearDamping = .2;
bd.position.Set(-400, -200);
b = _sim.world.CreateBody(bd);
b.CreateShape(sd);
b.SetMassFromShapes();
b.SetLinearVelocity(new b2Vec2(400000000000000000000000000000000, 0));
How can I apply massive force to something, so I can make things like explosion effects? There has to be some way. I can't seem to breach 200 on the linear velocity of any object, at least by directly setting it. Only way is by collision of heavy objects under gravity.
What am I doing wrong!?
-B