I have make a little fps and i want to have bullet impact on the wall when i shoot?
someone can explain me how to do this?
thanks
bullet impact on wall
Have a look at the collision tutorial - No.7. It casts a ray onto the level and sets a billboard to the impact position. Then you would have to add a decal at that position and rotate it to the slope of the wall/whatever.
You could write a scene node that displays a quad and its constructor takes the triangle (the wall hit) as a parameter. Then add this to the scene graph. In it's update function you could have a counter, when it gets to 0 it deletes itself to free up resources.
You could write a scene node that displays a quad and its constructor takes the triangle (the wall hit) as a parameter. Then add this to the scene graph. In it's update function you could have a counter, when it gets to 0 it deletes itself to free up resources.
djceejay
Studying :: BSc Computer Games Technology :: UK
Studying :: BSc Computer Games Technology :: UK
Aha, then you should look at a feature that is implemented in IrrlichtNX++. Copy it over to your Irrlicht 0.7/0.8 installation or check how it is done or try using NX++. What I'm talking about is a CDecalSceneNode class which does exactly what you want, creating bullet holes (texture) on the place where your collision ray hits the mesh.