- Home /
Excluding Gameobjects/Colliders from reacting with Collision Flags?
Hello,
I recently run into a problem, I don't know how to deal with:
I'm creating a game with a lot of swordfighting. My characters are all having CharacterControllers and the detection if the sword hits a character works with Collisions (swords have BoxColliders). That's fine, except one thing:
When I swing my sword upwards from the ground and it hits an enemy from below, he "climbs" on the sword. I lift him up. It seems as if the CollisionFlags also react on the sword-GameObject.
Now my question: Is it possible to exclude a Gameobject from reacting with CollisionFlags? If yes, how to do so?
I tried with IgnoreCollision in various manners, but it didn't work :(
Would be glad if someone knew help ;-) And sorry for maybe noob question...
Answer by Piflik · May 13, 2012 at 07:26 PM
Try triggers instead of colliders.
If possible I want to avoid this solution because it would mess up my whole combat system so far.
Your answer
Follow this Question
Related Questions
Collision Flags on Character Controller flip between Below and None 2 Answers
How to detect on which side my character controller was hit? 1 Answer
Problem detecting ground with collision flags and controller.move (vector3.down) 1 Answer
CharacterCOntroller or RigidBody ?? 1 Answer
How animations are executed ?? 1 Answer