Can a collision Component have multiple collision profiles?

LostScout
Sun, 08 May 2016 16:04:26 +0000
Debugging, Optimization, & Profiling

Lets say I had a projectile class. As a component of that class I had a sphere collision. Could I set that projectiles collision system (the sphere collision) to multiple collision profiles?

Example: with the same component
myCollisionComponent->BodyInstance.SetCollisionProfileName(“Projectile”);

then myCollisionComponent->BodyInstance.SetCollisionProfileName(“Enemy”);
as well as myCollisionComponent->BodyInstance.SetCollisionProfileName(“glass”);

or would I have to have a separate component per collision profile?

2 posts - 1 participant