PlayMaker News > General Discussion

Collision problem (shooting)

(1/1)

VictorRayDev:
Hi y'all! Hope you doing fine on this new year!
I'm still working on my game its going well!

I have a little question.

Is it possible to actually disable the physic between to object for a certain amount of time.

In my game I have ennemys who shoot missile. But the ennemys and the missile is a physic object.
So when I apply a force to the missile and I spawn it near the ennemy. The missile actually drag the ennemy with him :O.

I hope I'm clear it's a little hard to explain for me haha.


jeanfabre:
Hi,

 Uhm, yes, doesn't make sense to me as is. somehow, either the two physics object are still attached via a joint it seems. How to you create the missile?

bye,

 Jean

VictorRayDev:
The missile is spawned via poolmanager2 and I use your custom action to shoot it.

What I think happen is when the missile spawn over the ennemy the two physic object collide so the missile drag the ennemy in the air.

Thank you Jean you are so helpful! You already have a place in the credit of this game!  8)

jeanfabre:
Hi,

 ok, then one solution is to spawn the missile further away from the user.

 the other solution is to use the physics collision matrix and have your player on a different layer then the missile and have both layers not applying physics between them, they will simply ignore each other.

http://docs.unity3d.com/Documentation/Components/class-PhysicsManager.html

bye,

 Jean

VictorRayDev:
Thanks i'll try that!

Navigation

[0] Message Index

Go to full version