tinyc.games bugs

tinyc.games bugs

SuperJer
Websiteman

2005 Mar 20 • 6629
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?
 
 
 
Jul 28 at 10:42 PDT
kleskby

2023 Jul 13 • 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
​ด้้้้้็็็็็้้้้้็็็็็้้้้้้้้็็็็็้้้้้็็็็็้้้้้้้้็็็็็้้้้้็็็็็้้้้้้้้็ฏ๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎๎ปี้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้้
 
 
 
Jul 29 at 05:05 PDT — Ed. Jul 29 at 05:12 PDT
SuperJer
Websiteman

2005 Mar 20 • 6629
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.
 
 
 
Jul 30 at 20:44 PDT
kleskby

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

2005 Mar 20 • 6629
k
 
 
 
Oct 9 at 13:55 PDT
Page 1 [2]