Download

Set Random Object Impulse Direction Accuracy Based on Number

*EDIT: Using Blueprints
So here’s my situation. Gotta be a bit vague with what I’m working on cause I signed an NDA, but I’ll do my best to describe what I’m trying to achieve.

I have an object that hovers over a game board of sorts. This object uses negative impulse to shoot down at the board when a player initiates that specific action. The player will pick a desired target location by mouse/finger click. Based on player skill, accuracy will be determined at this point. I want this accuracy to change the ACTUAL target location based on RNG of (x,y) vector that surrounds player’s initial desired target location.

I made a quick image in Photoshop that should help with understanding what I’m trying to achieve.

Thank you in advance for any help you can provide!

7e992a44cc38325530bc01fc3fba25b46722e249.jpeg

Random Unit Vector in Cone

https://docs.unrealengine.com/latest/INT/BlueprintAPI/Math/Random/RandomUnitVectorinCone/index.html

That’s exactly what I was looking for! Perfect solution for what I need. Mahalo!