creating a cylinder?

Started by
0 comments, last by Brain 8 years, 4 months ago
for (int i = 5; i < 7; i++)
{
GeometryActor* base = new GeometryActor();
base->SetColor(Vector4f(0, 0.25, 0.25, 1));
base->DrawCylinder(Vector3f(0.0f,-12.0f,0.0f), Vector3f(0.0f, 12.0f, 0.0f), 12, 12);
base->UseSolidMaterial();
}
//base 1
this->_objects[5]->GetNode()->Position() = Vector3f(0.0f, 0.0f, -200.0f);
this->_objects[5]->GetNode()->Scale() = Vector3f(0.5f,0.5f, 1.0f);
this->_objects[5]->GetNode()->Rotation().RotationZYX(Vector3f(0.0f, 0.0f, 0.0f));
why does this only create half of the cylinder, can anyone help please?

Advertisement
Unless you can tell us what library/engine/framework this is using, I doubt anyone can help you...

This topic is closed to new replies.

Advertisement