Skip to main content
twrichter
Participating Frequently
November 21, 2018
Answered

Collide doesn't work

  • November 21, 2018
  • 12 replies
  • 969 views

Hi,

what are the preconditions that collide work? I have build a puppet with draggable right arm, tagged it collide, add "collide" as mentioned in the tutorial. The hand should go hidden into a right bag. That works. Then I draw a "frame bag" that should prevent the hand to go outside the bag and did the same "collide" procedure. But it doesn't work. The hand always goes "through" the bag...

Appreciate an answer.

BR Thomas

This topic is closed to new replies. Start a new post to keep the conversation going.
Correct answer alank99101739

Hi,

this link: Physics - Adobe Character Animator CC Tutorial - YouTube

I have got a character, which has a coat on with coat pocket. One Arm is in front of the coat and the coat pocket is an extra objekt. The right hand can be stuck into the pocket. But nothing prevent it that the hand goes through the pocket. Therefore I drew a "pocket frame" and tagged it "collide" as the hand. Therefore the hand should be also "within" the pocket. And this does not work.


The difference between what you are trying to do and what is in the video is the video has separate objects that are dynamic - balls, blocks, etc. They are not joined together. There are no examples of having an arm that is part of a somewhat complex puppet that should be restricted by a collision. This is because CH seems to have an internal restriction that one thing can control the position of something. So either the hand will be attached to the arm (which is attached to the body), or the hand can be "dynamic" (free moving) and then physics kick in with collisions etc. You can have things bounce off the arm (by tagging it with collide) - like in the video I did above. You cannot have the arm movement be restricted by a collide layer. If the hand is attached to a body, the body will control the position and the physics is just ignored.

That is my understanding of how it works anyway.

If you do managed to get it to work however I would love to hear how you managed to do it!! The "one parent controlling position" restriction is annoying. E.g. you cannot attach a rope between a dog and a dog walker. There was another similar thread talking about how to do a bicycle here: Bicycle animation .  Again, logic what is wanted, but CH does not support everything desirable yet.

So I could be wrong, but I suspect what you want to do is very logical and not supported. Draggers (I assume you would use a dragger to control the hand position, to move into the pocket?) do not obey collide tags. It just gets ignored.

12 replies

alank99101739
Legend
December 1, 2018

Thanks for following up!

alank99101739
Legend
November 22, 2018

I don't use collide often, but my understanding is one of the two objects must be "dynamic" - e.g. like a bouncing ball controlled by physics (not draggers etc). Collide I think is used as a part of the physics engine moving the puppet around. If it moves it and discovers a collision, it does something. But the physics engine only looks at objects with "dynamic". The other objects with "collide" set are used for things to bounce off (like the floor).

So I don't think it will stop you from dragging a hand somewhere unless the object object is tagged dynamic. When you drag the hand you can "hit" the other object, which the physics engine will see as a collision and react accordingly.

alank99101739
Legend
November 22, 2018

Here is a ball, tagged with collide and dynamic, plus a character where I put collide on the arm.

If I remove the dynamic tag from the ball, nothing moves, the arm does not collide with the ball any more - it just moves across it with no effect.

(Oh, I wound up the bounciness in the physics behavior on the ball to make it bounce more.)