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"

TriggerSphere activating even at zero scale

Hello, I have a TriggerSphere I'm using to overlap with objects as it scales up via a Timeline. But, it's activating in the level before I activate the timeline (i.e. while it's scale is at 0 0 0).

Setup: - TriggerSphere actor scale is set to 0 0 0 in the level - its Sphere Radius is set to 2500 (which remains static) - the Timeline animates the actor scale from 0 to 1 (i.e. from 0 to 2500) - the Timeline is set up to fire after an interaction

Problem: - Before I interact and activate the Timeline, the TriggerSphere is registering overlap events when I walk into and out of the sphere at an arbitrary distance. - this distance does seem to respond to some combination of the actor root scale and the shape sphere radius, but I'm not sure how it's working. - ex. if I set the scale to 1, then it does exactly what I'd expect; generating overlaps at the exact radius from the placed actor (say sphere radius = 300, then at 300 from the actor, it registers a BeginOverlap) - However, if I set the scale to 0, then the sphere radius to 2500; it doesn't generate an overlap at 0 or 2500, but around 300-400 (estimating).

What's the deal here?

I have tried to bypass this issue by directly driving the TriggerSphere's shape radius with the Timeline, but can't figure out how to reference the component and expose it in the level BP.

Thanks for any ideas!

Product Version: UE 4.18
Tags:
more ▼

asked Jun 13 '18 at 11:38 PM in Blueprint Scripting

avatar image

RaNewt
26 4 3 7

avatar image TVinforest Jun 13 '18 at 11:47 PM

If you make Sphere Scale static and its Radius dynamic will your problem remain?

avatar image RaNewt Jun 13 '18 at 11:53 PM

To my understanding (which is middling at best), I can't make the radius dynamic. And, I think if I set the scale to static, the Timeline won't be able to drive it dynamically, right?

Here's a shot of the settings I'm talking about: alt text

avatar image TVinforest Jun 14 '18 at 12:17 AM

If you have CollisionComponent cast to SphereComponent and then SetSphereRadius. If you have regular CollisionSphere again SetSphereRadius.

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

1 answer: sort voted first

alt text

Hi! How about that?

spheretrigger.png (295.2 kB)
more ▼

answered Jun 14 '18 at 12:02 AM

avatar image

TVinforest
454 15 13 21

avatar image RaNewt Jun 14 '18 at 12:48 AM

worked like a charm. you, my friend, are a BAMF. thank you!

(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