Mins: Difference between revisions

From The DarkMod Wiki
Jump to navigationJump to search
(add)
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
The ''mins'' spawnarg is used together with the [[maxs]] spawnarg to define a [[CM|collision model]] for entities when they do not have a CM in either the model file or a separate .cm file.
The ''mins'' spawnarg is used together with the [[maxs]] spawnarg to define a [[CM|collision model]] for entities when they do not have a CM in either the model file or a separate .cm file.


This spawnarg is '''only''' used when the spawnarg '''noclipmodel''' is set to zero.
''mins'' takes three XYZ values to position the 'near bottom left' corner (facing towards positive X of entity alignment) as an offset from the entity origin. Must be used with, and values must be lower than, those in [[maxs]].
 
Example: mins 4 -6 -4 (sets bottom corner coord to +4 -6 -4 offset from the origin.
 
 
'''Notes:'''<br>
The spawnarg '''noclipmodel''' must remain at the default 0 (zero) or this ''mins'' spawnarg is ineffective.


Making a dedicated collision model should always be prefered over using this method.
Making a dedicated collision model should always be prefered over using this method.


See [[noclipmodel]] for further information and examples.
 


{{spawnargs}}
{{spawnargs}}

Latest revision as of 19:24, 18 February 2009

The mins spawnarg is used together with the maxs spawnarg to define a collision model for entities when they do not have a CM in either the model file or a separate .cm file.

mins takes three XYZ values to position the 'near bottom left' corner (facing towards positive X of entity alignment) as an offset from the entity origin. Must be used with, and values must be lower than, those in maxs.

Example: mins 4 -6 -4 (sets bottom corner coord to +4 -6 -4 offset from the origin.


Notes:
The spawnarg noclipmodel must remain at the default 0 (zero) or this mins spawnarg is ineffective.

Making a dedicated collision model should always be prefered over using this method.