[Solved] Creating custom component ignores starting position.
Hi, im very new to this engine, im trying to create a custom component that adds a USphereComponent to an actor so it can interact with the gravity of other objects. This sphere component is created in a random position and i dont know why.
this is the code used:
this is the result.
Am i doing something wrong?
SOVLED! InitSphereRadius was moving the component. switching both lines did the job
You are setting the relative location of your collider, not the world location, so yes it's going to be relative to your static mesh component.
You can use :
This will set the world location so it should then be at 0,0,0.
Follow this question
Once you sign in you will be able to subscribe for any updates here