[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4921: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3896)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4923: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3896)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4924: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3896)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4925: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3896)
TrainSimDev.com • View topic - Adding crew to footplate.

Adding crew to footplate.

Discuss anything related to Train Simulator from DoveTail that does not fit in one of the more specific categories.

Adding crew to footplate.

Postby RobertM » Sun Jan 13, 2019 9:02 pm

User avatar
RobertM
Full Time Fireman
 
Posts: 51
Images: 1
Joined: Sun Jan 25, 2015 10:12 pm
Has thanked: 2 times
Been thanked: 64 times

Re: Adding crew to footplate.

Postby AndiS » Sun Jan 13, 2019 9:38 pm

You are looking at a 4x4 matrix. It has a 3x3 matrix inside, that is the first three of these 16 values are first row of the 3x3 matrix. The fourth is the X translation (location), best keep that at 0 in this case. Then follow 3 values for the second row of the 3x3 matrix, followed by the Y translation. Next comes the last row of the 3x3 and the Z translation. This is followed by 0,0,0,1. The 1 would be an overall scaling, in case you were interested.

For the 3x3 matrix, https://en.wikipedia.org/wiki/Rotation_matrix is helpful. Alas, it is not so clear with regards to which variant you need. I would try it out with a 90 degree rotation first, because that has simple values for sin and cos. Once you managed to turn that man to the side by 90° instead of making him lie around in mid air, it will be easy to substitute you 0 and 1s for sophisticated values.

Note that if these values do not match, i.e., if you don't have the proper sin and cos for the same angle in all the fields involved, then the object gets skewed.
AndiS
Top Link Driver!
 
Posts: 636
Joined: Wed Apr 09, 2014 5:48 pm
Has thanked: 261 times
Been thanked: 302 times


Return to Train Simulator Mess Room

Who is online

Users browsing this forum: No registered users and 2 guests