![]() |
| Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact |
| ||||||
This is a discussion on Trig, Spheres, and C within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; I'm working on a cheat for Vice City Stories, which will spawn a sphere.. I already have a circle working, ...
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 |
![]() |
I'm working on a cheat for Vice City Stories, which will spawn a sphere.. I already have a circle working, but I don't have the knowledge of how to work it on a third dimension. Here is a picture of what I'm making:
![]() And my code so far.. Code:
#cheat The Perfect Circle Maker
for( rot = 0; rot < 360; rot += 3.6 )
{
moveto(getfloat(pplayer+0x30) + cos(rot) * 10, getfloat(pplayer+0x34) + sin(rot) * 10,
getfloat(pplayer+0x38)); object(0x1CA4, 0, 0, -rot + 90);
}
off();
-= Double Post =- Anyone? Last edited by Durka Durka Mahn; 03-11-2007 at 08:10 PM.. Reason: Automerged Doublepost |
|
|
|
|
|
#2 |
![]() ![]() Developer
|
Start looking at rotation matrices.
__________________
[Blog] [Portfolio] [Homebrew Illuminati - Serious Homebrew Development Forums] [I want to make Homebrew FAQ] [How I broke into the Games Industry] [Programming Book List] [Programming Article List] |
|
|
|
![]() |
| Tags |
| spheres , trig |
| Thread Tools | |
|
|