QJ.NET | Videos | Forums | iPhone | MMORPG | Nintendo DS | Wii | PlayStation 3 | PSP | Xbox 360 | PC | Downloads | Contact Us
Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact

QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides

Go Back   QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides > Developers Corner > PSP Development, Hacks, and Homebrew > PSP Development Forum
The above video goes away if you are a member and logged in, so log in now!

Trig, Spheres, and C

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, ...

Reply
 
LinkBack Thread Tools
Old 03-11-2007, 05:32 PM   #1
 
Durka Durka Mahn's Avatar
 
Join Date: Jul 2006
Posts: 413
Trader Feedback: 0
Default Trig, Spheres, and C

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();
Basically what I'm doing is spawning objects at the points on a circle, but now I'd like to do it on a sphere. If you can help me do this, please do!
-= Double Post =-
Anyone?

Last edited by Durka Durka Mahn; 03-11-2007 at 08:10 PM.. Reason: Automerged Doublepost
Durka Durka Mahn is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-12-2007, 02:49 AM   #2

Developer
 
yaustar's Avatar
 
Join Date: Jun 2006
Location: UK
Posts: 2,316
Trader Feedback: 0
Default

Start looking at rotation matrices.
yaustar is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
spheres , trig

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -8. The time now is 08:36 AM.



Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © 2009, QJ.NET. All Rights Reserved.
Contact Us