Collision bugs
by Alebrije Estudios · in Torque Game Builder · 09/29/2010 (6:51 pm) · 1 replies
I've been having some issues with the collisions in my run and jump game:
I created ramps using two tiles, but the character would soon get stuck between two of them. The collision normal was "0 -1" when this happened, which is obviously wrong since he's in a ramp. Now I'm using objects instead of tiles to get past this...
What I still haven't got past is when the character is jumping from wall to wall (tiles) and it suddenly gets a normal of "0.707107 0.707107" (signs may vary), which I believe is the normal of a corner. Since I have a specific logic for the moment my character hits a corner, this messes up the game.
Note: I'm using a circular collision detection mode for the player.
I read in an old thread that circle collision detection has problems with tiles and constant forces, all of which I'm using. Although someone in that same thread says that circle detection mode is supposed to work. http://www.torquepowered.com/community/forums/viewthread/72205
Is there something I'm missing or is this a bug with the engine? How could I fix this?
I created ramps using two tiles, but the character would soon get stuck between two of them. The collision normal was "0 -1" when this happened, which is obviously wrong since he's in a ramp. Now I'm using objects instead of tiles to get past this...
What I still haven't got past is when the character is jumping from wall to wall (tiles) and it suddenly gets a normal of "0.707107 0.707107" (signs may vary), which I believe is the normal of a corner. Since I have a specific logic for the moment my character hits a corner, this messes up the game.
Note: I'm using a circular collision detection mode for the player.
I read in an old thread that circle collision detection has problems with tiles and constant forces, all of which I'm using. Although someone in that same thread says that circle detection mode is supposed to work. http://www.torquepowered.com/community/forums/viewthread/72205
Is there something I'm missing or is this a bug with the engine? How could I fix this?
About the author
Alebrije Estudios is a Mex. independent vid game studio. We have 3 main lines of business: in-house developments w/ projects published in the iTunes St., FB, & looking 4 Publisher; advergames; & outsourcing of creative processes. @mike_alebrije
Torque 3D Owner Alebrije Estudios
Default Studio Name
I've tried getting around this, but I have problems when the character thinks it's hit a corner when it hasn't...