Hello,
I created a very simple elevator that goes up and down. I added to the meta selector.
When the elevator is not moving and i get on it with a FPS camera, I don't fall down, But when the elevator is moving up i fall down. Is like i get throw the object.
My collisions are good with every object in the scene, even with the elevator. I just have problems with moving objects. I can't stay on them when they are moving.
A better example of my problem is that if i cerate a game where i have to get on a car, the car will move but FPS camera will stay at the same place.
How can i solve this?
Moving Objects (Elevator)
-
- Posts: 29
- Joined: Thu Oct 25, 2007 5:58 pm
- Location: Florida
- Contact:
-
- Posts: 29
- Joined: Thu Oct 25, 2007 5:58 pm
- Location: Florida
- Contact:
Re:
I tried that and it gave me a strange results. The camera move like crazy and i still fall from the elevator.
is there another way to do it?
is there another way to do it?
Y_Y
In a theoretical way (since I'm not good with 3D stuff), you could just check that, when the camera is inside the elevator, the distance between the camera itself and the lowest part of the elevator is a fixed amount, making so that if the elevator coordinates change, call a function that modifies the camera coordinates as well, keeping it at the same distance.
Don't know if it's possible and if I've been clear enough but in theory it could work.
Don't know if it's possible and if I've been clear enough but in theory it could work.
-
- Posts: 29
- Joined: Thu Oct 25, 2007 5:58 pm
- Location: Florida
- Contact:
I'll try that later, because i have almost no time to test the elevator, but i will and i will post the results...
By the way, is there a website that has irrlitch demos other than the ones on the irrlicht website? Im not talking about game demos, i am talking about code snips demos, for example:
"This is how you can create a FPS camera. Click here Download"
I think that would help me al LOT, because the code is there and i just have to study it and create it my own way.
By the way, is there a website that has irrlitch demos other than the ones on the irrlicht website? Im not talking about game demos, i am talking about code snips demos, for example:
"This is how you can create a FPS camera. Click here Download"
I think that would help me al LOT, because the code is there and i just have to study it and create it my own way.
Y_Y