Scale is reset to 1.0 after moving a Prop using MoveTo or TeleportTo

Reference ID

90bd57a5-44b1-b10c-3e0e-0ba64ee18230

Please select what you are reporting on:

Creative

What Type of Bug are you experiencing?

Assets

Summary

Scale is reset to 1.0 after moving a Prop using MoveTo or TeleportTo

Steps to Reproduce

    @editable
    VolumeArray:[]volume_device = array{}
    @editable
    CheckPointArray:[]creative_prop = array{}

    OnBegin<override>()<suspends>:void=
        for (Index -> Volume : VolumeArray):
            Position := Volume.GetTransform()
            if (CheckPoint := CheckPointArray[Index],CheckPoint.TeleportTo[Position]):

Running this code will reset the scale.

Expected Result

I don’t want the scale to reset when I move.

Observed Result

Scale reverts to 10.0 → 1.0 when moved

Platform(s)

windows

That’s not a bug. The thing you labeled position is actually a transform (which is translation, rotation and scale).

1 Like

Yes you should maintain scale, or use unscaled props and devices so you do not have to manually set scale.

1 Like
    transform{Scale := vector3{X:=1.0,Y:=1.0,Z:=1.0},Rotation:=rotation{},Translation:=vector3{X:=1.0,Y:=1.0,Z:=1.0}}

This way we can also declare Transform. Thanks.