Piercin / Gdevelop3DPhysics

3 stars 0 forks source link

Camera Falling Bug #2

Closed Yhac10 closed 9 months ago

Yhac10 commented 9 months ago

I think I found a bug. While testing movement, I found that if I moved my camera to a certain position, while the player was touching a wall, the player will fall through the floor. I tried fixing it by increasing pickup range, but that didn't seem to work (I set pickup range to 16, with fall speed being 4).

Piercin commented 9 months ago

sometimes happens when cubes are at certain positions, can you show where it happens ?

Yhac10 commented 9 months ago

Whole Map image Part's where bug happened image image

Piercin commented 9 months ago

Show a video of it happening?

Yhac10 commented 9 months ago

sure

Yhac10 commented 9 months ago

I could be wrong about the player falling through the floor, as all that happens is that the player go's somewhere with no sign of floor, or wall.

Piercin commented 9 months ago

Weird. Can you try to get a text and set the text to the z of your player? Then see if it's going up or down

Yhac10 commented 9 months ago

I checked using the debugger. At the start of the scene the Z position of the player was 1. When the glitch happened, it was -656.

Piercin commented 9 months ago

Alright that's odd. Can you show me all the events regarding the extension?

Yhac10 commented 9 months ago

Okay. image And just for good measure, here's the setup for the player. image

Piercin commented 9 months ago

I think you could put the pickup value at 8. And if that doesn't change anything, im gonna do a rework to the extension

Yhac10 commented 9 months ago

Tried it, and nothing changed. Although now I can confirm that the player falls as after refreshing the debugger multiple times, the Z position would decrease more and more.

Piercin commented 9 months ago

Alright, soon ill have to fix that somehow. Even though i dont know exactly what the problem is.

Yhac10 commented 9 months ago

Maybe it could have something to do with the position of the wall

Yhac10 commented 9 months ago

Ok, after doing some testing, I found out the glitch happens when you touch a corner. It also seems to happen at any camera angle except for the default one. Here are the events for the camera controls (they're taken from a Gdevelop template) image

Piercin commented 9 months ago

I see, weird things might happen depending on the angle of the player. I just change the cameras angle by itself.

Yhac10 commented 9 months ago

Ok. Thanks for the advice.

Piercin commented 9 months ago

No problem, ima need to fix that glitch though. Since it shouldn't happen, so im gonna have to rework the events to make it better.