Bullet Holes

Blitz3D Forums/Blitz3D Beginners Area/Bullet Holes

rtk(Posted 2008) [#1]
How would you make a bullet hole appear on an object. I have code that creates a bullet that disappears when it hits an object or the terrain, but I want to create a bullet hole texture on the location it hits.


puki(Posted 2008) [#2]
Well, you could splat the target texture or you could just have a bullet hole mesh that you affix to the mesh you just shot.


rtk(Posted 2008) [#3]
What do you mean splat the texture?


puki(Posted 2008) [#4]
http://www.blitzbasic.com/b3ddocs/command.php?name=AlignToVector&ref=3d_a-z


rtk(Posted 2008) [#5]
I tried creating a sphere at the point where the bullet collides with an object but nothing happens. I even tried slowing down the bullet.


mtnhome3d(Posted 2008) [#6]
heres some code that uses the align to vector example but uses sprites.



rtk(Posted 2008) [#7]
Thanks!


mtnhome3d(Posted 2008) [#8]
your welcome