|
By ByBry - 11 Years Ago
|
Does anyone know how to get a hinge constraint to reverse direction? The objective is to have a door open, remain open for a few seconds and then close, the open part is easily configured with a hinge constraint and some initial velocity. It is the closing part that is a nightmare.
I've tried flipping the hinge 180 degrees; no effect other than to reverse to direction of the opening. Tried using negative velocity, same result. Tried copying the physics on the timeline and reversing the copied segment, No effect. Very frustrating!
|
|
By ByBry - 11 Years Ago
|
Thanks for the response but the goal is to have iClone perform the animation. I could easily create the animation in Maya and 3DX it into iClone. I know how to create the animation but I'd like iClone to be able to perform the same animation. It seems that A is equal to B but B is not equal to A
|
|
By Delerna - 11 Years Ago
|
I am learning to use the constraints myself so I'm no expert Here is a couple of tutorials that may help but as far as I know the hinge should go both ways depending on which way another physics object pushes it. Early in the first tutorial it talks about the limitations settings for the hinge. Is that the problem. Are the limitations set to something like 0 and 90 degrees making it go only 1 way?
https://www.youtube.com/watch?v=CpirvDh7Me8 https://www.youtube.com/watch?v=G3mljeACWWQ
Edit You may be able to use the force setting on the hinge to have the door automatically close itself.
|
|
By Delerna - 11 Years Ago
|
For example Here is masons foot operating a pedal for a kick drum I am working on. Masons foot pushes the pedal down which rotates the stick that beats the drum When mason lifts his foot back up the force setting on the hinge of the pedal rotates the pedal back up with masons foot.
That pedal action is similar to someone pushing the door open and the door closing automatically after they have gone through
|
|
By ByBry - 11 Years Ago
|
That looks like the action / reaction I'm trying to create.
Do you mind sharing the specifics of you generated that action?
|
|
By Delerna - 11 Years Ago
|
This raised my interest so I quickly threw a door animation together to see if it would work. Doesn't keep the door open for a few seconds but I'm thinking you could use an invisible physics object to hold the door open and animate it so it moves out of the way a couple of seconds later
|
|
By ByBry - 11 Years Ago
|
|
I can see the effect works and is what I need. What are the dynamics settings?
|
|
By markab - 11 Years Ago
|
Hi Bybry,
Perhaps the easiest way is to simply change the physics setting of the door from Dynamic (assumed original setting) to Frozen when the door reaches the fully open position, then advance the time line ahead two seconds and then change the setting back to Dynamic.
Regards, Mark
|
|
By Delerna - 11 Years Ago
|
Hmmmm. That sounds interesting markab
The settngs i used were very simple and depends on which way the door opens I used min -160 max 0 for the rotation limits
The force i set to 0.5 to close the door slowly
I also change the bounce amount and there is also a resistance setting in there somewhere Im at work at the moment and cant remember everything exactly but i think the primary 2 are the 2 i mentioned first
|
|
By Kelleytoons - 11 Years Ago
|
Sorry, no knowing about the iClone physics, but I do know doors -- to open a door all the way (so as in Real Life) the angle of rotation needs to be 180 degrees, or thereabout. And to rotate the other way, the same. So using -160 to 0 is only half a rotation (my gut tells me you need to set it for -160 to +160 but I haven't played with this at all).
If I'm out of line just ignore me.
|
|
By Delerna - 11 Years Ago
|
Hi kellytoons Yes i tried that but in my example the door doesnt stay closed that way In my experience Most doors (depending on how close they are to a second wall only open around 90 dtegrees before hitting that wall If they are in the middle of a wall then opening 180 degrees would break the hinges Also most doors only open on one direction from the wall. They have a frame they fit into stopping them from opening the other way Thats why i chose -170 to 0 for my door
There are exceptions of course so yes. You need to choose whatever numbers fit your situation
Now i better get to work. Lol
|
|
By animagic - 11 Years Ago
|
|
It's good to see people cooperating to find a solution WITHIN iClone...:P
|
|
By mark - 11 Years Ago
|
...being a simple kinda guy I would just keyframe the door to do what is needed . I guess I missed something but I'm not sure why you would need physics to do this..?
|
|
By Delerna - 11 Years Ago
|
|
You dont need to use physics to accomplish that and keyframing is certainly a legitimate way to do it. I usually do it by key framing as well but the question raised my interrest. I must say i quite liked how it works with physics though and it probably makes it simpler by not having to keyframe. I just animated the character and the door just responded to that animation. Havent done it often enough though to make my mind up whether i prefer it with physics or keyframing. I guess there could be usefullness both ways. It was fun doing it and increased my experience with physics. Thats something.
|
|
By mark - 11 Years Ago
|
My criteria is usually... will it look believable and how long will it take to accomplish :P
|
|
By Rampa - 11 Years Ago
|
|
This one probably hinges (sorry :P ) around wether or not the door requires the turning of a door-knob. Nothing like a reach target with rotation and an animated doorknob!
|
|
By primaveranz - 11 Years Ago
|
|
I'm guessing the OP is still awaiting an easy to follow answer though ;)
|