objects not spawn where they should
When I try to spawn a particle effect where the hand is, it spawns where it is shown in this picture instead of in the position that is given. I have no idea why this is happening. The only thing that I can think of is that I am somehow messing up MoveTowards but I do not think so.
//charging effect
if (chargeCur > 10 && chargeCur < 10.7)
{
ArrowCharging = Instantiate(ArrowChargingObj, Arm.position, Arm.rotation);
}
if (ArrowCharging != null)
{
ArrowCharging.transform.position = Vector3.MoveTowards(transform.position, Arm.position, 1);
}
Answer by Vollmondum · Mar 13, 2019 at 09:22 AM
Prefabs instantiate at its pivot aligned to spawn spot pivot. Check both. Your model's arm pivot is where the particle is created
Your answer
![](https://koobas.hobune.stream/wayback/20220612193500im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
[c#] Increase speed of instantiating over time!? 1 Answer
Spawning prefabs randomly within a rectangle 1 Answer
Set Destination can only be called on an active agent, problem when instanciating. 0 Answers
Make a collision check when spawning with Instantiate 1 Answer
I got Some Error about how to Transform Postiton Enemy where one point can spawn 2 enemies. 1 Answer