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.

CharacterActor.SetSize(size, sizeReferenceType);

CheckSize

It performs an overlap test using the target size.

CharacterActor.CheckSize(position, size, in filter);

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.

CharacterActor.CheckAndSetSize(position, size, in filter, sizeReferenceType);

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.

CharacterActor.CheckAndInterpolateSize(size, lerpFactor, in filter, sizeReferenceType);

Last updated