Closed SoftDevDanial closed 2 years ago
@SoftDevDanial Please upload a minimal reproduction project to make this easier to troubleshoot.
(This should be a complete working project, not just a single script.)
@Calinou I have attached the Minimal Reproduction Project. I opened two issues so this zip includes both issues. I will upload to other issue as well
Apparently, i forgot that when i add a child to the parent, it takes the origin of the parent. So ther3 is no bug in here.
Godot version
4.0-alpha4 , 4.0-alpha1
System information
Windows 10
Issue description
Hi,
So I made a 37x37 floor with gridmap and have a spawn script to spawn instances at a Point3D. In my script, i just assigned the position with the global_transform.origin of the Point3D. Below is my script of the spawner.
When it spawns, somehow its not spawning at the assign spot. Its consistently spawning at a different position. I already double checked all the scripts and nodes if i accidentally did something wrong but i could not find it. This is happening when i changed the gridmap from 13x13 to 37x37. I suspect it has to do something with adding too many of them.
Below is a console print that i made to check what i assigned. I printed out the position of the point3d and the position of the instance that i assigned in the spawner/point3d script and I printed the position on the _ready function in the spawned instance/characterbody3d
ps: This is like a tower defense game where the monsters go to certain points using the navigationregion3d
Steps to reproduce
This is my spawner script
Minimal reproduction project
Minimal Reproduction Project.zip