TransformAdjustment

Class in ChivalrousGames.Common

Description

Configuration to adjust a Transform‘s local position, rotation and/or scale.

Fields

adjustPosition bool If true, will use the positionAdjustment to adjust position
positionAdjustment Vector3 The adjustment applied on the transform’s position
adjustRotation bool If true, will use the rotationAdjustment to adjust rotation
rotationAdjustment Vector3 The adjustment applied on the transform’s rotation
adjustScale bool If true, will use the scaleAdjustment to adjust scale
scaleAdjustment Vector3 The adjustment applied on the transform’s scale

Methods

AdjustTransform
public void AdjustTransform(Transform transform);
Parameters
transform Transform The transform to adjust
Description

Will apply adjustment to a Transform‘s local position, rotation and/or scale, depending on configurations.