did it hit
Blitz3D Forums/Blitz3D Beginners Area/did it hit
| ||
OK I have Ross and MANY others to thank... my crossbow spits arrows like a hose spits water if you paid the bill! BUT I can't check collisions can I??? I tried making the arrows entitytype 1 and they refused to fire. Do I simply have to add a new collisiontype for arrows and check for collisions that way??? -RZ |
| ||
Can't tell by what you wrote. Post your code. |
| ||
A better way to check for collisions I think with your arrow is the following. Don't set the collision type for your arrows. Instead do this: Prior to moving the arrow each frame record the oldx,oldy,oldz positions. After moving store the newx,newy,newz positions. Do a line pick from the oldx,oldy,oldz to the newx,newy,newz.eg WhichTargetHit=LinePick(oldx,oldy,oldz,newx-oldx,newy-oldy,newz-oldz), then go through your list of enemies and see if their entityhandle equals the "whichtargethit" value you have just stored. |