Romep
11-02-2008 11:28:19
hello,
i got some basic questions:
1. i got a player character which should move when i hit a key. but i think i cant simply add a force to that player cause he might fall down or something. so i think i have to add this movement to the scenenode or so (like i would do it only using ogre). how is the best way to do that?
2. shooting. i a player hits the shoot key, i create a new actor for the bullet. but how do i know when the bullet hits something so i can lower the health of the player who was hit by the bullet?
3. hitbox. i created a new body and if a bullet hits this body, i want to know wether it was the head or feet or so. so i think i have to ->addShape all the body parts of the player and the collision detection from the second question tells me which shape was hit?
someone told me the keyword ragdoll for this, but i cant get ebol's ragdoll code to work.
i got some basic questions:
1. i got a player character which should move when i hit a key. but i think i cant simply add a force to that player cause he might fall down or something. so i think i have to add this movement to the scenenode or so (like i would do it only using ogre). how is the best way to do that?
2. shooting. i a player hits the shoot key, i create a new actor for the bullet. but how do i know when the bullet hits something so i can lower the health of the player who was hit by the bullet?
3. hitbox. i created a new body and if a bullet hits this body, i want to know wether it was the head or feet or so. so i think i have to ->addShape all the body parts of the player and the collision detection from the second question tells me which shape was hit?
someone told me the keyword ragdoll for this, but i cant get ebol's ragdoll code to work.