Advanced Question Attachment point Rotations

hutchison66

Donator
Donator
Joined
Apr 10, 2010
Messages
204
Reaction score
5
Points
18
Location
Spain
Hi I have real problems rotating attachment points, say like rotating an attachment point on a module 30 degrees.
I have a basic idea how they work
ie the number has to add up to 1 I do it by trial and error starting from another attachment point from another config file
but what is the easiest way to get the correct numbers
I've seen some vector normilizer apps on Android
and the one that is on the Hanger doesn't work in windows 8
if any one knows how to get it working
or the correct type of equation to work with that would be helpful or a great app

any help would be great
david
 

jedidia

shoemaker without legs
Addon Developer
Joined
Mar 19, 2008
Messages
10,863
Reaction score
2,127
Points
203
Location
between the planets
but what is the easiest way to get the correct numbers

Your problem probably isn't normalisation, it's rotating the points by 30 degrees. rotating a point in 3-dimensional space is... tricky. Have you ever heard of a rotation matrix?
 

Donamy

Addon Developer
Addon Developer
Donator
Beta Tester
Joined
Oct 16, 2007
Messages
6,906
Reaction score
201
Points
138
Location
Cape
AC3D will do it for you.
 

gattispilot

Addon Developer
Addon Developer
Joined
Oct 17, 2007
Messages
8,690
Reaction score
2,670
Points
203
Location
Dallas, TX
Well I have done it this way. Get the sin and cosine of the degrees and put them in meshwizard and it will visually show you the vector and normalize
 

hutchison66

Donator
Donator
Joined
Apr 10, 2010
Messages
204
Reaction score
5
Points
18
Location
Spain
Ac3d

AC3D will do it for you.

didn't know that Don that would be really hardy
the thirty degrees was just an example and I do know about rotational matrix's but can't get my head around it-- but was wondering if there was something I could put a points location in then the angle and it would give me the answer
but if AC3D can do it that would be great

Thanks
 

Donamy

Addon Developer
Addon Developer
Donator
Beta Tester
Joined
Oct 16, 2007
Messages
6,906
Reaction score
201
Points
138
Location
Cape
It does.
1. Find the tcl folder and copy and paste the text below where indicated into the AC3D.tcl file.

2. Open a mesh, in vertex, select 2 vertices. Select rotate mode, click on C for custom axis, then set axis. You will see the axis vector in the bottom center of the screen. It also places them in clipboard memory, so you can paste them directly into the .ini file.
 

Attachments

  • 2displayvectors.txt
    680 bytes · Views: 13

hutchison66

Donator
Donator
Joined
Apr 10, 2010
Messages
204
Reaction score
5
Points
18
Location
Spain
AC3D

Thanks Don,
that worked great didn't take to long to getting going,
helps a lot thank you very much for the help
David:tiphat:
 
Top