Re: A Couple Questions From A Newb [message #54982 is a reply to message #54981] |
Mon, 09 November 2009 22:51 |
|
JohnDoe
Messages: 3007 Registered: October 2007
|
Retired
|
|
|
Player 4 is pretty much everything. Anything you add, with the exception of track nodes, can work as Player 4, so there's no reason to fret about it.
As for what it does or why it's important or what it means, honestly I have no clue.
RHSetForward and RHSetUp control the "flight dynamics" of the position, yaw, pitch and roll. Unless you want things on their sides, you can do with just yaw and have the scripts upright or upside-down by using this:
RHSetForwardX -1 to 1 - Sine.
RHSetForwardY -1 to 1 - Cosine.
RHSetForwardZ Always 0.
RHSetUpX Always 0.
RHSetUpY Always 0.
RHSetUpZ 1.0 for upright or -1.0 for upside-down.
For the sine and cosine, read this. To proof your results, (sine*sine)+(consine*cosine)=1. If it doesn't equal 1, or very close to it, you screwed it up.
If you don't feel like doing any math, you can have one be -1 or 1 and have the other be 0, this will have the script facing one of the four cardinal directions.
East -
RHSetForwardX 1.0
RHSetForwardY 0.0
North -
RHSetForwardX 0.0
RHSetForwardY 1.0
West -
RHSetForwardX -1.0
RHSetForwardY 0.0
South -
RHSetForwardX 0.0
RHSetForwardY -1.0
Alternatively you can use AE or CBox to do this for you.
|
|
|