2D Toolkit Forum
2D Toolkit => Support => Topic started by: xhidnoda on August 17, 2013, 06:26:11 pm
-
Because this require, i lose the collider shape.
When setup is not check the Convex box the onTriggerEnter not work.
When Convex box check the onTriggerEnter work.
Why happen this?
-
2 non-convex mesh objects objects can't collide in Physx. One of them must be convex or use complex shapes (multiple boxes / convex shapes).
http://docs.unity3d.com/Documentation/Components/class-MeshCollider.html
-
there is a any way to check convex of two object game and not lose the shape collider?
-
You can try to build the sprite out of multiple smaller sprites if you want. Also, only one of them needs to be convex for it to work. Its much better if you have your moving object as convex - performance is much much better. Moving compound / concave colliders is much much slower - if you could do it, make your primary mover a character controller or convex.
-
and...nop
The solution "only one of them needs to be convex for it to work" is FALSE
:(
I can build the sprite muliple smaller sprites too :/
So, another way to resolve this "problem"?
-
By one of them needs to be convex I mean one of the 2 colliding bodies. convex - concave works. Concave - concave doesn't.
http://docs.unity3d.com/Documentation/Components/class-MeshCollider.html
If you're doing that and it doesn't work it probably means it isn't set up properly. Do you have a kinematic rigidbody set up on the moving convex shape?
-
This is my setup.
PLS see for me and tell me what is wrong!
-
Which one are you moving?
-
the player....moster and is not kinematic because is moving. Collection "Player"
-
If it moves it must be set as kinematic. Try setting them both to kinematic rigid bodies. Remember you want to try to move the convex one not the other.
-
if my player set with kinematic in rigid body, in the console:
Actor::setLinearVelocity: Actor must be (non-kinematic) dynamic!
the only way for works the collision is if the two object is convex.
-
How are you moving the rigidbody?
-
you know a Playmaker Assent?
OK like this
-
You can't SetVelocity on a kinematic rigidbody? You should move it using transform.position
-
no...nothing work.
:(
only work convex - convex
-
I've run out of things to suggest.
Please create a repro case and email to support at unikronsoftware dot com.