Raised This Month: $32 Target: $400
 8% 

Rotate point around vector? 3D


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 10-26-2014 , 08:29   Rotate point around vector? 3D
Reply With Quote #1

I have 2 points origins(P1 and P2) and a third point(P3) that is at distance N from P2. Now what i want to make is to rotate P3 around P2 at X angles. Made a lot of researches and searches but didn't understand so much because of my lack of maths ;s if anyone around knows an answer then thank you.

Some useful info? http://ami.ektf.hu/uploads/papers/fi...om175to186.pdf

Seems like i need rotation matrix / Rodrigues fomula, but i can't find any c/c++ translated functions and practical example to make this work.

Here i have some code that i've found but it doesn't appear to work as intended...

Spoiler


EDIT: A more simple version? http://www.engr.uvic.ca/~mech410/lec...RotateArbi.pdf
Attached Thumbnails
Click image for larger version

Name:	lol.png
Views:	167
Size:	5.7 KB
ID:	139155  
__________________
Still...lovin' . Connor noob! Hello

Last edited by Alka; 10-26-2014 at 14:13.
Alka is offline
Reply



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

Forum Jump


All times are GMT -4. The time now is 14:52.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode