Help with vegetation collision mesh concept
Posted: 2022-08-03 15:40
Hello wizards, I need your guidance again.
As part of my FH2 sub-mod, I was getting tired of bots humping trees in tanks thus taking themselves and the tank out of the battle. So I went ahead and, in the .con file of every single type of vegetation, changed the custom collisionmesh line to have the properties of a walk-through bush, like so:
ObjectTemplate.collisionMesh bushes_1
And voila you can now walk or drive through forests, it's a dream. But there's one niggle to the dream. Now it seems that all plants, be they bushes or trees or stumps, can still deflect bullets and shells - but it's not simply limited to the outline of the plant - that wouldn't be a problem as still semi realistic. No the problem is that there's now a sort of box around the plant which also deflects those projectiles, as seen in the attached picture. It even causes grenades to bounce off that box and back into my face.
So would anyone know the best way to address this? I'm still very happy with the first experiment, to be able to drive through vegetation, it's definitely needed for me and the bots. But is there a collisionmesh type which would allow you firstly to pass through it but also allow projectiles to pass through it?
Many thanks as ever for any thoughts on this.
Kind regards,
Mark
As part of my FH2 sub-mod, I was getting tired of bots humping trees in tanks thus taking themselves and the tank out of the battle. So I went ahead and, in the .con file of every single type of vegetation, changed the custom collisionmesh line to have the properties of a walk-through bush, like so:
ObjectTemplate.collisionMesh bushes_1
And voila you can now walk or drive through forests, it's a dream. But there's one niggle to the dream. Now it seems that all plants, be they bushes or trees or stumps, can still deflect bullets and shells - but it's not simply limited to the outline of the plant - that wouldn't be a problem as still semi realistic. No the problem is that there's now a sort of box around the plant which also deflects those projectiles, as seen in the attached picture. It even causes grenades to bounce off that box and back into my face.
So would anyone know the best way to address this? I'm still very happy with the first experiment, to be able to drive through vegetation, it's definitely needed for me and the bots. But is there a collisionmesh type which would allow you firstly to pass through it but also allow projectiles to pass through it?
Many thanks as ever for any thoughts on this.
Kind regards,
Mark