x


door opening

i have searched for this a lot but i can't find it. i am searching for a script where you can play an animation of a door opening then staying open and when pressing e on it again it closes(maybe some fancy sound). it would be helpfull for a lot of people. also, how would you do that in cinema 4d? what i have now is frame 1 to 50 opening animation 51 to 100 closing animation. do i need to put an idle animation in it?

thanks for every one who would like to help.

more ▼

asked Feb 17 '12 at 06:49 PM

artsdcs gravatar image

artsdcs
3 11 14 15

Feb 17 '12 at 07:42 PM Loius

yes and it doesn't work correctly

Feb 25 '12 at 01:48 PM artsdcs
(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

You don't need to use any frame animation at all. You can easily script the animatior instead.

If these are sliding doors you can use position

function Update() {
transform.position = Vector3(Mathf.SmoothStep(minimum, maximum, Time.time), 0, 0);
}

If hinged

just use transform.eulerAngles.y

more ▼

answered Feb 25 '12 at 02:00 PM

tomekkie2 gravatar image

tomekkie2
663 17 28 34

(comments are locked)
10|3000 characters needed characters left

You don't need the closing animation, unless it's different, you can play the opening backward. But you need to know the current state (openned, closed, moving)

more ▼

answered Feb 17 '12 at 08:13 PM

Berenger gravatar image

Berenger
11k 12 19 53

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x3807
x194
x166
x31
x16

asked: Feb 17 '12 at 06:49 PM

Seen: 1034 times

Last Updated: Feb 25 '12 at 02:00 PM