Jump to content
  • Advertisement
Sign in to follow this  
Mr N1nja

creating a cylinder?

This topic is 1054 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 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
Unless you can tell us what library/engine/framework this is using, I doubt anyone can help you...

Share this post

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

  • Advertisement

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!