x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

how to "drag" doors ?

Hello,

Can someone give me a clue how to make a door system which:

on press of a mouse button you open the door and have a control of a rotation using mouse controls ? Something like in amnesia or the recently released layers of fear.

Product Version: UE 4.10
Tags:
more ▼

asked Feb 20 '16 at 05:56 PM in Using UE4

avatar image

master_mati
1 1 1 1

avatar image syndexDE Aug 29 '16 at 07:25 PM

Hello, is there someone who can help me ??

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

4 answers: sort voted first

You can use the SetPosition function of your door matinee. This controls the time the matinee animation is at in its timeline. For example if your animation is 5 seconds long and you call SetPosition 2.5, the animation will forward to the 2.5sec mark in the timeline.

With this you can simply calculate the distance the mouse has travelled in the Y-direction since pressing the button to open the door, divide the result by the matinee length to get a percentage, clamp it to 0-1 range, then use that as the timeline position. Example: alt text One thing to mention is that in BP there is currently no way to get the matinee length, so you have to type in the length by yourself in the BP!

unbenannt.png (71.8 kB)
more ▼

answered Feb 21 '16 at 02:06 AM

avatar image

TriNityGER
62 7 13 15

avatar image syndexDE Aug 26 '16 at 03:42 AM

Can someone please help me? How can i calculate the distance of the mouse ? I dont get it...i'm thinking for days about it. Do you have picture of a complete Blueprint ?

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

thank you very much. It worked :)

more ▼

answered Feb 21 '16 at 12:49 PM

avatar image

master_mati
1 1 1 1

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

actually there is one problem.

If the doors are opened lets say 50% of the matinee animation , and you want to "grab" the doors again, it resets the current position to a start point. What is the best way to store the current position of the matinee for further interaction?

more ▼

answered Feb 21 '16 at 01:11 PM

avatar image

master_mati
1 1 1 1

avatar image TriNityGER Feb 21 '16 at 01:28 PM

I'd say just save it inside the door blueprint :P The door has to know how much "opened" it is :D

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

I'll send you some blueprints screenshots tomorrow :)

more ▼

answered Aug 29 '16 at 07:59 PM

avatar image

master_mati
1 1 1 1

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

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

Answers to this question