小编use*_*446的帖子

SceneKit Transformation ScnMatrix4

ScnMatrix4是一个4x4矩阵.我的问题是矩阵行对应于位置(ScnVector3),旋转(ScnVector4),缩放(ScnVector3).第四排是空的吗?

编辑:我玩过SCN4matrix,我需要它来创建一个有多个楼梯的形状.

我需要有关Shapeswithshapes方法的矩阵的信息

  [SCNphysicsShape shapeWithShapes: (ElementArray*) :(transformArray)];

 ScnMatrix4=  | Xx  Xy Xy X|
              | Yx  Yy Yz Y|
              | Zx  Zy Zz Z|
              | Px  Py Pz W|

  Xx  Xy Xy = The X axis vector of the local coordinate system of the shape.
  Yx  Yy Yz = The y axis vector of the local coordinate system of the shape.
  Zx  Zy Zz = The z axis vector of the local coordinate system of the shape.

  Px = position in …
Run Code Online (Sandbox Code Playgroud)

scenekit

7
推荐指数
1
解决办法
6662
查看次数

标签 统计

scenekit ×1