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"

Lock physical door rotation

If i create my a "physical door", how can the door stop rotating if its in the closed position? And that its only rotating in one way .

Product Version: UE 4.12
Tags:
more ▼

asked Aug 30 '16 at 05:07 PM in Blueprint Scripting

avatar image

syndexDE
21 1 3

avatar image syndexDE Aug 30 '16 at 06:14 PM
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

i have it now. I tested different angles of the constrain.. but thanks for your help :)

more ▼

answered Aug 30 '16 at 07:59 PM

avatar image

syndexDE
21 1 3

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

Use a timeline, they're great for moving things like a door.

For example, when you walk into the trigger to open the door, you'd play a timeline that updates the rotation of the door. You can use this to 'open' and 'close' the door in whichever way you choose.

more ▼

answered Aug 30 '16 at 05:15 PM

avatar image

Mookaroni
664 21 9 35

avatar image syndexDE Aug 30 '16 at 05:34 PM

But then i can't control the rotation with my mouse.

avatar image Doug E ♦♦ STAFF Aug 30 '16 at 05:41 PM

Hey syndexDE-

If you want to control the door with your mouse (mouse click, mouse hover, etc.) you can use the appropriate event and wire into a timeline like Mookiez suggested. If you are still having problems, please explain exactly what you are trying to accomplish and we can provide other solution options.

avatar image syndexDE Aug 30 '16 at 05:51 PM

I dont know how i can do this with a timeline. I wanted a door that rotates when i press the left mous button and drag it to the site. So that i can control the rotation. I have created a "physic gun" (https://www.youtube.com/watch?v=WUprlq8aibc), then i added 2 constrain to the door and now i can rotate it with the player rotation.
1. the player rotates too(what i dont want) 2. the door rotates in all directions 3. the door doesnt stop when it is in the door frame like it is closed

(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