How do you fire objects into the air like a fountain?

How do you fire objects into the air like a fountain of water in a lake? Can you give a bodyDef a initial velocity and then let gravity bring it back down to "earth"?
thanks
daidai 🤓
That's pretty much it.
ok thanks, Wahooney

im having trouble setting the velocity up.

var __vel:b2Vec2 = new b2Vec2(3, 0.0);
body.SetXForm( __vel, 0 );

gives me a "Cannot access a property or method of a null object reference." error on the second line.

can you help
You get that error because something is wrong with the body variable. MAybe you haven't actually created it yet?

In any case, to make something move, maybe this will help:
http://www.box2d.org/forum/viewtopic.php?f=8&t=4138

Original thread: https://box2d.org/forum/viewtopic.php?t=4140