cc.primitive Module

A basic module for creating vertex data for 3D objects. You can access this module by cc.primitive.

Index

Methods
  • box Create box vertex data
  • cone Create cone vertex data
  • cylinder Create cylinder vertex data
  • plane Create plane vertex data
  • quad Create quad vertex data
  • sphere Create sphere vertex data
  • torus Create torus vertex data
  • capsule Create capsule vertex data
  • polyhedron Create polyhedron vertex data

Details

Methods

box

Create box vertex data

meta description
Returns primitive.VertexData
Defined in cocos2d/core/3d/primitive/index.ts:25
Parameters
cone

Create cone vertex data

meta description
Returns primitive.VertexData
Defined in cocos2d/core/3d/primitive/index.ts:40
Parameters
cylinder

Create cylinder vertex data

meta description
Returns primitive.VertexData
Defined in cocos2d/core/3d/primitive/index.ts:55
Parameters
plane

Create plane vertex data

meta description
Returns primitive.VertexData
Defined in cocos2d/core/3d/primitive/index.ts:71
Parameters
quad

Create quad vertex data

meta description
Returns primitive.VertexData
Defined in cocos2d/core/3d/primitive/index.ts:84
sphere

Create sphere vertex data

meta description
Returns primitive.VertexData
Defined in cocos2d/core/3d/primitive/index.ts:92
Parameters
torus

Create torus vertex data

meta description
Returns primitive.VertexData
Defined in cocos2d/core/3d/primitive/index.ts:103
Parameters
capsule

Create capsule vertex data

meta description
Returns primitive.VertexData
Defined in cocos2d/core/3d/primitive/index.ts:117
Parameters
polyhedron

Create polyhedron vertex data

meta description
Returns primitive.VertexData
Defined in cocos2d/core/3d/primitive/index.ts:133
Parameters

results matching ""

    No results matching ""