Hi! Welcome to the forum for Platinum Arts Sandbox Free 3D Game Maker. I currently have the forums locked as I am attempting to properly update them.

In the meantime please join the new Discord Server!

If you have any questions please e-mail me through the Platinum Arts website.

How do I rotate a mapmodel on its Y-axis?

Having issues not related to a specific Sandbox game mode? Get help here!
Please also read the rules for support when posting support requests.
Failure to comply with the forum rules may result in your topic being locked without resolution.
Locked
User avatar
Creatorrookie
Member
Member
Posts: 66
Joined: September 22nd, 2009, 8:35 pm
Name: John

How do I rotate a mapmodel on its Y-axis?

Post by Creatorrookie »

How do I rotate a mapmodel on its Y-axis?
I already know how to rotate a mapmodel on its X-axis.
The rookie in sandbox... :)
offtools
Member
Member
Posts: 125
Joined: June 23rd, 2009, 2:10 pm
Name: offtools
IRC Username: offtools

Re: How do I rotate a mapmodel on its Y-axis?

Post by offtools »

the cube2 engine does not support this.
sorry, i was wrong. here are the commands for setting pitch, yaw, scale and spin of an model:

Code: Select all

mdlscale S
Scale the model's size to be S percent of its default size.

Code: Select all

mdltrans X Y Z
Translate the model's center by (X, Y, Z), where X/Y/Z are in model units (may use floating point).

Code: Select all

mdlyaw Y
Offsets the model's yaw by Y degrees. point).

Code: Select all

mdlpitch P
Offsets the model's pitch by P degrees.

Code: Select all

mdlspin Y
Simple spin animation that yaws the model by Y degrees per second.

these commands are to be set in the model cfg file. sorry for the confusion.

offtools.
Locked