Hi, Unity newbie here looking for some probably dead simple help,
Basically I have a object that rotates around y with the horizontal keys, and on “Jump” this object spawns a item with code applied to it making move with a force, I would like the Direction of the force to match the direction of the spawn.
If this makes sense, I looked eulerAngles but to no avail…
My Code on the Force is
var power : float = 3000;
function Start () {
rigidbody.AddForce(Vector3(0,0,power));
}
Obviously I would need to get eulerangle of the rotation and write it into the Var power?
here is a image , basically the arrow rotates around the football, and the item using force is spawned from the arrow…
All help is definitely greatfully received thanks!!!