User Tools

Site Tools

Urban Games

modding:constructionbasics

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
modding:constructionbasics [2020/06/20 11:01]
yoshi ↷ Page name changed from modding:constructions to modding:constructionbasics
modding:constructionbasics [2020/07/07 21:39]
yoshi
Line 203: Line 203:
  
 <div tip 100%> <div tip 100%>
-There are two additional properties ''params.paramX'' and ''params.paramY'' that are controlled by keyboard keys. Per default the keys are <span key>O</span>/<span key>P</span> and <span key>Ü</span>/<span key>+</span>. They each have steps of 2π/32 so that 32 steps can be mapped to a full rotation around an axis.+There are two additional properties ''params.paramX'' and ''params.paramY'' that are controlled by keyboard keys. Per default the keys are <span key>O</span>/<span key>P</span> and <span key>Ü</span>/<span key>+</span> or <span key>[</span>/<span key>]</span> (depending on keyboard layout). They each have steps of 2π/32 so that 32 steps can be mapped to a full rotation around an axis.
  
 To support rotation around all three axis, encapsulate the transformation matrix of the model with the ''rotateTransf'' function  To support rotation around all three axis, encapsulate the transformation matrix of the model with the ''rotateTransf'' function 
Line 303: Line 303:
   * ''left'' is set to false, if the object should be placed on the right side of the edge. ''true'' leads to objects on the left side.   * ''left'' is set to false, if the object should be placed on the right side of the edge. ''true'' leads to objects on the left side.
   * ''model'' is a reference to a ''.mdl'' file relative to ''res/models/model''.   * ''model'' is a reference to a ''.mdl'' file relative to ''res/models/model''.
 +
 +Please be aware that it is not possible to add more than one object per edge by script.
  
  
modding/constructionbasics.txt · Last modified: 2021/07/04 01:11 by yoshi