If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
804
Posts: 73 Joined: Thu Nov 10, 2011 7:07 pm
Post
by 804 » Thu Nov 10, 2011 7:23 pm
I'm going to program a minecraft like terrain, but I have a simple problem
I don't know how to get the x-position of my objects (blocks).
I tried this,
but it only returns the 3df position-vector.
By the way, what do you think about these photos:
http://www.darkgdk.de/index.php?page=At ... 1e87c464c1
http://www.darkgdk.de/index.php?page=At ... 165974cae3
(the photo shows an chunk of blocks created by my simple world generator)
Sorry for my bad english, but I'm an german
Last edited by
804 on Thu Nov 10, 2011 8:37 pm, edited 1 time in total.
serengeor
Posts: 1712 Joined: Tue Jan 13, 2009 7:34 pm
Location: Lithuania
Post
by serengeor » Thu Nov 10, 2011 7:31 pm
learn a bit of c++ and oop and problems like these will be easy to solve.
Working on game:
Marrbles (Currently stopped).
804
Posts: 73 Joined: Thu Nov 10, 2011 7:07 pm
Post
by 804 » Thu Nov 10, 2011 7:36 pm
I learned c++ (and OOP) one year ago, but...
serengeor
Posts: 1712 Joined: Tue Jan 13, 2009 7:34 pm
Location: Lithuania
Post
by serengeor » Thu Nov 10, 2011 7:47 pm
804 wrote: I learned c++ (and OOP) one year ago, but...
but what? Maybe you have problems opening API page and finding functions for what you need?
if so:
http://irrlicht.sourceforge.net/docu/namespaces.html
find the scene node interface and find the function that returns you position, press on the return value and it will open up documentation for that value type. Or just find vector class in documentation.
Working on game:
Marrbles (Currently stopped).
804
Posts: 73 Joined: Thu Nov 10, 2011 7:07 pm
Post
by 804 » Thu Nov 10, 2011 7:52 pm
Just say which function I should use
PS: What do you think about the images?
804
Posts: 73 Joined: Thu Nov 10, 2011 7:07 pm
Post
by 804 » Thu Nov 10, 2011 7:59 pm
serengeor wrote: since pos values are public members.
Sorry, I don't knew this.
804
Posts: 73 Joined: Thu Nov 10, 2011 7:07 pm
Post
by 804 » Thu Nov 10, 2011 8:09 pm
whats the name of these variables ?
serengeor
Posts: 1712 Joined: Tue Jan 13, 2009 7:34 pm
Location: Lithuania
Post
by serengeor » Thu Nov 10, 2011 8:17 pm
Just look at the API doc, It's going to be a nightmare for you if you can't read doc of api of the library that you're using to develop you project with..
Working on game:
Marrbles (Currently stopped).
CuteAlien
Admin
Posts: 9734 Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:
Post
by CuteAlien » Thu Nov 10, 2011 8:22 pm
Sorry, you can't post images in your first post (protecting our users from occasional spam-images).
But serengeor gave you already the correct link for vertex documentation - check the Public Attributes section until you find some variable which looks like it could stand for the 'x' part of a vector ;-)
804
Posts: 73 Joined: Thu Nov 10, 2011 7:07 pm
Post
by 804 » Thu Nov 10, 2011 8:35 pm
But how to get the position of my object?
PS: I posted the links to the images in my first reply.
Adler1337
Posts: 471 Joined: Sat Aug 09, 2008 6:10 pm
Location: In your base.
Post
by Adler1337 » Thu Nov 10, 2011 9:17 pm
node->getPosition().X;
PS: Still can't see your images.
multum in parvo
804
Posts: 73 Joined: Thu Nov 10, 2011 7:07 pm
Post
by 804 » Fri Nov 11, 2011 5:48 am
804
Posts: 73 Joined: Thu Nov 10, 2011 7:07 pm
Post
by 804 » Fri Nov 11, 2011 5:49 am
Can you See the links!
mongoose7
Posts: 1227 Joined: Wed Apr 06, 2011 12:13 pm
Post
by mongoose7 » Fri Nov 11, 2011 7:34 am
Der Zutritt zu dieser Seite ist Ihnen leider verwehrt. Sie besitzen nicht die notwendigen Zugriffsrechte, um diese Seite aufrufen zu können.
I think you have to have a login?