Search found 12 matches

by kaka
Sat Apr 21, 2012 9:52 pm
Forum: Beginners Help
Topic: Moving 3d object with camera
Replies: 14
Views: 967

Re: Moving 3d object with camera

i've tried that and what happens is the box always goes to the left hand side of the camera and stays there even if i try to change the position of the box. i also cant let go of the box when i release the "e" button. i put in this if statement else if(!r.isKeyDown(irr::KEY_KEY_E)){       ...
by kaka
Fri Apr 20, 2012 5:11 pm
Forum: Beginners Help
Topic: Moving 3d object with camera
Replies: 14
Views: 967

Re: Moving 3d object with camera

hybrid wrote:Such as positioning the object as a child and having it automatically moved along? Please check the examples (the q3 viewer example with the gun), if that's the right one.
sorry but what example are you talking about?
by kaka
Thu Apr 19, 2012 12:33 pm
Forum: Beginners Help
Topic: Moving 3d object with camera
Replies: 14
Views: 967

Re: Moving 3d object with camera

Rusk wrote:It sounds like all you want to do is to have the object float in front of you, and move along as you move? Like you are carrying it?
yes!!!!
by kaka
Wed Apr 18, 2012 11:48 pm
Forum: Beginners Help
Topic: Moving 3d object with camera
Replies: 14
Views: 967

Re: Moving 3d object with camera

Thanks anyway. i sort of managed to make it work. I can move objects..sort of. its good enough so its okay. Thanks for your help mate

BTW please go and play portal :lol:
by kaka
Sun Apr 15, 2012 11:22 pm
Forum: Beginners Help
Topic: Moving 3d object with camera
Replies: 14
Views: 967

Re: Moving 3d object with camera

i know only the basics so not a lot lol ok so tried what you said. we are close but i get really weird results. so first i did it your way   if(r.isKeyDown(irr::KEY_KEY_E)){                         if(length <= 40.f){                                 std::cout<<"can pick up"<<std::endl;    ...
by kaka
Sun Apr 15, 2012 8:13 pm
Forum: Beginners Help
Topic: Moving 3d object with camera
Replies: 14
Views: 967

Re: Moving 3d object with camera

oh man i have no idea what you wrote in the second paragraph. So this is what i have done so far:   irr::core::vector3df direction(pos-posChar); direction.normalize() * 2;   so now i have the direction and the length. To move it away like the character (or the camera) is looking start with a vector ...
by kaka
Sat Apr 14, 2012 4:56 pm
Forum: Beginners Help
Topic: Moving 3d object with camera
Replies: 14
Views: 967

Re: Moving 3d object with camera

oops my bad. ok i'll try to explain here goes. my game is a first person shooter, so what i've done is created a IkinematicCharacterController and attached the camera to it and put the function in the game loop.   void player::attachCameraToPlayer(){         camera->setPosition(character->getWorldTr...
by kaka
Sat Apr 14, 2012 3:38 pm
Forum: Beginners Help
Topic: Moving 3d object with camera
Replies: 14
Views: 967

Moving 3d object with camera

So in my game i have used the bullet physics engine and i'm using the wrapper irrbullet but thats not the problem. that works perfectly fine. What i want to be able to do is move those objects in the direction of my camera. This is what i've done so far   void level::playerIneraction(myEventReceiver...
by kaka
Tue Mar 27, 2012 1:23 pm
Forum: Project Announcements
Topic: irrBullet 0.1.8 - Bullet physics wrapper
Replies: 454
Views: 162645

Re: irrBullet 0.1.71 - Bullet physics wrapper

hello there guys. I'm having linker problems :cry: i get the code working when i add the bullet libraries by following their tutorial on the site and getting their helloworld program to work. The linker errors happen when i add the wrapper. I know its going to be a stupid error but i cant figure it ...
by kaka
Fri Mar 16, 2012 12:14 pm
Forum: Beginners Help
Topic: Can't get my class to work
Replies: 5
Views: 232

Re: Can't get my class to work

oh right yeh. what you have done makes a lot more sense then what i'm doing. I'm just trying to complicate things and making it harder for myself. I think i'll first go and make a class diagram to see what classes i'll need instead of making it up as i go along and work from there. Thank you so much...
by kaka
Thu Mar 15, 2012 10:23 pm
Forum: Beginners Help
Topic: Can't get my class to work
Replies: 5
Views: 232

Re: Can't get my class to work

O...M...G I learned about namespaces on the first day of using irrlicht and told myself i wouldn't use them because just like you said it's not very good idea. cant believe i didn't spot that. i'v spent hours on this!!!! RAAAGGEEEE well thanks anyway. i'll definitely not make this mistake EVER AGAIN...
by kaka
Thu Mar 15, 2012 9:57 pm
Forum: Beginners Help
Topic: Can't get my class to work
Replies: 5
Views: 232

Can't get my class to work

So i have been learning c++ since October and i think i'm understanding how object orienting programming works. Now the problem is i understand the theory of it but can't put them into practical use. Now i have to make a game using Irrlicht for uni assignment :roll: . I've read the book "Irrlic...