Collision and script problem

Hey.

It’s a bit hard to explain my problem so you get a link to the “game” here…
http://www.arongranberg.com/unity/game.html

try to roll of the platform at the right side of the tube so you land on a yellow thing right under it. then you will smoothly fall trough it (and thats what i not want to happend).

Here is the script links:

the script that shall make you not fall trough things at high speed:
http://www.unifycommunity.com/wiki/index.php?title=DontGoThroughThings

The script on the booster (the yellow thing) that makes you move forward fast:
http://rafb.net/p/UCj9xu81.html

These both scripts are connected to the player.

(tell me if i need to post link again it’s only staying 24 hours)

I know its these 2 scripts because it wont happen with anything else.

Please help!

Hmm, that’s very odd. At first I couldn’t fall through. I tried several times. Then I finally did. And when I did, i didn’t continue to fall (and then proceed to be reset), instead I just kind of drifted there - stuck.

Also note, the lighting is very messed up. I’ll send a bug report to UT about that.

As for your problem. How thin is the the collider for the yellow platform? I can’t think of a reason why you’re encountering this problem specifically…

Edit - Here is the reason for the shadows: http://unity3d.com/support/documentation/Manual/DirectionalShadowDetails.html
Thanks for a fast reply Sam!

Now i have uploaded a new version of the game (same URL).
The shadows should be better and i use the onCollisionStay instead of onTriggerEnter and for me it’s working now thanks.

Post reply if the shadows is’nt good now either because i did’nt see the shadows that bad when i played it.