finally got my character into unity and all her basic animations work, got a shoot script from a tutorial working last night so she shoots a red sphere projectile, question is how i get the sphere to shoot from her right arm (gun), heres the script:
var projectile : Rigidbody;
var speed = 20;
function Update()
{
if( Input.GetButtonDown( “Fire1” ) )
{
var instantiatedProjectile : Rigidbody = Instantiate(
projectile, transform.position, transform.rotation );
instantiatedProjectile.velocity =
transform.TransformDirection( Vector3( 0, 0, speed ) );
Physics.IgnoreCollision( instantiatedProjectile. collider,
transform.root.collider );
}
}
wondering if theres a way to mod this so i can set x, y, and z values of where the sphere spawns in relation to her gun arm so it looks like she is shooting the sphere from that arm, …think Metroid and you’ll get what im aiming at.