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"

Beam and actor handling

Good Morning Guys, I've a MotionController with a beam (trigger is hold down). That beam touch a actor (overlap it) and marked this actor. Now I want to unmark this actor if the beam no longer overlap this. This must workk with hold down trigger for another functionality next time. I try it with Event Tick to unmark actor. Thats works, but it's too fast. The degub show "mark-unmark-unmark mark-...). Any idee how it work on another way?

Thanks!

Product Version: UE 4.12
Tags:
more ▼

asked Sep 16 '16 at 06:55 AM in VR

avatar image

icd_dev
1 1

avatar image Suhaib Rehman Sep 16 '16 at 11:17 AM

So just to clarify things for myself, what you are doing is that you press trigger button and then the beam is thrown which marks an actor. For getting the actor you are using Ray Casting. What you want to do is that if you press the trigger button again, If the actor is marked already it should then unmark the actor. Is that right?

avatar image icd_dev Sep 20 '16 at 06:15 AM

Hi, sry for the late reply. I explain it in pseudo-code: whie (trigger down) show beam if (beam touch actor) mark actor if (trigger not hold down longer) //do something if (beam untouch actor) unmark actor if (trigger not hold down longer) spawn new actor

I hope you understand my problem. Actually it works to show beam and mark actor. Now I want make the unmark.

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

0 answers: sort voted first
Be the first one to answer this question
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