Hello,
I am new to Box2D but , I managed to get a ball moving by keys like a char. Now I try to get the great explosion-script to work... well, I implanted it and the good thing is: there are no errors, but the effect doesn't show up. Nothing happens when I press the ENTER-Key (see in the code)!
here the important part of my code:
1. I put the World class in an World.as with package and stuff to import it.
2. Add that in my test class:
Code:
public function Test(){
...
EXWorld = new World(worldAABB, gravity, doSleep);
...
public var EXWorld:World;
...
public function Update():void{
// It's a loop function :)
...
if(Input.isKeyDown(Keyboard.ENTER)){
EXWorld.explode(ball.m_position);
}
...
}
}
I'm using the "PhysTest.fla" by Matthew Bush
... why doesn't it work ?
Help would be great!
Greetings,
Chris
