tinyc.games bugs

tinyc.games bugs

SuperJer
Websiteman

2005 Mar 21 • 6666
It looks like maybe you're using over-correcting collisions? Are you moving the player farther away from the wall than the collision point to avoid sticking and stuff?
 
 
 
2023 Jul 28 at 17:42 UTC
kleskby

2023 Jul 14 • 20
SuperJer said:
It looks like maybe you're using over-correcting collisions? Are you moving the player farther away from the wall than the collision point to avoid sticking and stuff?


It is a total mess. It either not pushing the controller or pushing it wrong. I don't really understand math behind it and I think I have an mistake in my friction logic.
https://github.com/KleskBY/COOM-Engine/blob/main/GameEngine/PlayerController.cpp
​ด้้้้้็็็็็้้้้้็็็็็้้้้้้้้็็็็็้้้้้็็็็็้้้้้้้้็็็็็้้้้้็็็็็้้้้้้้้็ฏ๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎ปี้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้
 
 
 
2023 Jul 29 at 12:05 UTC — Ed. 2023 Jul 29 at 12:12 UTC
SuperJer
Websiteman

2005 Mar 21 • 6666
It looks like you're making a collision normal vector from the difference between the object center and the player center. This is going to mean collisions act differently near the corner of a polygon vs near the center. That's not right. It should act the same anywhere you hit the same polygon. So you might want to instead use something like the normal of the surface that was hit.

Also it looks like you're moving the player back to a last-known-good position on collision. For more fluid movement you usually want to do something like truncate the movement vector so that you "slide along" the wall with the component of the velocity in that direction. Different games handle this differently but usually it's something that fits that description. For example in Portal 2 I noticed you get a speed boost from this, which is weird. I think it's overcompensating truncating your velocity and then accidentally giving you a boost along the wall.

Point is, even Valve doesn't get it right apparently, so don't sweat it too much.
 
 
 
2023 Jul 31 at 03:44 UTC
kleskby

2023 Jul 14 • 20
Do smth with spam bots on forum or I go play Peru's online casino
​ด้้้้้็็็็็้้้้้็็็็็้้้้้้้้็็็็็้้้้้็็็็็้้้้้้้้็็็็็้้้้้็็็็็้้้้้้้้็ฏ๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎ปี้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้
 
 
 
2023 Oct 2 at 14:16 UTC
SuperJer
Websiteman

2005 Mar 21 • 6666
k
 
 
 
2023 Oct 9 at 20:55 UTC
Page 1 [2]