Code archives/3D Graphics - Mesh/CreateJointMesh()
This code has been declared by its author to be Public Domain code.
Download source code
| |||||
This tiny little source code creates a joint mesh and return it's pointer. this function is used in my physic engine. It is no excitement but maybee a little help for noobies :) | |||||
Function CreateJointMesh() mesh = CreatePivot() c = CreateSphere() EntityColor c, 60, 60, 60 EntityParent c, mesh c = CreateCube() ScaleMesh c, 1.5, .15, .15 EntityColor c, 255, 0, 0 EntityParent c, mesh c = CreateCube() ScaleMesh c, .15, 1.5, .15 EntityColor c, 0, 255, 0 EntityParent c, mesh c = CreateCube() ScaleMesh c, .15, .15, 1.5 EntityColor c, 0, 0, 255 EntityParent c, mesh Return mesh End Function |
Comments
None.
Code Archives Forum