Game Development Community

Creating collision polys

by Jason McIntosh · in Torque Game Builder · 02/28/2005 (4:56 am) · 7 replies

I'm not rushing you Melv and Josh, but I am curious about your plans for a tool to visually create collision polygons. Point/click/drag would be wonderful since setting them up by hand is tedious. (Again, I am not kicking and screaming that this be done immediately, just wondering what your plans are.) :)

#1
02/28/2005 (5:04 am)
Yep, this is one of the first things on the list, believe us. We almost made the call not to ship without this tool, but, you can do plenty just by making regular collision polys and scaling them along x/y.

A sprite editor is a top priority for editor work, which is in and of itself, a top priority. And, we'll be keeping our eys out for folks in the community who want to help with this kind of development, and have the skills to do a good job with it. :)
#2
02/28/2005 (5:08 am)
@Jason: We were toying with the idea of doing a utility for this pre EA release but we just ran out of time.

Definately an essential tool so it's high on the list. It sucks doing this stuff manually.

The tool will also enable you to get an idea of coordindates for mount/link points as well, being as they use the same coordindate system.

*Watch this space*

- Melv.
#3
02/28/2005 (5:09 am)
Man, we're too quick here. ;)
#4
02/28/2005 (5:20 am)
Mwhaha quick on the draw
#5
02/28/2005 (7:58 am)
Worse case scenerio try my Javascript converter
#6
02/28/2005 (8:29 am)
I'm probably going to sound like a huge MS fanboy here, but I'm using PowerPoint for this. Their vector drawing functionality is more than sufficient. I just to an Insert | Picture | From File... select my sprite, and then scale to be 2 inched x 2 inched (this will stretch the image, but it's now in a coordinate system from -1 to 1). From there, I draw a box around it to define to "limits of the sprite." Now it's easy to outline the collsion poly (though I believe the boundary must be convex). When you are done, if your object is centered right, you can just look at the position of the coordinates and they are all from -1 to 1. Tah dah!
#7
02/28/2005 (9:37 am)
... and don't forget that the collision-polygon is limited to (-1 to +1) but the mounting isn't so you can mount to stuff beyond the bounding-box. Just thought I'd mention that. Very useful if you want to mount things like the "helpers" in the scrolling demo although for this you probably don't really need to see it in relation to the image because it's beyond it.

You know .. forget I said anything. :)

- Melv.