bouncing without gravity

I have a rotating triangle, “static”, and a ball in the center.  I turned off gravity.  I want to initiate movement in the ball and have it bounce off the sides of triangle according to the native parameters of physics (without gravity).  My question is how to initiate this movement (as gravity does), but without gravity?  Probably simple, but I am fairly new at this.  Thanks in advance.

Hi @bcpiper,

So the ball is supposed to float around as if inside a vacuum, with no effect from gravity or other forces? I would suggest you set its linear velocity in a starting direction:

[lua]

ball:setLinearVelocity( xVel, yVel )

[/lua]

Best regards,

Brent

Thanks Brent.  Too simple.  I couldn’t find that method when I searched.  Thanks twice over.

Hi @bcpiper,

So the ball is supposed to float around as if inside a vacuum, with no effect from gravity or other forces? I would suggest you set its linear velocity in a starting direction:

[lua]

ball:setLinearVelocity( xVel, yVel )

[/lua]

Best regards,

Brent

Thanks Brent.  Too simple.  I couldn’t find that method when I searched.  Thanks twice over.