Set Gravity Scale does not work in runtime for Character

xx_pooya_xx
Thu, 19 Mar 2026 06:12:02 +0000
Programming & Scripting

Hello. I am building a project where the player can scale down to 1000X smaller and normal size in runtime. I have done basically everything.

When the player becomes 1000X smaller, in actuality, the environment and everything else is becoming 1000X bigger and the player is unaffected. When player becomes the normal size, it changes everything to normal size.

For an AI companion character that I have, I am scaling him up 1000X like everything else in the sceme. Physics and everything I got them to work (was a hassle).

HOWEVER, The problem comes in when I want to scale the gravity up. When the character is 1000X bigger, when he is falling, it looks like he is floating. I tried setting Gravity Scale in the CharacterMovementComponent to 1000 On Player Change Size To Tiny. However, this does not seem to work at all for some reason. BUT if I set it before starting to play the game, the character will have 1000 Gravity Scale. How do I change it in runtime? Am I doing anything wrong here like a state update for the character’s state or something?

Thanks.

2 posts - 1 participant