Hi guys,
In my project the player has access to an at-will projectile that can be fired forwards, and it travels in a straight line for a few steps and then disappears. It will be used in puzzles, initiating combat etc.
However I have a problem relating to collision. If the projectile is fired at a wall, it is stopped by the wall, which makes sense. But this also happens when fired at any other collision boundary, for example if you are standing next to a river and you fire the projectile, it will be stopped by the river which does not make sense, it should fly over the river.
I am struggling to think of a solution because I don't think you can selectively make an event go 'through' collision specifically for water or whatever but not for walls. I am stumped. Any ideas?
In my project the player has access to an at-will projectile that can be fired forwards, and it travels in a straight line for a few steps and then disappears. It will be used in puzzles, initiating combat etc.
However I have a problem relating to collision. If the projectile is fired at a wall, it is stopped by the wall, which makes sense. But this also happens when fired at any other collision boundary, for example if you are standing next to a river and you fire the projectile, it will be stopped by the river which does not make sense, it should fly over the river.
I am struggling to think of a solution because I don't think you can selectively make an event go 'through' collision specifically for water or whatever but not for walls. I am stumped. Any ideas?