Hello everybody !
I’m new to Unreal and I’m currently participating in a game jam, but unfortunately I stepped upon an issue that I don’t know how to fix.
In our game the player can control a sphere that can roll around and absorb objects in the level to get bigger and bigger.
But I’m having an issue when scaling up the sphere, it mess with the collider and it looks like the sphere collider is way bigger than it should be in the game because I can’t get close to objects and I’m floating above the ground.
But the strange thing is that when I observe the level with “Player Collision” View mode the collider seems to be scaled the right way !
And the more I scale up my sphere, the bigger the gap between the visible sphere and the invisible collider gets. I still can get move the sphere, it’s not like it’s stuck.
Do you know where this issue could come from ? Or is there an another to achieve what i want to do ?
Thanks in advance !
The method that modifies the scale of my sphere :
void ASnowBall::Grow(float ModifGrowCoef, float ModifSpeedCoef)
{
FVector RelativeScale = SphereComp->GetRelativeScale3D();
RelativeScale=RelativeScale*(1+ModifGrowCoef);
SphereComp->SetRelativeScale3D(RelativeScale);
Speed*=(1+ModifSpeedCoef);
}