Advertisement Jump to content
Sign in to follow this  
Mr N1nja

creating a cylinder?

This topic is 1150 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
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!