-
How to activate area triggers with object moved with OPEs
I want to activate my area trigger by having a object (with physics DISABLED) pass through it.
The object passes through it, but nothing happens. The very same area trigger gets activated when objects with physics pass through it. I have selected "Activate by static objects" in the area trigger settings, too.
I'm probably missing a basic concept here... But still, I can't figure out what is going wrong.
-
Re: How to activate area triggers with object moved with OPE
Physics must be on for it to activate the trigger.
-
Senior Member
Re: How to activate area triggers with object moved with OPE
hit triggers and area triggers only work for things inside the physics bubble
i'm not sure if physics have to be enable though
but you can't let an object for example activate an hit trigger outside the physics bubble when it hits the ground
het hit trigger will only send its impulse when the physics buble moves closer
i don't remember though if the hit trigger would send its signal when physics were disabled
so object related triggers i guess only work inside the physics bubble
-
Re: How to activate area triggers with object moved with OPE
Thanks for the replies. I'll try expanding the physics bubble just for testing, but in any case I want to know how others would solve this problem:
You have a moving train outside the physics bubble and you want it to activate an area trigger. What do you do?
-
Senior Member
Re: How to activate area triggers with object moved with OPE
Use OPE to animate the train. It's hard work but the results should be perfect and consistent.
-
Re: How to activate area triggers with object moved with OPE
Euphoric I'm using OPE for the train. The problem is that the area trigger that the train should activate lies outside the Physics Bubble.
I "think" that I might decide to "time" the event so that the explosion takes place no matter what (the train speed is constant). But that feels kind of stupid to me
-
Senior Member
Re: How to activate area triggers with object moved with OPE
increasing the size of physics bubble has an high chance of producing lag
in this case i would just time it
-
Senior Member
Re: How to activate area triggers with object moved with OPE
Oh sorry I misunderstood. Timing would work fine
What I would do is add a generic filter and set the on true event to activate when the train reaches a certain point in the animation. When I did it the x value move my object forward, so in my filter I attached the x value which went to my OPE as a comparison value in the filter.
Then when x reaches a certain value the true event will pass to whatever effect you want to activate.
-
Re: How to activate area triggers with object moved with OPE
Cool, I tried exactly what you say before reading your answer, lol.
I used the greater than filter and, don't ask me why, but it doesn't work. Basically the question mark of the filter becomes green (true state, I guess) but the explosion event doesn't get triggered. What could be the reason behind an event not activating even if the filter displayed true state?
-
Senior Member
Re: How to activate area triggers with object moved with OPE
The filter will need an interval trigger attached.
Set it to 1 tick.