Download

Set Velocity no working.

MARRY CHRISTMAS

I have the 2 setting, but the Set Velocity is not overriding my original. I tried to set X to 0, but then the balls just go straight up.

BP - Spawning my Projectile

Capture.JPG

Initial Speed

5435736780d39a973b43c6ddd4127e1b4b96746e.jpeg

Initial Velocity - If I set initial velocity to 10000, still does not vary, in this case shown below, the ball just goes straight up in the air.

55d83653d606262ef0c9928756c2c7dffada7f42.jpeg

Hello,
Merry christmas too ^^
An easy way to work around, time to find a better solution, can be to “get velocity” “multiply by float” with a variable that you can change when you want and “set velocity”.

Hi

I have now set it up this way, and it is giving my different result through the print string, yet the ball is landing in the same spot. Still confused.

e64ac78b333f7c1def06938f1e821e9751ae91a4.jpeg

Narg

I was thinking about that to not have this effect:
1ea5d5bcef4376a16ebb577895205a56c8db6bc2.jpeg

You should try just setting the discs transform when it is spawned to be what you want… then the projectile will fire in that location, rotation and scale. A projectile only gets “shot” once and travels along its x-axis. I would split the pins on the transform and the rotation and do the randomness thing there. The objects velocity will be handled by the physics engine based on its initial speed setting.

The static mesh I have here moves and rotates in world space but the projectile always spawns from in front of it. You should be able to apply the same principle to what you are trying to do.

projectile.PNG

Your probably not going to do anything physics related to the reference to your freshly spawned actor… let physics handle that. If you want to alter the arc you should change the discs mass or the initial speed. Of course you will want to apply the math for the randomness to the rotation not the location.