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 Both sides next revision
modding:constructionbasics [2020/09/03 14:23]
yoshi [UpdateFn]
modding:constructionbasics [2020/09/06 13:33]
yoshi [UpdateFn]
Line 206: Line 206:
  
 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 
-''transf = constructionutil.rotateTransf(params, { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 })''.+''transf = constructionutil.rotateTransf(params, { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 })'' and make sure to import the ''constructionutil'' with ''local constructionutil = require "constructionutil"''.
 </div> </div>
  
modding/constructionbasics.txt · Last modified: 2021/07/04 01:11 by yoshi