I will probably just submit it to the AUM or Acknex resources so it dosent get lost.
Basically, just use c_trace aligned with your player to get the normal of the polygon directly beneath, then align your character to it. For convex surface, you really need to interpolate with something like vec_lerp, especially if the surface is low poly.
Not two, not one.
Re: Almost finished!!! Spherical Planet Gravity Test
[Re: Grafton]
#268021 05/27/0908:4505/27/0908:45
This is the part I have the problem with. I keep getting gimbal lock near the equator. And I have tried dozens of way around it but no luck. I'd like to see the code of one that works, so I can understand what Im doing stupid wrong. (BTW, I'm running around the inside of a sphere, not the outside)
"There is no fate but what WE make." - CEO Cyberdyne Systems Corp. A8.30.5 Commercial
Re: Almost finished!!! Spherical Planet Gravity Test
[Re: EvilSOB]
#268188 05/27/0921:5705/27/0921:57