Game Development Reference
In-Depth Information
In this section, you will use Scene Kit geometries to create some of the obstacles. There
are several geometries that are provided by Scene Kit. When you create any of these geo-
metries, the center is around its local coordinate system. In other words, if you create an
SCNBox with the width, length, and height of 20.0, these will be along the x-, y-, and z-
axes at 10.0 and -10.0.
Here is a list of the Scene Kit primitive geometries types:
SCNBox : This is a basic six-sided polyhedron with rectangles for
faces. You will also be able to create an SCNMaterial for each of these
sides if you want.
SCNCapsule : This is a cylinder that is capped at both ends by a
hemisphere. You can define the hemisphere radius and the height.
SCNCone : This is a geometric feature that has a circular base,
and its sides taper at the center of the circle. You create an SCNCone by giv-
ing it a radius for the bottom and a height for the sides.
SCNCylinder : To create an SCNCylinder , you give it a ra-
dius and a height.
SCNFloor : This is an infinitely expanded plane along the x-
and z-axes.
SCNPlane : This is a one-sided surface that expands along the x-
and y-axes.
Search WWH ::




Custom Search