I'm creating a game and I need to rotate this object. Ok i'll make my explanation simple, I have Object1 and Object2.. Let's say Object1 is at coordinates 0,0 (x,y) and Object 2 is at coordinates 10,10... Object 1 is currently facing south, Now I need object 1 to be facing Object 2 so I need the "degree" value from object 1 to object 2. Does anyone have a math formula for getting the degree? or an alternative solution can help.
it2051229
-3
Junior Poster in Training
Recommended Answers
Jump to PostI'm creating a game and I need to rotate this object. Ok i'll make my explanation simple, I have Object1 and Object2.. Let's say Object1 is at coordinates 0,0 (x,y) and Object 2 is at coordinates 10,10... Object 1 is currently facing south, Now I need object 1 to be …
Jump to PostLines do not have ends: although a line is often uniquely defined by two endpoints coincident with the line; a 'line' is correctly considered to be infinite in both directions.
Line segments are lines with ends... and a 'one ended line' is usually termed either a ray, or a …
All 5 Replies
MatEpp
11
Junior Poster in Training
mrnutty
761
Senior Poster
Alibeg
1
Junior Poster in Training
MattEvans
473
Veteran Poster
Team Colleague
Featured Poster
Ezzaral
commented:
Always good info in your posts.
+16
Alibeg
1
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.