Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[Please close, solved] Where have I gone wrong?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Game Development
View previous topic :: View next topic  
Author Message
Montycarlo
Expert Cheater
Reputation: 0

Joined: 10 Jan 2007
Posts: 124

PostPosted: Tue Jun 23, 2009 1:49 am    Post subject: [Please close, solved] Where have I gone wrong? Reply with quote

Hey All,

My maths algorithm to find the vector components that offset 3D/2D points (On a Cube/square) with rotation doesn't seem to work ]:

Can someone please point out where I'm going wrong?

Picture here.
Theta 1 (In red, bottom right) is the Zi rotation of the object. I've only shown one quadrant because the diagram before just looked over-complicated.
What happens when I punch in my formulas.

Any help is greatly appreciated.


Cheers,

-Montycarlo


Last edited by Montycarlo on Wed Jun 24, 2009 4:47 am; edited 1 time in total
Back to top
View user's profile Send private message
Flash_Impact
Advanced Cheater
Reputation: 0

Joined: 10 Mar 2009
Posts: 96
Location: running in lightyears

PostPosted: Tue Jun 23, 2009 7:54 am    Post subject: Reply with quote

sorry but i hate math..cant help you there
_________________

"Rage leads to war. War leads to rage. Is'nt it magical?"
Back to top
View user's profile Send private message Yahoo Messenger
killersamurai
Expert Cheater
Reputation: 0

Joined: 10 Sep 2007
Posts: 197
Location: Colorado

PostPosted: Wed Jun 24, 2009 2:17 am    Post subject: Reply with quote

I'm not quite sure what you want to achieve. I've uploaded an example of what I'm guessing what your desired result is. It seems like you are drawing lines to make the square, so the program uses lines for making the square as well. It's done in c#, but what I've done can be used with flash. If this is what you want, I'll post an explanation on how I did it or you can use reflector.
Back to top
View user's profile Send private message
Montycarlo
Expert Cheater
Reputation: 0

Joined: 10 Jan 2007
Posts: 124

PostPosted: Wed Jun 24, 2009 4:46 am    Post subject: Reply with quote

killersamurai wrote:
I'm not quite sure what you want to achieve. I've uploaded an example of what I'm guessing what your desired result is. It seems like you are drawing lines to make the square, so the program uses lines for making the square as well. It's done in c#, but what I've done can be used with flash. If this is what you want, I'll post an explanation on how I did it or you can use reflector.
Thanks, but I figured it out today, that isn't exactly what I was trying to do but it was similar. I used a different method and it worked haha Razz


--
Edit: Just punched it in and it doesn't work. The same problem occurs, both equations actually return the same value. The maths is right, I checked with my teachers, it's something I'm doing wrong with the position operators...

2nd edit: There was nothing wrong with any of my equations I forgot to take into account flash's degrees range. How silly.
Back to top
View user's profile Send private message
gogodr
I post too much
Reputation: 125

Joined: 19 Dec 2006
Posts: 2041

PostPosted: Wed Jun 24, 2009 11:26 am    Post subject: Reply with quote

nothing wrong with the equations? are you sure?
they look wrong for me, let me get my tablet and redo the graphics

if I got it right it should be like this

Back to top
View user's profile Send private message MSN Messenger
Montycarlo
Expert Cheater
Reputation: 0

Joined: 10 Jan 2007
Posts: 124

PostPosted: Wed Jun 24, 2009 4:10 pm    Post subject: Reply with quote

gogodr wrote:
nothing wrong with the equations? are you sure?
they look wrong for me, let me get my tablet and redo the graphics

if I got it right it should be like this

Answer me this, why do both of mine return the same results and work then?
Back to top
View user's profile Send private message
gogodr
I post too much
Reputation: 125

Joined: 19 Dec 2006
Posts: 2041

PostPosted: Wed Jun 24, 2009 4:23 pm    Post subject: Reply with quote

no idea but >.> I just see a bunch of unnecessary equations mine is a little more simple isn't it? having a simple code is better for debugging.
anyways if it works and you are satisfied with yours ... use yours since you already finished it
there is a possibility that maybe I'm misunderstanding your graphics because of the lack of order xP
Back to top
View user's profile Send private message MSN Messenger
Montycarlo
Expert Cheater
Reputation: 0

Joined: 10 Jan 2007
Posts: 124

PostPosted: Thu Jun 25, 2009 12:09 am    Post subject: Reply with quote

gogodr wrote:
no idea but >.> I just see a bunch of unnecessary equations mine is a little more simple isn't it? anyways if it works and you are satisfied with yours ... use yours since you already finished it
That's only one of mine. The second was is even simpler than yours haha. Thank-you anyway
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Game Development All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites