Game Development Community

Walking through slopes

by Thomas Pereira · in Torque X Platformer Kit · 06/24/2007 (1:43 pm) · 5 replies

I've noticed if you try to walk up a slope > 45 on a collision polygon, you fall right through it. I'm also wondering if any plans for character sprites changing angles according to the polygonal collision surface are in works.

Forgive me if this is addressed somewhere else, it just seems like a bug to me.

#1
06/24/2007 (5:21 pm)
Where are you seeing this behavior (falling through platforms). Screenshots would be appreciated. It most definitely works if it's set up correctly, but there are some subtleties to collision setup that may not be documented as well as they could be.

Also, there is a system in place (ActorPuppetComponent) that allows an actor to rotate to the angle of the surface they are standing on. Have you checked out the PlatformerDemo project or the included docs?
#2
06/24/2007 (10:39 pm)
I forgot I posted this. Yes, I read the docs, and I've been browsing the code to answer the questions on my own.

After reading how specific the setup needs to be I figure it was because of my limited setup that caused the error. I won't jump the gun on a post next time.
#3
06/25/2007 (8:48 am)
I didn't mean to imply that you shouldn't post questions. On the contrary, since we just released I expected at least a few issues to pop up and if they're serious issues (like falling through platforms) we want to nail them down as soon as possible. If you make a level in which your player falls through the platforms, then that's a problem with the kit - either it's a problem with the code or a problem with the documentation (which is what I meant to imply). I hope you didn't take this as a sort of "google it" response, because that's not at all what I meant.

Please don't hesitate to post questions.
#4
06/25/2007 (12:16 pm)
Oh no, trust me I'm not afraid to ask questions. By the end of the day, I will likely have a laundry list of questions. This was sort of a preemptive question that went without reading the docs and jumping into demos, so it was my mistake. I'm going through all the code (learning C# along the way - it seems simple enough) and figuring how it works. I found a few things I have questions on which I'll present in a single thread once I go through most of the code on the areas I'm interested in (mainly the actor and puppet components, and possibly the inventory aspects - the rest may or may not interest me).

My point - I'm a self learner who just got a little impatient. Most of my original questions have already been answer by the documentation.
#5
08/19/2007 (11:29 am)
Hi, I know it's an old thread but I just thought I'd mention something.

I had the same problem with falling through slopes, and I fixed it by making sure that the "tip" of the collision shape assigned to the player was exactly half way between the left and right edges of the object.

I think what was happening, was that when the player changed direction while standing on a slope, the slightly off center point of the collision that was in contact with the ground was suddenly imbedded in the floor, so the player fell through.