How do I emit an object towards the player?
I want to fire a projectile at the player. I tried placing the emitter on a sculpt and using the look at player rotator and while the sculpt rotated correctly the emitter direction did not change.
-
Hi there!
That's because the look at rotator can change the direction an object is looking but not affect it's movement. You could also try using a Follower on your emitted object as well, although it will mean your projectile becomes very good at hitting your player! But maybe that's what you want :)
The Follower allows you to adjust the strength, damping and directions that it follows in, as well as a min and max area for it following, so maybe if you only wanted it to follow if the projectile happened to be close, and not move up and down but instead just move on a horizontal plane from where it was fired.
I hope it helps! :) Let me know if you have any further questions on it.
Thanks,
Catherine -
Thanks, I have a try with the follower. If I use a timer to switch off a follower will the object still have momentum and continue in the same path it was on when it switched off?
-
Hey!
So if you switch off the follower after a period of time it will keep a bit of momentum towards the direction it was going but it does also depend on the density of the sculpt your emitting and the forces at play.
What you could potentially do is see if you also want gravity on the sculpt or not, as without gravity it'll keep the same momentum as gravity isn't then pulling the sculpt down to the floor :) Both settings can be found on the Physical Properties tweak page of the sculpture.
Thanks,
Catherine -
Just a point to clarify, the look at rotator was on an orb with and emitter. The idea was the rotator would turn the orb so the emitter faced the target.
Please sign in to leave a comment.