• Advertisement
Sign in to follow this  

creating a cylinder?

This topic is 879 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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?

 

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement