public static SCNPhysicsShape Create(SCNGeometry geometry,
                                      SCNPhysicsShapeType?shapeType = null,
                                      bool?keepAsCompound           = null,
                                      SCNVector3?scale = null)
 {
     return(Create(geometry, new SCNPhysicsShapeOptions {
         ShapeType = shapeType,
         KeepAsCompound = keepAsCompound,
         Scale = scale
     }.ToDictionary()));
 }
示例#2
0
 public static SCNSkinner Create(SCNGeometry baseGeometry,
                                 SCNNode [] bones, SCNMatrix4 [] boneInverseBindTransforms,
                                 SCNGeometrySource boneWeights, SCNGeometrySource boneIndices)
 {
     return(_Create(
                baseGeometry,
                bones,
                ToNSArray(boneInverseBindTransforms),
                boneWeights,
                boneIndices
                ));
 }
 public static SCNPhysicsShape Create(SCNGeometry geometry, SCNPhysicsShapeOptions?options)
 {
     return(Create(geometry, options?.ToDictionary()));
 }