Game Development Community

Simplest collision example isn't working?

by John Klimek · in Torque Game Builder · 05/26/2007 (7:59 pm) · 2 replies

I'm just starting to fool around with TGB again and I'm having a bit of a problem creating the most simple scene ever.

Here's what I did:

1) Create new project
2) Drag ball and box onto scene
3) Enable Send+Receive collisions on the ball
4) Enable Receive collisions on the box
5) Set box to have an linear velocity of 10 (y-axis).
6) Set both objects to BOUNCE collision response.

When the ball hits the box it slowly pushes the box off the screen...

(If I use a constant force instead of linear it also does the same thing...)

I'm using TGB v1.5 beta 3, but since I think I'm doing something wrong (rather than the beta having a bug) I thought I'd post here.

Thanks for any help :)

#1
05/27/2007 (6:37 am)
Hi, when you drag the object onto the scene, the detection mode defaults to 'polygon' but no polygon collision points are defined for it. To correct this, change the detection mode to 'circle' or define a collision polygon for it by selecting it and clicking on the polygon icon.

Greg
#2
05/27/2007 (7:55 am)
That fixed it. I figured I was doing something wrong... :\

Thanks a ton,
John