Page 1 of 1

Give subentities it's own modelscale variable

Posted: Thu Jan 06, 2022 1:52 pm
by cbr
In shipdata.plist one can give a model a "model_scale_factor" = 0.5; which nicely scales/moves everything( subents ) to it ( 0.5x ) position.

But when the subentities are models the model_scale value from the original subentity model is ignored.

Code: Select all

			{
			subentity_key = "python";
			type = "standard";
			orientation = ( -0.7071, 0.0, 0.7071, 0.0);
			"model_scale_factor" = 2.0;
			position = ( 126.992, 23.673, 760 );
			}
this subentity scale factor is ignored

Code: Select all

   "python2" = {
	like_ship = "python";	
    "model_scale_factor" = 2;
    }
this scaled python2 also is ignored as (enlarged) subentity

trunk 1.91

Re: Give subentities it's own modelscale variable

Posted: Thu Jan 06, 2022 3:21 pm
by montana05
cbr wrote: Thu Jan 06, 2022 1:52 pm
In shipdata.plist one can give a model a "model_scale_factor" = 0.5; which nicely scales/moves everything( subents ) to it ( 0.5x ) position.

But when the subentities are models the model_scale value from the original subentity model is ignored.

Code: Select all

			{
			subentity_key = "python";
			type = "standard";
			orientation = ( -0.7071, 0.0, 0.7071, 0.0);
			"model_scale_factor" = 2.0;
			position = ( 126.992, 23.673, 760 );
			}
this subentity scale factor is ignored

Code: Select all

   "python2" = {
	like_ship = "python";	
    "model_scale_factor" = 2;
    }
this scaled python2 also is ignored as (enlarged) subentity

trunk 1.91
Scaling is a bit tricky, while all subentities are automatically scaled with the mother a sub with a different ratio to the mother will result in the original size of the sub.