Regular API function

simBuildMatrix / sim.buildMatrix

Description Builds a transformation matrix based on a position vector and Euler angles. See also the section about positions, orientations and transformations
C/C++
synopsis
simInt simBuildMatrix(const simFloat* position,const simFloat* eulerAngles,simFloat* matrix)
C/C++
parameters
position: pointer to 3 simFloat values
eulerAngles: pointer to 3 simFloat values
matrix: pointer to 12 simFloat values
C/C++
return value
-1 if operation was not successful
Lua
synopsis
float[12] matrix=sim.buildMatrix(float[3] position,float[3] eulerAngles)
Lua
parameters
position: table to 3 values
eulerAngles: table to 3 values
Lua
return values
matrix: table containing the transformation matrix
Python
synopsis
list matrix=sim.buildMatrix(list position,list eulerAngles)

<