Page 1 of 1

ObjectTemplate.AddToCollisionGroup

Posted: Mon Aug 05, 2013 7:47 pm
by BotHunter
Hello all!!
Is there a way to make the object collide with only projectiles using ObjectTemplate.AddToCollisionGroup??
Thanks!

Re: ObjectTemplate.AddToCollisionGroup

Posted: Sat Aug 17, 2013 10:39 pm
by BotHunter
Anyone?? (I doesn't have to use "addtocolisiongroup")

Re: ObjectTemplate.AddToCollisionGroup

Posted: Sun Aug 18, 2013 4:59 am
by freddy
possibly try make the object of some unlisted material, it works for projectiles

Re: ObjectTemplate.AddToCollisionGroup

Posted: Sun Aug 18, 2013 4:28 pm
by BotHunter
I want basically a wall that people and vehicles can go through, but you cant shoot through. Maybe Apache would have a suggestion? :mrgreen:

Re: ObjectTemplate.AddToCollisionGroup

Posted: Sun Aug 18, 2013 5:20 pm
by Vilespring
Apache actually posted something like you said, but it will be harder to implement, because you gonna have to add it to ALL the vehicles, and people cannot go through it. and, then vehicles would go trough each other. Just make a geometry without a collision mesh 1 (I think, that is vehicles and buildings) and keep a visual mesh and the projectile mesh. Now, infantry won't be able to go through, so make something like a door in it.

Re: ObjectTemplate.AddToCollisionGroup

Posted: Mon Aug 19, 2013 9:14 am
by freddy
edit, did not work :/

Re: ObjectTemplate.AddToCollisionGroup

Posted: Mon Aug 19, 2013 4:16 pm
by BotHunter
this is what I'm attempting: :) Image

Re: ObjectTemplate.AddToCollisionGroup

Posted: Mon Aug 19, 2013 6:23 pm
by Apache Thunder
Yes, I thought about suggesting using the unused collision group. BUT. Here's the problem.

It doesn't work on soldiers very well. As soon as a soldier enters a vehicle and then leaves it, the collision group assigned to him gets lost. The player would have to die and respawn for it to work again. So it won't work for you if you intend to include soldiers in this system. :(