Page 1 of 1

Foliage collision

Posted: Sat Sep 15, 2018 5:25 pm
by Oceans14
I used the foliage editor to place trees on my map just to make life easier, but the collision doesn't work - you can walk and shoot right though them, so that's no good. Anyone have any ideas? Here's the relevant part of the prp file:
Hidden/Spoiler:
[code]Layer(0)
{
SpreadFactor(0.2);
Mesh()
{
File("hpalm_1.msh", 135);
Frequency(40);
Scale(1);
Stiffness(1.0);
//CollisionSound("foliage_collision");
}
Mesh()
{
File("hpalm_1.msh", 135);
Frequency(30);
Scale(0.7);
Stiffness(1.0);
//CollisionSound("foliage_collision");
}
}[/code]

Re: Foliage collision

Posted: Sat Sep 15, 2018 6:35 pm
by Marth8880
There's a way to enable collision on a foliage layer, but it'll only collide with soldiers, not ordnance/vehicles/etc.

Your best bet is to place the trees manually - possibly make several meshes that consist of multiple trees grouped together much like the Endor trees.

Re: Foliage collision

Posted: Sat Sep 15, 2018 7:19 pm
by Calrissian97
I think you could also use pathing for walls/lines of trees.

Re: Foliage collision

Posted: Sun Sep 16, 2018 4:32 pm
by Oceans14
But Marth I'm laaazy... lol

@calrissian97 I think you're on to something. The prp's "Treeline" parameters may be helpful if used creatively. A combination of multi-tree meshes and a path of nodes should do the trick... I'll try it out and post back here.