x


Old school 2D plataformer controller?

Hi!,

After playing for a while with built-in character controller I have decided to roll my own or check one that have made someone. The problems with character controller for 2D are more a matter of taste than real problems. I don't like my sprites to "climb" walls or platforms because the collider is a rounded shape (capsule, sphere, etc...) for example.

So, has anybody created one? I have spent some time today playing with raycasts, but there are a lot of problems with shapes smaller than the hero itself, etc... (I coudl get rid of this ones wisely creating my levels). I Have been thinking about using sweeptest but I think it is not an option because of performace (Raycast could not be the best method either).

I would like to make it as lightweight as possible (I think everyone seeks this ). Anybody could suggest where to start with this using unity? Better forget Raycasts and use collision system? Better to use just triggers?.

Thanks in advance, HexDump.

more ▼

asked Jan 21 '11 at 10:15 PM

hexdump gravatar image

hexdump
15 3 9 16

(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:

x3716
x1032
x838
x77

asked: Jan 21 '11 at 10:15 PM

Seen: 1012 times

Last Updated: Jan 22 '11 at 10:17 AM