first pass of changing transform to use float for scale internally rather than Vector3
This commit is contained in:
@@ -241,7 +241,7 @@ namespace PhysXEditorTests
|
||||
SetPolygonPrismHeight(entityId, 2.0f);
|
||||
|
||||
// update the transform scale and non-uniform scale
|
||||
AZ::TransformBus::Event(entityId, &AZ::TransformBus::Events::SetLocalScale, AZ::Vector3(2.0f));
|
||||
AZ::TransformBus::Event(entityId, &AZ::TransformBus::Events::SetLocalUniformScale, 2.0f);
|
||||
AZ::NonUniformScaleRequestBus::Event(entityId, &AZ::NonUniformScaleRequests::SetScale, AZ::Vector3(0.5f, 1.5f, 2.0f));
|
||||
|
||||
EntityPtr gameEntity = CreateActiveGameEntityFromEditorEntity(editorEntity.get());
|
||||
@@ -435,8 +435,8 @@ namespace PhysXEditorTests
|
||||
&LmbrCentral::BoxShapeComponentRequests::GetBoxDimensions);
|
||||
|
||||
// update the transform
|
||||
const AZ::Vector3 scale(2.0f);
|
||||
AZ::TransformBus::Event(editorEntityId, &AZ::TransformInterface::SetLocalScale, scale);
|
||||
const float scale = 2.0f;
|
||||
AZ::TransformBus::Event(editorEntityId, &AZ::TransformInterface::SetLocalUniformScale, scale);
|
||||
const AZ::Vector3 translation(10.0f, 20.0f, 30.0f);
|
||||
AZ::TransformBus::Event(editorEntityId, &AZ::TransformInterface::SetWorldTranslation, translation);
|
||||
|
||||
@@ -527,10 +527,8 @@ namespace PhysXEditorTests
|
||||
editorParentEntity->Activate();
|
||||
|
||||
// set some scale to parent entity
|
||||
const AZ::Vector3 parentScale(2.0f);
|
||||
AZ::TransformBus::Event(editorParentEntity->GetId(),
|
||||
&AZ::TransformInterface::SetLocalScale,
|
||||
parentScale);
|
||||
const float parentScale = 2.0f;
|
||||
AZ::TransformBus::Event(editorParentEntity->GetId(), &AZ::TransformInterface::SetLocalUniformScale, parentScale);
|
||||
|
||||
// create an editor child entity with a shape collider component and a box shape component
|
||||
EntityPtr editorChildEntity = CreateInactiveEditorEntity("ChildEntity");
|
||||
|
||||
Reference in New Issue
Block a user