I made a little diagram so that people can maybe better understand the trigonomety involved...
http://static.flickr.com/39/79818759_5fcb1c4d5b_o.jpg
of course in the code the roation is given in degrees and you have to convert those degrees to radians in order to take the sin or cos of them. to ...
Search found 10 matches
- Sat Dec 31, 2005 4:40 pm
- Forum: FAQs, Tutorials, Howtos, and external tool lists
- Topic: Easiest 3rd Person Camera
- Replies: 7
- Views: 6465
- Fri Dec 30, 2005 3:39 pm
- Forum: Beginners Help
- Topic: "simple" World rotation
- Replies: 6
- Views: 731
- Fri Dec 30, 2005 3:36 pm
- Forum: FAQs, Tutorials, Howtos, and external tool lists
- Topic: Easiest 3rd Person Camera
- Replies: 7
- Views: 6465
- Fri Dec 30, 2005 3:29 pm
- Forum: Beginners Help
- Topic: "simple" World rotation
- Replies: 6
- Views: 731
- Fri Dec 30, 2005 3:00 pm
- Forum: FAQs, Tutorials, Howtos, and external tool lists
- Topic: Easiest 3rd Person Camera
- Replies: 7
- Views: 6465
Easiest 3rd Person Camera
I decided that making the camera a child of the playernode was not the best idea because it restricts what you can do with the camera. Keeping that in mind I wrote a little bit of code to make the camera follow a character, position itselft and rotate appropriately based on the platernodes position ...
- Fri Dec 30, 2005 2:29 pm
- Forum: Beginners Help
- Topic: character rotation
- Replies: 5
- Views: 771
- Fri Dec 30, 2005 12:05 am
- Forum: Beginners Help
- Topic: object getting stuck on slope
- Replies: 4
- Views: 391
- Thu Dec 29, 2005 6:02 pm
- Forum: Beginners Help
- Topic: object getting stuck on slope
- Replies: 4
- Views: 391
- Thu Dec 29, 2005 3:18 pm
- Forum: Beginners Help
- Topic: Simultaneous Key Events
- Replies: 1
- Views: 389
- Thu Dec 29, 2005 2:53 pm
- Forum: Beginners Help
- Topic: Simultaneous Key Events
- Replies: 1
- Views: 389
Simultaneous Key Events
I want to be able to handle multiple key presses at the same time... for example pressing up and right yields the code for up to run as well as the code for right. As my code stands now it will only handle one key press and not the other...
class KeyEventReceiver : public IEventReceiver
{
public ...
class KeyEventReceiver : public IEventReceiver
{
public ...