Simple polygon in cocos3d

I am trying to implement a simple 3d object on a cocos3d template.

Usually you get an object from a POD file or similar.

But I need to do this using the code in the application.

I tried CC3BoxNode with CC3BoundingBox. But that is not what I am looking for.

I need to create something similar to this. enter image description here

+4
source share
2 answers

Take a look at this example: Bigbot Smash City

+4
source

Have you tried this?

 CC3BoundingBox bounds = makeBounds (9.5, 5.0, 4.0, 0, 0, 0); CC3MeshNode * cube = [[CC3MeshNode alloc] init]; [cube populateAsSolidBox: ]; 

This is how the boxes are created in the project indicated above. I played with the project and extracted the code to draw a simple box:

Simple cube display with Cocos3D

Greetings

+4
source

All Articles