x


Creating custom collision map for 2D from nodes

I have a 2D level that I have built in my map editor, and I was wondering the best way to create a collision map for it.

I have a collision map layer in my map editor, which saves each node (for example, a rectangle would be just 0,0 0,50 50,60 0,60)

I was just wondering how I could take my node locations and convert it to a collision map for Unity.

Thanks! I feel this has to be able to be done, I can think of how I would do it in flash... but I am not sure how to manipulate it in Unity.

Example: I have a node at each one of these red dots (surrounding my terrain lets say) I want to build a collider from those nodes

alt text

node.png (1.6 kB)
more ▼

asked Aug 10 '12 at 12:20 AM

sp00ks222 gravatar image

sp00ks222
1 1

(comments are locked)
10|3000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x2506
x1707
x1041

asked: Aug 10 '12 at 12:20 AM

Seen: 264 times

Last Updated: Aug 10 '12 at 12:20 AM