feat(physics): wire physx sdk into build
This commit is contained in:
53
engine/third_party/physx/source/physxextensions/src/omnipvd/ExtOmniPvdRegistrationData.cpp
vendored
Normal file
53
engine/third_party/physx/source/physxextensions/src/omnipvd/ExtOmniPvdRegistrationData.cpp
vendored
Normal file
@@ -0,0 +1,53 @@
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
// * Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
// * Redistributions in binary form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the distribution.
|
||||
// * Neither the name of NVIDIA CORPORATION nor the names of its
|
||||
// contributors may be used to endorse or promote products derived
|
||||
// from this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ''AS IS'' AND ANY
|
||||
// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
||||
// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
||||
// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
//
|
||||
// Copyright (c) 2008-2025 NVIDIA Corporation. All rights reserved.
|
||||
// Copyright (c) 2004-2008 AGEIA Technologies, Inc. All rights reserved.
|
||||
// Copyright (c) 2001-2004 NovodeX AG. All rights reserved.
|
||||
|
||||
#include "ExtOmniPvdRegistrationData.h"
|
||||
|
||||
#if PX_SUPPORT_OMNI_PVD
|
||||
|
||||
namespace physx
|
||||
{
|
||||
namespace Ext
|
||||
{
|
||||
|
||||
void OmniPvdPxExtensionsRegistrationData::registerData(OmniPvdWriter& writer)
|
||||
{
|
||||
// auto-generate class/attribute registration code from object definition file
|
||||
#define OMNI_PVD_WRITER_VAR writer
|
||||
|
||||
#include "omnipvd/CmOmniPvdAutoGenRegisterData.h"
|
||||
#include "OmniPvdPxExtensionsTypes.h"
|
||||
#include "omnipvd/CmOmniPvdAutoGenClearDefines.h"
|
||||
|
||||
#undef OMNI_PVD_WRITER_VAR
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
72
engine/third_party/physx/source/physxextensions/src/omnipvd/ExtOmniPvdRegistrationData.h
vendored
Normal file
72
engine/third_party/physx/source/physxextensions/src/omnipvd/ExtOmniPvdRegistrationData.h
vendored
Normal file
@@ -0,0 +1,72 @@
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
// * Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
// * Redistributions in binary form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the distribution.
|
||||
// * Neither the name of NVIDIA CORPORATION nor the names of its
|
||||
// contributors may be used to endorse or promote products derived
|
||||
// from this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ''AS IS'' AND ANY
|
||||
// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
||||
// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
||||
// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
//
|
||||
// Copyright (c) 2008-2025 NVIDIA Corporation. All rights reserved.
|
||||
// Copyright (c) 2004-2008 AGEIA Technologies, Inc. All rights reserved.
|
||||
// Copyright (c) 2001-2004 NovodeX AG. All rights reserved.
|
||||
|
||||
#ifndef EXT_OMNI_PVD_REGISTRATION_DATA_H
|
||||
#define EXT_OMNI_PVD_REGISTRATION_DATA_H
|
||||
|
||||
|
||||
#if PX_SUPPORT_OMNI_PVD
|
||||
|
||||
#include "../pvdruntime/include/OmniPvdWriter.h"
|
||||
|
||||
#include "extensions/PxD6Joint.h" // for PxD6Motion
|
||||
#include "extensions/PxDistanceJoint.h" // for PxDistanceJointFlags
|
||||
#include "extensions/PxPrismaticJoint.h" // for PxPrismaticJointFlags
|
||||
#include "extensions/PxRevoluteJoint.h" // for PxRevoluteJointFlags
|
||||
#include "extensions/PxSphericalJoint.h" // for PxSphericalJointFlags
|
||||
#include "extensions/PxCustomGeometryExt.h" // for PxCustomGeometryExtBaseConvexCallbacks etc.
|
||||
|
||||
|
||||
namespace physx
|
||||
{
|
||||
|
||||
class PxFixedJoint;
|
||||
class PxGearJoint;
|
||||
class PxRackAndPinionJoint;
|
||||
|
||||
|
||||
namespace Ext
|
||||
{
|
||||
|
||||
struct OmniPvdPxExtensionsRegistrationData
|
||||
{
|
||||
void registerData(OmniPvdWriter&);
|
||||
|
||||
// auto-generate members and setter methods from object definition file
|
||||
#include "omnipvd/CmOmniPvdAutoGenCreateRegistrationStruct.h"
|
||||
#include "OmniPvdPxExtensionsTypes.h"
|
||||
#include "omnipvd/CmOmniPvdAutoGenClearDefines.h"
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif // PX_SUPPORT_OMNI_PVD
|
||||
|
||||
#endif // EXT_OMNI_PVD_REGISTRATION_DATA_H
|
||||
68
engine/third_party/physx/source/physxextensions/src/omnipvd/ExtOmniPvdSetData.h
vendored
Normal file
68
engine/third_party/physx/source/physxextensions/src/omnipvd/ExtOmniPvdSetData.h
vendored
Normal file
@@ -0,0 +1,68 @@
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
// * Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
// * Redistributions in binary form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the distribution.
|
||||
// * Neither the name of NVIDIA CORPORATION nor the names of its
|
||||
// contributors may be used to endorse or promote products derived
|
||||
// from this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ''AS IS'' AND ANY
|
||||
// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
||||
// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
||||
// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
//
|
||||
// Copyright (c) 2008-2025 NVIDIA Corporation. All rights reserved.
|
||||
// Copyright (c) 2004-2008 AGEIA Technologies, Inc. All rights reserved.
|
||||
// Copyright (c) 2001-2004 NovodeX AG. All rights reserved.
|
||||
|
||||
#ifndef EXT_OMNI_PVD_SET_DATA_H
|
||||
#define EXT_OMNI_PVD_SET_DATA_H
|
||||
|
||||
|
||||
//
|
||||
// This header has to be included to use macros like OMNI_PVD_SET() (set attribute values,
|
||||
// object instance registration etc.)
|
||||
//
|
||||
|
||||
|
||||
#define OMNI_PVD_CONTEXT_HANDLE 1
|
||||
|
||||
|
||||
#if PX_SUPPORT_OMNI_PVD
|
||||
|
||||
#include "OmniPvdPxExtensionsSampler.h"
|
||||
#include "omnipvd/PxOmniPvd.h"
|
||||
|
||||
//
|
||||
// Define the macros needed in CmOmniPvdAutoGenSetData.h
|
||||
//
|
||||
#undef OMNI_PVD_GET_WRITER
|
||||
#define OMNI_PVD_GET_WRITER(writer) \
|
||||
physx::PxOmniPvd::ScopedExclusiveWriter writeLock(physx::Ext::OmniPvdGetInstance()); \
|
||||
OmniPvdWriter* writer = writeLock.getWriter();
|
||||
|
||||
|
||||
#undef OMNI_PVD_GET_REGISTRATION_DATA
|
||||
#define OMNI_PVD_GET_REGISTRATION_DATA(registrationData) \
|
||||
const OmniPvdPxExtensionsRegistrationData* registrationData = physx::Ext::OmniPvdGetPxExtensionsRegistrationData();
|
||||
|
||||
#endif // PX_SUPPORT_OMNI_PVD
|
||||
|
||||
|
||||
#include "omnipvd/CmOmniPvdAutoGenSetData.h"
|
||||
// note: included in all cases since it will provide empty definitions of the helper macros such
|
||||
// that not all of them have to be guarded by PX_SUPPORT_OMNI_PVD
|
||||
|
||||
|
||||
#endif // EXT_OMNI_PVD_SET_DATA_H
|
||||
123
engine/third_party/physx/source/physxextensions/src/omnipvd/OmniPvdPxExtensionsSampler.cpp
vendored
Normal file
123
engine/third_party/physx/source/physxextensions/src/omnipvd/OmniPvdPxExtensionsSampler.cpp
vendored
Normal file
@@ -0,0 +1,123 @@
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
// * Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
// * Redistributions in binary form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the distribution.
|
||||
// * Neither the name of NVIDIA CORPORATION nor the names of its
|
||||
// contributors may be used to endorse or promote products derived
|
||||
// from this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ''AS IS'' AND ANY
|
||||
// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
||||
// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
||||
// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
//
|
||||
// Copyright (c) 2008-2025 NVIDIA Corporation. All rights reserved.
|
||||
// Copyright (c) 2004-2008 AGEIA Technologies, Inc. All rights reserved.
|
||||
// Copyright (c) 2001-2004 NovodeX AG. All rights reserved.
|
||||
|
||||
|
||||
#if PX_SUPPORT_OMNI_PVD
|
||||
|
||||
#include "OmniPvdPxExtensionsSampler.h"
|
||||
#include "omnipvd/PxOmniPvd.h"
|
||||
|
||||
|
||||
using namespace physx;
|
||||
|
||||
|
||||
void OmniPvdPxExtensionsSampler::registerClasses()
|
||||
{
|
||||
PxOmniPvd::ScopedExclusiveWriter scope(mOmniPvdInstance);
|
||||
OmniPvdWriter* writer = scope.getWriter();
|
||||
if (writer)
|
||||
{
|
||||
mRegistrationData.registerData(*mOmniPvdInstance->getWriter());
|
||||
}
|
||||
}
|
||||
|
||||
OmniPvdPxExtensionsSampler::OmniPvdPxExtensionsSampler()
|
||||
{
|
||||
mOmniPvdInstance = NULL;
|
||||
}
|
||||
|
||||
OmniPvdPxExtensionsSampler::~OmniPvdPxExtensionsSampler()
|
||||
{
|
||||
}
|
||||
|
||||
void OmniPvdPxExtensionsSampler::setOmniPvdInstance(physx::PxOmniPvd* omniPvdInstance)
|
||||
{
|
||||
mOmniPvdInstance = omniPvdInstance;
|
||||
}
|
||||
|
||||
physx::PxOmniPvd* OmniPvdPxExtensionsSampler::getOmniPvdInstance() {
|
||||
return mOmniPvdInstance;
|
||||
}
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
static OmniPvdPxExtensionsSampler* gOmniPvdPxExtensionsSampler = NULL;
|
||||
|
||||
bool OmniPvdPxExtensionsSampler::createInstance()
|
||||
{
|
||||
gOmniPvdPxExtensionsSampler = PX_NEW(OmniPvdPxExtensionsSampler)();
|
||||
return gOmniPvdPxExtensionsSampler != NULL;
|
||||
}
|
||||
|
||||
OmniPvdPxExtensionsSampler* OmniPvdPxExtensionsSampler::getInstance()
|
||||
{
|
||||
return gOmniPvdPxExtensionsSampler;
|
||||
}
|
||||
|
||||
void OmniPvdPxExtensionsSampler::destroyInstance()
|
||||
{
|
||||
PX_DELETE(gOmniPvdPxExtensionsSampler);
|
||||
}
|
||||
|
||||
|
||||
namespace physx
|
||||
{
|
||||
namespace Ext
|
||||
{
|
||||
|
||||
const OmniPvdPxExtensionsRegistrationData* OmniPvdGetPxExtensionsRegistrationData()
|
||||
{
|
||||
OmniPvdPxExtensionsSampler* sampler = OmniPvdPxExtensionsSampler::getInstance();
|
||||
if (sampler)
|
||||
{
|
||||
return &sampler->getRegistrationData();
|
||||
}
|
||||
else
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
PxOmniPvd* OmniPvdGetInstance()
|
||||
{
|
||||
OmniPvdPxExtensionsSampler* sampler = OmniPvdPxExtensionsSampler::getInstance();
|
||||
if (sampler)
|
||||
{
|
||||
return sampler->getOmniPvdInstance();
|
||||
}
|
||||
else
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
79
engine/third_party/physx/source/physxextensions/src/omnipvd/OmniPvdPxExtensionsSampler.h
vendored
Normal file
79
engine/third_party/physx/source/physxextensions/src/omnipvd/OmniPvdPxExtensionsSampler.h
vendored
Normal file
@@ -0,0 +1,79 @@
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
// * Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
// * Redistributions in binary form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the distribution.
|
||||
// * Neither the name of NVIDIA CORPORATION nor the names of its
|
||||
// contributors may be used to endorse or promote products derived
|
||||
// from this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ''AS IS'' AND ANY
|
||||
// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
||||
// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
||||
// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
//
|
||||
// Copyright (c) 2008-2025 NVIDIA Corporation. All rights reserved.
|
||||
// Copyright (c) 2004-2008 AGEIA Technologies, Inc. All rights reserved.
|
||||
// Copyright (c) 2001-2004 NovodeX AG. All rights reserved.
|
||||
|
||||
#ifndef OMNI_PVD_EXTENSION_SAMPLER_H
|
||||
#define OMNI_PVD_EXTENSION_SAMPLER_H
|
||||
|
||||
|
||||
#if PX_SUPPORT_OMNI_PVD
|
||||
|
||||
#include "foundation/PxUserAllocated.h"
|
||||
|
||||
#include "ExtOmniPvdRegistrationData.h"
|
||||
|
||||
namespace physx
|
||||
{
|
||||
class PxOmniPvd;
|
||||
}
|
||||
|
||||
|
||||
class OmniPvdPxExtensionsSampler : public physx::PxUserAllocated
|
||||
{
|
||||
public:
|
||||
OmniPvdPxExtensionsSampler();
|
||||
~OmniPvdPxExtensionsSampler();
|
||||
void setOmniPvdInstance(physx::PxOmniPvd* omniPvdInstance);
|
||||
physx::PxOmniPvd* getOmniPvdInstance();
|
||||
void registerClasses();
|
||||
|
||||
const physx::Ext::OmniPvdPxExtensionsRegistrationData& getRegistrationData() const { return mRegistrationData; }
|
||||
|
||||
// OmniPvdPxExtensionsSampler singleton
|
||||
static bool createInstance();
|
||||
static OmniPvdPxExtensionsSampler* getInstance();
|
||||
static void destroyInstance();
|
||||
|
||||
private:
|
||||
physx::PxOmniPvd* mOmniPvdInstance;
|
||||
physx::Ext::OmniPvdPxExtensionsRegistrationData mRegistrationData;
|
||||
};
|
||||
|
||||
|
||||
namespace physx
|
||||
{
|
||||
namespace Ext
|
||||
{
|
||||
|
||||
const OmniPvdPxExtensionsRegistrationData* OmniPvdGetPxExtensionsRegistrationData();
|
||||
PxOmniPvd* OmniPvdGetInstance();
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
294
engine/third_party/physx/source/physxextensions/src/omnipvd/OmniPvdPxExtensionsTypes.h
vendored
Normal file
294
engine/third_party/physx/source/physxextensions/src/omnipvd/OmniPvdPxExtensionsTypes.h
vendored
Normal file
@@ -0,0 +1,294 @@
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
// modification, are permitted provided that the following conditions
|
||||
// are met:
|
||||
// * Redistributions of source code must retain the above copyright
|
||||
// notice, this list of conditions and the following disclaimer.
|
||||
// * Redistributions in binary form must reproduce the above copyright
|
||||
// notice, this list of conditions and the following disclaimer in the
|
||||
// documentation and/or other materials provided with the distribution.
|
||||
// * Neither the name of NVIDIA CORPORATION nor the names of its
|
||||
// contributors may be used to endorse or promote products derived
|
||||
// from this software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ''AS IS'' AND ANY
|
||||
// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
||||
// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
||||
// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
//
|
||||
// Copyright (c) 2008-2025 NVIDIA Corporation. All rights reserved.
|
||||
// Copyright (c) 2004-2008 AGEIA Technologies, Inc. All rights reserved.
|
||||
// Copyright (c) 2001-2004 NovodeX AG. All rights reserved.
|
||||
|
||||
// Declare OMNI_PVD Types and Attributes here!
|
||||
// The last two attribute parameters could now be derived from the other data, so could be removed in a refactor,
|
||||
// though explicit control may be better.
|
||||
// Note that HANDLE attributes have to use (Type const *) style, otherwise it won't compile!
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Enums
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
OMNI_PVD_ENUM_BEGIN (PxConstraintFlag)
|
||||
OMNI_PVD_ENUM_VALUE (PxConstraintFlag, eBROKEN)
|
||||
OMNI_PVD_ENUM_VALUE (PxConstraintFlag, eCOLLISION_ENABLED)
|
||||
OMNI_PVD_ENUM_VALUE (PxConstraintFlag, eVISUALIZATION)
|
||||
OMNI_PVD_ENUM_VALUE (PxConstraintFlag, eDRIVE_LIMITS_ARE_FORCES)
|
||||
OMNI_PVD_ENUM_VALUE (PxConstraintFlag, eIMPROVED_SLERP)
|
||||
OMNI_PVD_ENUM_VALUE (PxConstraintFlag, eDISABLE_PREPROCESSING)
|
||||
OMNI_PVD_ENUM_VALUE (PxConstraintFlag, eENABLE_EXTENDED_LIMITS)
|
||||
OMNI_PVD_ENUM_VALUE (PxConstraintFlag, eGPU_COMPATIBLE)
|
||||
OMNI_PVD_ENUM_VALUE (PxConstraintFlag, eALWAYS_UPDATE)
|
||||
OMNI_PVD_ENUM_VALUE (PxConstraintFlag, eDISABLE_CONSTRAINT)
|
||||
OMNI_PVD_ENUM_END (PxConstraintFlag)
|
||||
|
||||
OMNI_PVD_ENUM_BEGIN (PxRevoluteJointFlag)
|
||||
OMNI_PVD_ENUM_VALUE (PxRevoluteJointFlag, eLIMIT_ENABLED)
|
||||
OMNI_PVD_ENUM_VALUE (PxRevoluteJointFlag, eDRIVE_ENABLED)
|
||||
OMNI_PVD_ENUM_VALUE (PxRevoluteJointFlag, eDRIVE_FREESPIN)
|
||||
OMNI_PVD_ENUM_END (PxRevoluteJointFlag)
|
||||
|
||||
OMNI_PVD_ENUM_BEGIN (PxPrismaticJointFlag)
|
||||
OMNI_PVD_ENUM_VALUE (PxPrismaticJointFlag, eLIMIT_ENABLED)
|
||||
OMNI_PVD_ENUM_END (PxPrismaticJointFlag)
|
||||
|
||||
OMNI_PVD_ENUM_BEGIN (PxDistanceJointFlag)
|
||||
OMNI_PVD_ENUM_VALUE (PxDistanceJointFlag, eMAX_DISTANCE_ENABLED)
|
||||
OMNI_PVD_ENUM_VALUE (PxDistanceJointFlag, eMIN_DISTANCE_ENABLED)
|
||||
OMNI_PVD_ENUM_VALUE (PxDistanceJointFlag, eSPRING_ENABLED)
|
||||
OMNI_PVD_ENUM_END (PxDistanceJointFlag)
|
||||
|
||||
OMNI_PVD_ENUM_BEGIN (PxSphericalJointFlag)
|
||||
OMNI_PVD_ENUM_VALUE (PxSphericalJointFlag, eLIMIT_ENABLED)
|
||||
OMNI_PVD_ENUM_END (PxSphericalJointFlag)
|
||||
|
||||
OMNI_PVD_ENUM_BEGIN (PxD6JointDriveFlag)
|
||||
OMNI_PVD_ENUM_VALUE (PxD6JointDriveFlag, eACCELERATION)
|
||||
OMNI_PVD_ENUM_VALUE (PxD6JointDriveFlag, eOUTPUT_FORCE)
|
||||
OMNI_PVD_ENUM_END (PxD6JointDriveFlag)
|
||||
|
||||
OMNI_PVD_ENUM_BEGIN (PxJointConcreteType)
|
||||
OMNI_PVD_ENUM_VALUE (PxJointConcreteType, eSPHERICAL)
|
||||
OMNI_PVD_ENUM_VALUE (PxJointConcreteType, eREVOLUTE)
|
||||
OMNI_PVD_ENUM_VALUE (PxJointConcreteType, ePRISMATIC)
|
||||
OMNI_PVD_ENUM_VALUE (PxJointConcreteType, eFIXED)
|
||||
OMNI_PVD_ENUM_VALUE (PxJointConcreteType, eDISTANCE)
|
||||
OMNI_PVD_ENUM_VALUE (PxJointConcreteType, eD6)
|
||||
OMNI_PVD_ENUM_VALUE (PxJointConcreteType, eGEAR)
|
||||
OMNI_PVD_ENUM_VALUE (PxJointConcreteType, eRACK_AND_PINION)
|
||||
OMNI_PVD_ENUM_END (PxJointConcreteType)
|
||||
|
||||
OMNI_PVD_ENUM_BEGIN (PxD6Motion)
|
||||
OMNI_PVD_ENUM_VALUE (PxD6Motion, eLOCKED)
|
||||
OMNI_PVD_ENUM_VALUE (PxD6Motion, eLIMITED)
|
||||
OMNI_PVD_ENUM_VALUE (PxD6Motion, eFREE)
|
||||
OMNI_PVD_ENUM_END (PxD6Motion)
|
||||
|
||||
OMNI_PVD_ENUM_BEGIN (PxD6AngularDriveConfig)
|
||||
OMNI_PVD_ENUM_VALUE (PxD6AngularDriveConfig, eSWING_TWIST)
|
||||
OMNI_PVD_ENUM_VALUE (PxD6AngularDriveConfig, eSLERP)
|
||||
OMNI_PVD_ENUM_VALUE (PxD6AngularDriveConfig, eLEGACY)
|
||||
OMNI_PVD_ENUM_END (PxD6AngularDriveConfig)
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Classes
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// PxJoint
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
OMNI_PVD_CLASS_BEGIN (PxJoint)
|
||||
OMNI_PVD_ATTRIBUTE (PxJoint, constraint, PxConstraint* const, OmniPvdDataType::eOBJECT_HANDLE)
|
||||
OMNI_PVD_ATTRIBUTE_FLAG (PxJoint, type, PxJointConcreteType::Enum, PxJointConcreteType)
|
||||
OMNI_PVD_ATTRIBUTE (PxJoint, actor0, PxRigidActor* const, OmniPvdDataType::eOBJECT_HANDLE)
|
||||
OMNI_PVD_ATTRIBUTE (PxJoint, actor1, PxRigidActor* const, OmniPvdDataType::eOBJECT_HANDLE)
|
||||
OMNI_PVD_ATTRIBUTE_ARRAY_FIXED_SIZE (PxJoint, actor0LocalPose, PxTransform, OmniPvdDataType::eFLOAT32, 7)
|
||||
OMNI_PVD_ATTRIBUTE_ARRAY_FIXED_SIZE (PxJoint, actor1LocalPose, PxTransform, OmniPvdDataType::eFLOAT32, 7)
|
||||
OMNI_PVD_ATTRIBUTE (PxJoint, breakForce, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE (PxJoint, breakTorque, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE_FLAG (PxJoint, constraintFlags, PxConstraintFlags, PxConstraintFlag)
|
||||
OMNI_PVD_ATTRIBUTE (PxJoint, invMassScale0, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE (PxJoint, invInertiaScale0, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE (PxJoint, invMassScale1, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE (PxJoint, invInertiaScale1, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE_STRING (PxJoint, name)
|
||||
OMNI_PVD_ATTRIBUTE_STRING (PxJoint, concreteTypeName)
|
||||
OMNI_PVD_CLASS_END (PxJoint)
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// PxFixedJoint
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
OMNI_PVD_CLASS_DERIVED_BEGIN (PxFixedJoint, PxJoint)
|
||||
OMNI_PVD_CLASS_END (PxFixedJoint)
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// PxPrismaticJoint
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
OMNI_PVD_CLASS_DERIVED_BEGIN (PxPrismaticJoint, PxJoint)
|
||||
OMNI_PVD_ATTRIBUTE (PxPrismaticJoint, position, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE (PxPrismaticJoint, velocity, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE (PxPrismaticJoint, limitLower, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE (PxPrismaticJoint, limitUpper, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE (PxPrismaticJoint, limitRestitution, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE (PxPrismaticJoint, limitBounceThreshold, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE (PxPrismaticJoint, limitStiffness, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE (PxPrismaticJoint, limitDamping, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE_FLAG (PxPrismaticJoint, jointFlags, PxPrismaticJointFlags, PxPrismaticJointFlag)
|
||||
OMNI_PVD_CLASS_END (PxPrismaticJoint)
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// PxRevoluteJoint
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
OMNI_PVD_CLASS_DERIVED_BEGIN (PxRevoluteJoint, PxJoint)
|
||||
OMNI_PVD_ATTRIBUTE (PxRevoluteJoint, angle, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE (PxRevoluteJoint, velocity, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE (PxRevoluteJoint, limitLower, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE (PxRevoluteJoint, limitUpper, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE (PxRevoluteJoint, limitRestitution, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE (PxRevoluteJoint, limitBounceThreshold, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE (PxRevoluteJoint, limitStiffness, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE (PxRevoluteJoint, limitDamping, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE (PxRevoluteJoint, driveVelocity, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE (PxRevoluteJoint, driveForceLimit, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE (PxRevoluteJoint, driveGearRatio, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE_FLAG (PxRevoluteJoint, jointFlags, PxRevoluteJointFlags, PxRevoluteJointFlag)
|
||||
OMNI_PVD_CLASS_END (PxRevoluteJoint)
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// PxSphericalJoint
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
OMNI_PVD_CLASS_DERIVED_BEGIN (PxSphericalJoint, PxJoint)
|
||||
OMNI_PVD_ATTRIBUTE (PxSphericalJoint, swingYAngle, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE (PxSphericalJoint, swingZAngle, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE (PxSphericalJoint, limitYAngle, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE (PxSphericalJoint, limitZAngle, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE (PxSphericalJoint, limitRestitution, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE (PxSphericalJoint, limitBounceThreshold, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE (PxSphericalJoint, limitStiffness, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE (PxSphericalJoint, limitDamping, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE_FLAG (PxSphericalJoint, jointFlags, PxSphericalJointFlags, PxSphericalJointFlag)
|
||||
OMNI_PVD_CLASS_END (PxSphericalJoint)
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// PxDistanceJoint
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
OMNI_PVD_CLASS_DERIVED_BEGIN (PxDistanceJoint, PxJoint)
|
||||
OMNI_PVD_ATTRIBUTE (PxDistanceJoint, distance, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE (PxDistanceJoint, minDistance, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE (PxDistanceJoint, maxDistance, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE (PxDistanceJoint, tolerance, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE (PxDistanceJoint, stiffness, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE (PxDistanceJoint, damping, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE_FLAG (PxDistanceJoint, jointFlags, PxDistanceJointFlags, PxDistanceJointFlag)
|
||||
OMNI_PVD_CLASS_END (PxDistanceJoint)
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// PxGearJoint
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
OMNI_PVD_CLASS_DERIVED_BEGIN (PxGearJoint, PxJoint)
|
||||
OMNI_PVD_ATTRIBUTE (PxGearJoint, ratio, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE_ARRAY_VARIABLE_SIZE (PxGearJoint, hinges, PxBase* const, OmniPvdDataType::eOBJECT_HANDLE)
|
||||
OMNI_PVD_CLASS_END (PxGearJoint)
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// PxRackAndPinionJoint
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
OMNI_PVD_CLASS_DERIVED_BEGIN (PxRackAndPinionJoint, PxJoint)
|
||||
OMNI_PVD_ATTRIBUTE (PxRackAndPinionJoint, ratio, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE_ARRAY_VARIABLE_SIZE (PxRackAndPinionJoint, joints, PxBase* const, OmniPvdDataType::eOBJECT_HANDLE)
|
||||
OMNI_PVD_CLASS_END (PxRackAndPinionJoint)
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// PxD6JointDrive
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
OMNI_PVD_CLASS_BEGIN (PxD6JointDrive)
|
||||
OMNI_PVD_ATTRIBUTE (PxD6JointDrive, stiffness, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE (PxD6JointDrive, damping, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE (PxD6JointDrive, forceLimit, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE_FLAG (PxD6JointDrive, flags, PxD6JointDriveFlags, PxD6JointDriveFlag)
|
||||
OMNI_PVD_CLASS_END (PxD6JointDrive)
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// PxD6Joint
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
OMNI_PVD_CLASS_DERIVED_BEGIN (PxD6Joint, PxJoint)
|
||||
OMNI_PVD_ATTRIBUTE (PxD6Joint, twistAngle, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE (PxD6Joint, swingYAngle, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE (PxD6Joint, swingZAngle, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE_ARRAY_VARIABLE_SIZE (PxD6Joint, motions, PxD6Motion::Enum, OmniPvdDataType::eUINT32)
|
||||
OMNI_PVD_ATTRIBUTE (PxD6Joint, distanceLimitValue, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE (PxD6Joint, distanceLimitRestitution, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE (PxD6Joint, distanceLimitBounceThreshold, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE (PxD6Joint, distanceLimitStiffness, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE (PxD6Joint, distanceLimitDamping, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE_ARRAY_VARIABLE_SIZE (PxD6Joint, linearLimitLower, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE_ARRAY_VARIABLE_SIZE (PxD6Joint, linearLimitUpper, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE_ARRAY_VARIABLE_SIZE (PxD6Joint, linearLimitRestitution, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE_ARRAY_VARIABLE_SIZE (PxD6Joint, linearLimitBounceThreshold, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE_ARRAY_VARIABLE_SIZE (PxD6Joint, linearLimitStiffness, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE_ARRAY_VARIABLE_SIZE (PxD6Joint, linearLimitDamping, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE (PxD6Joint, twistLimitLower, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE (PxD6Joint, twistLimitUpper, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE (PxD6Joint, twistLimitRestitution, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE (PxD6Joint, twistLimitBounceThreshold, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE (PxD6Joint, twistLimitStiffness, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE (PxD6Joint, twistLimitDamping, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE (PxD6Joint, swingLimitYAngle, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE (PxD6Joint, swingLimitZAngle, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE (PxD6Joint, swingLimitRestitution, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE (PxD6Joint, swingLimitBounceThreshold, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE (PxD6Joint, swingLimitStiffness, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE (PxD6Joint, swingLimitDamping, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE (PxD6Joint, pyramidSwingLimitYAngleMin, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE (PxD6Joint, pyramidSwingLimitYAngleMax, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE (PxD6Joint, pyramidSwingLimitZAngleMin, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE (PxD6Joint, pyramidSwingLimitZAngleMax, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE (PxD6Joint, pyramidSwingLimitRestitution, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE (PxD6Joint, pyramidSwingLimitBounceThreshold, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE (PxD6Joint, pyramidSwingLimitStiffness, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE (PxD6Joint, pyramidSwingLimitDamping, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE (PxD6Joint, driveX, PxD6JointDrive* const, OmniPvdDataType::eOBJECT_HANDLE)
|
||||
OMNI_PVD_ATTRIBUTE (PxD6Joint, driveY, PxD6JointDrive* const, OmniPvdDataType::eOBJECT_HANDLE)
|
||||
OMNI_PVD_ATTRIBUTE (PxD6Joint, driveZ, PxD6JointDrive* const, OmniPvdDataType::eOBJECT_HANDLE)
|
||||
OMNI_PVD_ATTRIBUTE (PxD6Joint, driveSwing, PxD6JointDrive* const, OmniPvdDataType::eOBJECT_HANDLE)
|
||||
OMNI_PVD_ATTRIBUTE (PxD6Joint, driveTwist, PxD6JointDrive* const, OmniPvdDataType::eOBJECT_HANDLE)
|
||||
OMNI_PVD_ATTRIBUTE (PxD6Joint, driveSlerp, PxD6JointDrive* const, OmniPvdDataType::eOBJECT_HANDLE)
|
||||
OMNI_PVD_ATTRIBUTE (PxD6Joint, driveSwing1, PxD6JointDrive* const, OmniPvdDataType::eOBJECT_HANDLE)
|
||||
OMNI_PVD_ATTRIBUTE (PxD6Joint, driveSwing2, PxD6JointDrive* const, OmniPvdDataType::eOBJECT_HANDLE)
|
||||
OMNI_PVD_ATTRIBUTE_ARRAY_FIXED_SIZE (PxD6Joint, drivePosition, PxTransform, OmniPvdDataType::eFLOAT32, 7)
|
||||
OMNI_PVD_ATTRIBUTE_ARRAY_FIXED_SIZE (PxD6Joint, driveLinVelocity, PxVec3, OmniPvdDataType::eFLOAT32, 3)
|
||||
OMNI_PVD_ATTRIBUTE_ARRAY_FIXED_SIZE (PxD6Joint, driveAngVelocity, PxVec3, OmniPvdDataType::eFLOAT32, 3)
|
||||
OMNI_PVD_ATTRIBUTE_FLAG (PxD6Joint, angularDriveConfig, PxD6AngularDriveConfig::Enum, PxD6AngularDriveConfig)
|
||||
OMNI_PVD_CLASS_END (PxD6Joint)
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// PxCustomGeometryExt::BaseConvexCallbacks
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
OMNI_PVD_CLASS_BEGIN (PxCustomGeometryExtBaseConvexCallbacks)
|
||||
OMNI_PVD_ATTRIBUTE (PxCustomGeometryExtBaseConvexCallbacks, margin, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_CLASS_END (PxCustomGeometryExtBaseConvexCallbacks)
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// PxCustomGeometryExt::CylinderCallbacks
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
OMNI_PVD_CLASS_DERIVED_BEGIN (PxCustomGeometryExtCylinderCallbacks, PxCustomGeometryExtBaseConvexCallbacks)
|
||||
OMNI_PVD_ATTRIBUTE (PxCustomGeometryExtCylinderCallbacks, height, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE (PxCustomGeometryExtCylinderCallbacks, radius, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE (PxCustomGeometryExtCylinderCallbacks, axis, PxI32, OmniPvdDataType::eINT32)
|
||||
OMNI_PVD_CLASS_END (PxCustomGeometryExtCylinderCallbacks)
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// PxCustomGeometryExt::ConeCallbacks
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
OMNI_PVD_CLASS_DERIVED_BEGIN (PxCustomGeometryExtConeCallbacks, PxCustomGeometryExtBaseConvexCallbacks)
|
||||
OMNI_PVD_ATTRIBUTE (PxCustomGeometryExtConeCallbacks, height, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE (PxCustomGeometryExtConeCallbacks, radius, PxReal, OmniPvdDataType::eFLOAT32)
|
||||
OMNI_PVD_ATTRIBUTE (PxCustomGeometryExtConeCallbacks, axis, PxI32, OmniPvdDataType::eINT32)
|
||||
OMNI_PVD_CLASS_END (PxCustomGeometryExtConeCallbacks)
|
||||
Reference in New Issue
Block a user