freddyatlantis
Member
Hi,
I'm inside of a custom Jump Task for BD. I'm connecting to the UltimateCharacterLocomotion component (var name = enemy), and making the AI character jump. The idea is that he jumps over the player's head and attacks from behind, but I can only get the thing to jump straight up and down.
This bit works:
enemy.AddForce(Vector3.up * jumpForce, 2, false);
and I've tried this:
player.AddForce(new Vector3(horizontalForce, jumpForce, horizontalForce), 2, false);
also added this:
player.SetPositionAndRotation(Vector3.forward * horizontalForce, Quaternion.identity);
which works, but obviously the character doesnt move to the new position smoothly, just appears there
I suppose I'm approaching this incorrectly?
I'm inside of a custom Jump Task for BD. I'm connecting to the UltimateCharacterLocomotion component (var name = enemy), and making the AI character jump. The idea is that he jumps over the player's head and attacks from behind, but I can only get the thing to jump straight up and down.
This bit works:
enemy.AddForce(Vector3.up * jumpForce, 2, false);
and I've tried this:
player.AddForce(new Vector3(horizontalForce, jumpForce, horizontalForce), 2, false);
also added this:
player.SetPositionAndRotation(Vector3.forward * horizontalForce, Quaternion.identity);
which works, but obviously the character doesnt move to the new position smoothly, just appears there
I suppose I'm approaching this incorrectly?