Shoot and spin the actor

I want to spin the actor based on where the linecast lands on the actor.
If the raycast lands on one side. The actor spins in that direction. If it lands on the opposite side. The actor spins briefly. I’m not using physics because I need the blueprint to be able to control the actions somewhat of the actor. So using torque is probably not an option… Unless there is a smart way to use rigidbodies?..

At the moment it is align the spin of the direction via the actors forward vector. Which means it can’t really spin. As shown in the video demonstration. I’m trying to avoid a scenario where I unparent rotate the actor and reparent the mesh. unless there is some other smart way to change the transfroms without altering the child meshes.

Crossproduct to determine Right Vector. Dot product of hit vector and crossproduct to get a 1, 0, or -1. Make branch to determine direction spin based on dot product.

1 Like