CreatePlane()

语法

Result = CreatePlane(#Mesh, TileSizeX, TileSizeZ, TileCountX, TileCountZ, TextureRepeatCountX, TextureRepeatCountZ)
概要
Create a new plane.

参数

#Mesh The number to identify the new mesh. #PB_Any can be used to auto-generate this number.
TileSizeX X size of the a single tile, in world unit, of the plane. A tile is the base component of a plane. A plane can be composed of lot of tiles to make it bigger and allow deformation.
TileSizeZ Z size of the a single tile, in world unit, of the plane. A tile is the base component of a plane. A plane can be composed of lot of tiles to make it bigger and allow deformation.
TileCountX Number of tiles used to create the X axis of the plane.
TileCountZ Number of tiles used to create the Z axis of the plane.
TextureRepeatCountX Number of time the texture applied to the plane will be repeated on the X axis. To apply the whole texture all over the X axis, just use 1.
TextureRepeatCountZ Number of time the texture applied to the plane will be repeated on the Z axis. To apply the whole texture all over the Z axis, just use 1.

返回值

Returns nonzero if the mesh was created successfully and zero if there was an error. If #PB_Any was used as the #Mesh parameter then the new generated number is returned on success.

参阅

FreeMesh(), CreateSphere(), CreateMesh(), CreateCube(), CreatePlane(), CreateLine3D()

已支持操作系统

所有

<- CreateMesh() - Mesh Index - CreateSphere() ->