ShV Geschrieben 2. Mai 2020 Melden Share Geschrieben 2. Mai 2020 Ich habe folgendes Script geschrieben: public class Shoot : MonoBehaviour { public Transform Bulletspawn; Rigidbody2D clone; public Rigidbody2D bulletPrefap; public float bulletSpeed = 100f; // Start is called before the first frame update void Start() { } // Update is called once per frame void Attack() { clone = Instantiate(bulletPrefap, Bulletspawn.position, Bulletspawn.rotation); clone.AddForce(Bulletspawn.transform.right * bulletSpeed); } } aber die Kugel spawnt nicht an der Stelle, wo sich der Spawner befindet. Woran liegt das? Zitieren Link zu diesem Kommentar Auf anderen Seiten teilen More sharing options...
ShV Geschrieben 2. Mai 2020 Autor Melden Share Geschrieben 2. Mai 2020 hat sich erledigt Zitieren Link zu diesem Kommentar Auf anderen Seiten teilen More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.