Change the size of the character
As mentioned in the Character body section, the local scale of the character should be <1,1,1> always. In order to modify the size of the character, you can use the following CharacterActor methods:
SetSize
Changes the size of the actor without checking for obstacles.
CheckSize
It performs an overlap test using the target size.
CheckAndSetSize
It performs an overlap test using the target size. If the test is valid (a.k.a no obstacles detected), it changes the size.
CheckAndInterpolate
It performs an overlap test using the target size. If the test is valid (a.k.a no obstacles detected), it begins to lerp the size from current to target size.
Last updated