I have a 2D prefab with a box collider 2d, rigidbody2d and a script.
Then when i press “SPACE” i do this :
Rigidbody2D att2;
att2 = Instantiate (att, tra.position,tra.rotation) as Rigidbody2D;
And then, the prefab (att) is instantiated in the scene but in goes up… the y axis change but i don’t know why…
And then what can i do to move the object to the right or left??
The object is an attack to throw
Thank you