targetRotation

The target rotation steps to move toward then on the ground.

When a sprite has a spinFactor greater than 0, it will spin when colliding with other objects or floors. This value represents the step to move toward its default orientation. For example, the default value is 90, which means that it will try and flip itself up on either a 0, 90, 180, or 270 degree axis (ensuring that a rectangular object is flat on the ground).

Setting this to 0 will make it stand back up on its original axis.


var Sprite3D.targetRotation: ERROR CLASS: Symbol not found for Triple<kotlin/Float, kotlin/Float, kotlin/Float>

The target rotation steps to move toward then on the ground.

When a sprite has a spinFactor greater than 0, it will spin when colliding with other objects or floors. This value represents the step to move toward its default orientation as a pair of pitch (X) to roll (Z). For example, the default value is 180 on XZ and 360 on Y, which means that it will try and flip itself up on either a 0, or 180 degree axis on both X and Z (ensuring that a rectangular object is flat on the ground) and can face any direction on Y.

Setting this to 0 to 0 to 0 will make it stand back up on its original axis.