The Cube cordinates

Everything related to 3D programming
Realizimo
User
User
Posts: 74
Joined: Sun Nov 25, 2012 5:27 pm
Location: Sweden

The Cube cordinates

Post by Realizimo »

Can I get the cube corner cordinates, when cube is done with CreateCube()
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: The Cube cordinates

Post by IdeasVacuum »

Well, since you are creating it, you should 'know' what the ordinates will be. If the cube gets moved and you don't want to track it, then how about using EntityBoundingBox() to get the corners?
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
Realizimo
User
User
Posts: 74
Joined: Sun Nov 25, 2012 5:27 pm
Location: Sweden

Re: The Cube cordinates

Post by Realizimo »

Sorry, but I dont get the xyz cordinates for each corner with EntityBoundingBox or ?

I'm thinking about the EntityBoneX/Y/Z rutin , but I don't get the "bone name" for CreateCube. any suggestions about the "bone name".
IdeasVacuum
Always Here
Always Here
Posts: 6426
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: The Cube cordinates

Post by IdeasVacuum »

EntityBoundingBox should give enough info to derive the corner coordinates - you do have to do somethings yourself :)
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
User avatar
Comtois
Addict
Addict
Posts: 1432
Joined: Tue Aug 19, 2003 11:36 am
Location: Doubs - France

Re: The Cube cordinates

Post by Comtois »

Realizimo wrote:Can I get the cube corner cordinates, when cube is done with CreateCube()
Look at ConvertLocalToWorldPosition.pb example
Please correct my english
http://purebasic.developpez.com/
Post Reply