Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

Placeable rotation in .git file?

Page: 1 of 1
 SithRevan
08-26-2006, 10:51 PM
#1
I don't know if this has already been asked but I need help with the rotaion (a.k.a the way it faces) of a placeable in the .git file, if you guys could help me with that I would be extremely greatful thanks!:D

P.S.:Also I know you guys are probley going to ask yourself why am I putting placeables into the .git file? Well I am making an new module for a project that I am doing so that is why. I just wanted to give you guys a little heads up on that, so thanks for any help you can give me.
 Pavlos
08-27-2006, 6:04 AM
#2
Use Darth333's whereami armband to calculate the bearing from your orientation in the module. Then you should be able to input that into the .git pretty easily.

Failing this... you can take a note of your relationship to north (In angle format) and open up Fred's module editor on any map and position a placeable to that direction, before looking at the .git dump and copying the bearing across to your true .git.

Failing this... use trial and error.
 SithRevan
08-27-2006, 5:01 PM
#3
Well I have tried to use the whereami armband to calcuate the bearing, but when I am doing it next to a wall or barrier I can't turn around and face the other way so that my object (a.k.a: a piller) will face that way. The module editor might work but the placeable are positioned in a funny way so I might have problems with that. I guess you are probley right with the trial and error thing because that is about the only for sure way!:D So thanks for the help pavlos I will try a few of the things that you have said to try.
 Darth333
08-28-2006, 10:52 AM
#4
Well I have tried to use the whereami armband to calcuate the bearing, but when I am doing it next to a wall or barrier I can't turn around and face the other way so that my object (a.k.a: a piller) will face that way.
Can't you just move away from the wall? As long as you are facing in the same direction as your placeable, you can get the orientation/bearing.

Otherwise, if you happen to already have the orientation from another source, then the answer is in the armband source code:

//If the orientation is less than 180°:
Orientation * (PI/180.0);
//If the orientation is more than 180°:
Orientation * (PI/180.0)-(2*PI);
 SithRevan
08-28-2006, 1:12 PM
#5
You know what I never really thought of that, and now I feel REALLY dumb. Thanks for the advice D3!:D
Page: 1 of 1