x


Troubles with Colliders

Hey, i´m doing a 3rd person platform game, and contains 5 stairs, the first one is plane and there is a spawn point on it, and the other 4 are in different x-axis and y-axis position, some are above and others under the 0 position (y-axis); the thing is that my character that is the default 3rd person controller including in Unity works very well on the first plane( cube, scale: 12, 0.2, 2) and it can also jump, then i jump to the other that is on -0.5 y position and works, then the next one is on 0 y position and works too but the next one is on 0.5 y pos. and jumps to the next one instead, that is on 1 y position. Then when i´m on the last one i try to go back to the spawn point and again the same problem with the 3rd stair, and also when i´m on the 2nd one falls through it, and others times it works, but when i jump goes so forward almost in the middle of the 1st plane. I think this could be caused by colliders, but i don´t know where is the problem, all of them has the same size (1,1,1) but i think that´s can be the problem, also my character can jump from 1 to 1.5 max height,and it seems the trouble with the stairs happens when i jump or when i down from one stair to another, so please help me...

alt text

u.png (231.1 kB)
more ▼

asked Apr 13 '12 at 01:11 AM

hero14 gravatar image

hero14
13 3 7 8

This question is frankly insane. The only thing i can suggest is give it a go using cubes rather than planes and see if it helps you at all. Other than that i don't see anyone being able to help you much. Maybe editing your question by adding an image.

Apr 13 '12 at 01:19 AM TheFrankman123

There it is, hope it helps you..

Apr 13 '12 at 02:25 AM hero14
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

I agree with TheFrankman123. I think the problem is that colliders are iterative. If you have a very thin collider, then there is a high chance of an object passing straight through the collider. Try adding some depth to your colliders. If your character has a CharacterController, try adding skin width to it.

more ▼

answered Apr 13 '12 at 03:48 AM

dkNinja gravatar image

dkNinja
91 2

I was trying checking the scripts, and i remove the platformer controller script and the problem was solved, my character can walk and jump and it does not fall trough the cubes, but there´s another problem, my character falls if i move sideways, wich didn´t happen when it had the character controller script. I put that script on my character in order to have a spawn point and contains more properties like movement and jump options, so now what can i do to have this options but keeping the game as it is now..?

Apr 13 '12 at 07:32 PM hero14
(comments are locked)
10|3000 characters needed characters left
Your answer
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:

x80
x66

asked: Apr 13 '12 at 01:11 AM

Seen: 355 times

Last Updated: Apr 13 '12 at 07:32 PM