3d67be162c
* New Heightfield Components Signed-off-by: John Jones-Steele <jjjoness@amazon.com> * Misc PR fixes * Fixed linux build failure from bad #include * Renamed "Terrain Physics Collider" to "Terrain Physics Heightfield Collider" per physics team feedback * Fixed 1/5 -> 1/4 typo in a comment * Added missing member copies in HeightfieldShapeConfiguration Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Addressed PR feedback Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Changes from review Signed-off-by: John Jones-Steele <jjjoness@amazon.com> * Remove tabs accidently added Signed-off-by: John Jones-Steele <jjjoness@amazon.com> * Fixed overly complicated scaling math. Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Added comments to make it more obvious what's happening on CreateEnd / DestroyBegin. Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Moved Heightfield CreatePxGeometryFromConfig into its own function Signed-off-by: John Jones-Steele <jjjoness@amazon.com> Co-authored-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com>
53 lines
2.0 KiB
C++
53 lines
2.0 KiB
C++
/*
|
|
* Copyright (c) Contributors to the Open 3D Engine Project.
|
|
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0 OR MIT
|
|
*
|
|
*/
|
|
|
|
#include <Source/EditorComponentDescriptors.h>
|
|
|
|
#include <Source/EditorBallJointComponent.h>
|
|
#include <Source/EditorColliderComponent.h>
|
|
#include <Source/EditorFixedJointComponent.h>
|
|
#include <Source/EditorForceRegionComponent.h>
|
|
#include <Source/EditorHeightfieldColliderComponent.h>
|
|
#include <Source/EditorHingeJointComponent.h>
|
|
#include <Source/EditorJointComponent.h>
|
|
#include <Source/EditorRigidBodyComponent.h>
|
|
#include <Source/EditorShapeColliderComponent.h>
|
|
#include <Source/PhysXCharacters/Components/EditorCharacterControllerComponent.h>
|
|
#include <Source/PhysXCharacters/Components/EditorCharacterGameplayComponent.h>
|
|
#include <Source/Pipeline/MeshBehavior.h>
|
|
#include <Source/Pipeline/MeshExporter.h>
|
|
#include <Editor/Source/Components/EditorSystemComponent.h>
|
|
|
|
|
|
namespace PhysX
|
|
{
|
|
AZStd::list<AZ::ComponentDescriptor*> GetEditorDescriptors()
|
|
{
|
|
AZStd::list<AZ::ComponentDescriptor*> descriptors =
|
|
{
|
|
EditorBallJointComponent::CreateDescriptor(),
|
|
EditorCharacterControllerComponent::CreateDescriptor(),
|
|
EditorCharacterGameplayComponent::CreateDescriptor(),
|
|
EditorColliderComponent::CreateDescriptor(),
|
|
EditorFixedJointComponent::CreateDescriptor(),
|
|
EditorForceRegionComponent::CreateDescriptor(),
|
|
EditorHeightfieldColliderComponent::CreateDescriptor(),
|
|
EditorHingeJointComponent::CreateDescriptor(),
|
|
EditorJointComponent::CreateDescriptor(),
|
|
EditorRigidBodyComponent::CreateDescriptor(),
|
|
EditorShapeColliderComponent::CreateDescriptor(),
|
|
EditorSystemComponent::CreateDescriptor(),
|
|
Pipeline::MeshBehavior::CreateDescriptor(),
|
|
Pipeline::MeshExporter::CreateDescriptor()
|
|
};
|
|
|
|
return descriptors;
|
|
}
|
|
|
|
} // namespace PhysX
|