GUN COLLISION
GUN COLLISION
I was trying to get my gun to not go through walls and enemies etc.(basicly collision)(Ooo... a ghost weapon ) my camera won't go through stuff, I added a collisionResponoranimator to the gun as well the camera, maybe I made the ellipsoidRadius wrong for the weapon
oh yeah, if this helps explain i set the scale for my gun(1,1,1).
oh yeah, if this helps explain i set the scale for my gun(1,1,1).
-
- Posts: 31
- Joined: Mon Sep 05, 2005 4:47 pm
- Contact:
Well assuming this is a first person shooter, why don't you just increase the ellipsoidRadius until it also includes the gun?
GMan
Black Ninja Games
Black Ninja Games
@omaremad, this things hearts me at this moment. I trying to modify collision response animator. Let suppose that is not very hard to stop moving of parent when any child node collide. But when parent rotate, child nodes will pass trough the walls, because this animator is not sense to rotation. If suppose that there are any issue, another problem appears - stop animation child-parent, because when child node collide, animation for this node and for it’s parent must be stopped at current frame.
Do you meant Achi's implementation of bones? Because joinst are child nodes too.
Do you meant Achi's implementation of bones? Because joinst are child nodes too.
Most peoples here will say to use any external phisycs or collision engine.
Another way is improving of collision response animator for childs collision. You must use absolute positions in this case. Many peoples says that irrlicht collision is slow... I found that it is not slow, but in some cases you can get slow fps. For me newton collision is slow for small objects. Irrlicht collision have not any problems for small objects by me.
Another way is improving of collision response animator for childs collision. You must use absolute positions in this case. Many peoples says that irrlicht collision is slow... I found that it is not slow, but in some cases you can get slow fps. For me newton collision is slow for small objects. Irrlicht collision have not any problems for small objects by me.