java.lang.Object
physx.NativeObject
physx.PxTopLevelFunctions
-
Nested Class Summary
Nested classes/interfaces inherited from class physx.NativeObject
NativeObject.Allocator<T> -
Field Summary
FieldsFields inherited from class physx.NativeObject
address, isExternallyAllocated, SIZEOF_BYTE, SIZEOF_DOUBLE, SIZEOF_FLOAT, SIZEOF_INT, SIZEOF_LONG, SIZEOF_POINTER, SIZEOF_SHORT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PxTopLevelFunctionsarrayGet(long baseAddress, int index) static PxRigidDynamicCloneDynamic(PxPhysics physicsSDK, PxTransform transform, PxRigidDynamic from) static PxShapeCloneShape(PxPhysics physics, PxShape from, boolean isExclusive) static PxRigidStaticCloneStatic(PxPhysics physicsSDK, PxTransform transform, PxRigidActor from) static voidstatic booleanCookConvexMesh(PxCookingParams params, PxConvexMeshDesc desc, PxOutputStream stream) static booleanCookTriangleMesh(PxCookingParams params, PxTriangleMeshDesc desc, PxOutputStream stream) static PxControllerManagerCreateControllerManager(PxScene scene) static PxControllerManagerCreateControllerManager(PxScene scene, boolean lockingEnabled) static PxConvexMeshCreateConvexMesh(PxCookingParams params, PxConvexMeshDesc desc) static PxRigidDynamicCreateDynamic(PxPhysics sdk, PxTransform transform, PxGeometry geometry, PxMaterial material, float density) static PxRigidDynamicCreateDynamic(PxPhysics sdk, PxTransform transform, PxGeometry geometry, PxMaterial material, float density, PxTransform shapeOffset) static PxRigidDynamicCreateDynamicFromShape(PxPhysics sdk, PxTransform transform, PxShape shape, float density) static PxFoundationCreateFoundation(int version, PxDefaultAllocator allocator, PxErrorCallback errorCallback) static PxHeightFieldstatic PxRigidDynamicCreateKinematic(PxPhysics sdk, PxTransform transform, PxGeometry geometry, PxMaterial material, float density) static PxRigidDynamicCreateKinematic(PxPhysics sdk, PxTransform transform, PxGeometry geometry, PxMaterial material, float density, PxTransform shapeOffset) static PxRigidDynamicCreateKinematicFromShape(PxPhysics sdk, PxTransform transform, PxShape shape, float density) static PxOmniPvdCreateOmniPvd(PxFoundation foundation) static PxPhysicsCreatePhysics(int version, PxFoundation foundation, PxTolerancesScale params) static PxPhysicsCreatePhysics(int version, PxFoundation foundation, PxTolerancesScale params, PxPvd pvd) static PxPhysicsCreatePhysics(int version, PxFoundation foundation, PxTolerancesScale params, PxPvd pvd, PxOmniPvd omniPvd) static PxRigidStaticCreatePlane(PxPhysics sdk, PxPlane plane, PxMaterial material) static PxPvdCreatePvd(PxFoundation foundation) static PxRigidStaticCreateStatic(PxPhysics sdk, PxTransform transform, PxGeometry geometry, PxMaterial material, PxTransform shapeOffset) static PxRigidStaticCreateStaticFromShape(PxPhysics sdk, PxTransform transform, PxShape shape) static PxTriangleMeshCreateTriangleMesh(PxCookingParams params, PxTriangleMeshDesc desc) static PxD6JointD6JointCreate(PxPhysics physics, PxRigidActor actor0, PxTransform localFrame0, PxRigidActor actor1, PxTransform localFrame1) static PxDefaultCpuDispatcherDefaultCpuDispatcherCreate(int numThreads) static PxSimulationFilterShaderstatic PxPvdTransportDefaultPvdSocketTransportCreate(String host, int port, int timeoutInMilliseconds) static PxDistanceJointDistanceJointCreate(PxPhysics physics, PxRigidActor actor0, PxTransform localFrame0, PxRigidActor actor1, PxTransform localFrame1) static PxFixedJointFixedJointCreate(PxPhysics physics, PxRigidActor actor0, PxTransform localFrame0, PxRigidActor actor1, PxTransform localFrame1) static PxGearJointGearJointCreate(PxPhysics physics, PxRigidActor actor0, PxTransform localFrame0, PxRigidActor actor1, PxTransform localFrame1) static intstatic booleanInitExtensions(PxPhysics physics) static voidIntegrateTransform(PxTransform curTrans, PxVec3 linvel, PxVec3 angvel, float timeStep, PxTransform result) static PxPrismaticJointPrismaticJointCreate(PxPhysics physics, PxRigidActor actor0, PxTransform localFrame0, PxRigidActor actor1, PxTransform localFrame1) static PxRackAndPinionJointRackAndPinionJointCreate(PxPhysics physics, PxRigidActor actor0, PxTransform localFrame0, PxRigidActor actor1, PxTransform localFrame1) static PxRevoluteJointRevoluteJointCreate(PxPhysics physics, PxRigidActor actor0, PxTransform localFrame0, PxRigidActor actor1, PxTransform localFrame1) static voidScaleRigidActor(PxRigidActor actor, float scale, boolean scaleMassProps) static voidsetupPassThroughFilterShader(PxSceneDesc sceneDesc, PassThroughFilterShader filterShader) static PxSphericalJointSphericalJointCreate(PxPhysics physics, PxRigidActor actor0, PxTransform localFrame0, PxRigidActor actor1, PxTransform localFrame1) static PxTopLevelFunctionswrapPointer(long address) Methods inherited from class physx.NativeObject
checkNotNull, equals, getAddress, hashCode
-
Field Details
-
SIZEOF
public static final int SIZEOF -
ALIGNOF
public static final int ALIGNOF- See Also:
-
-
Constructor Details
-
PxTopLevelFunctions
protected PxTopLevelFunctions() -
PxTopLevelFunctions
protected PxTopLevelFunctions(long address)
-
-
Method Details
-
wrapPointer
-
arrayGet
-
getPHYSICS_VERSION
public static int getPHYSICS_VERSION()- Returns:
- WebIDL type: unsigned long
-
DefaultFilterShader
- Returns:
- WebIDL type:
PxSimulationFilterShader[Value]
-
setupPassThroughFilterShader
public static void setupPassThroughFilterShader(PxSceneDesc sceneDesc, PassThroughFilterShader filterShader) - Parameters:
sceneDesc- WebIDL type:PxSceneDescfilterShader- WebIDL type:PassThroughFilterShader
-
CreateControllerManager
- Parameters:
scene- WebIDL type:PxScene[Ref]- Returns:
- WebIDL type:
PxControllerManager
-
CreateControllerManager
- Parameters:
scene- WebIDL type:PxScene[Ref]lockingEnabled- WebIDL type: boolean- Returns:
- WebIDL type:
PxControllerManager
-
CreateFoundation
public static PxFoundation CreateFoundation(int version, PxDefaultAllocator allocator, PxErrorCallback errorCallback) - Parameters:
version- WebIDL type: unsigned longallocator- WebIDL type:PxDefaultAllocator[Ref]errorCallback- WebIDL type:PxErrorCallback[Ref]- Returns:
- WebIDL type:
PxFoundation
-
CreatePhysics
public static PxPhysics CreatePhysics(int version, PxFoundation foundation, PxTolerancesScale params) - Parameters:
version- WebIDL type: unsigned longfoundation- WebIDL type:PxFoundation[Ref]params- WebIDL type:PxTolerancesScale[Const, Ref]- Returns:
- WebIDL type:
PxPhysics
-
CreatePhysics
public static PxPhysics CreatePhysics(int version, PxFoundation foundation, PxTolerancesScale params, PxPvd pvd) - Parameters:
version- WebIDL type: unsigned longfoundation- WebIDL type:PxFoundation[Ref]params- WebIDL type:PxTolerancesScale[Const, Ref]pvd- WebIDL type:PxPvd[Nullable]- Returns:
- WebIDL type:
PxPhysics
-
CreatePhysics
public static PxPhysics CreatePhysics(int version, PxFoundation foundation, PxTolerancesScale params, PxPvd pvd, PxOmniPvd omniPvd) - Parameters:
version- WebIDL type: unsigned longfoundation- WebIDL type:PxFoundation[Ref]params- WebIDL type:PxTolerancesScale[Const, Ref]pvd- WebIDL type:PxPvd[Nullable]omniPvd- WebIDL type:PxOmniPvd[Nullable]- Returns:
- WebIDL type:
PxPhysics
-
DefaultCpuDispatcherCreate
- Parameters:
numThreads- WebIDL type: unsigned long- Returns:
- WebIDL type:
PxDefaultCpuDispatcher
-
InitExtensions
- Parameters:
physics- WebIDL type:PxPhysics[Ref]- Returns:
- WebIDL type: boolean
-
CloseExtensions
public static void CloseExtensions() -
CreatePvd
- Parameters:
foundation- WebIDL type:PxFoundation[Ref]- Returns:
- WebIDL type:
PxPvd
-
DefaultPvdSocketTransportCreate
public static PxPvdTransport DefaultPvdSocketTransportCreate(String host, int port, int timeoutInMilliseconds) - Parameters:
host- WebIDL type: DOMStringport- WebIDL type: longtimeoutInMilliseconds- WebIDL type: unsigned long- Returns:
- WebIDL type:
PxPvdTransport[Platforms=windows;linux;macos]
-
CreateOmniPvd
- Parameters:
foundation- WebIDL type:PxFoundation[Ref]- Returns:
- WebIDL type:
PxOmniPvd[Platforms=windows;linux;macos]
-
D6JointCreate
public static PxD6Joint D6JointCreate(PxPhysics physics, PxRigidActor actor0, PxTransform localFrame0, PxRigidActor actor1, PxTransform localFrame1) - Parameters:
physics- WebIDL type:PxPhysics[Ref]actor0- WebIDL type:PxRigidActor[Nullable]localFrame0- WebIDL type:PxTransform[Ref]actor1- WebIDL type:PxRigidActor[Nullable]localFrame1- WebIDL type:PxTransform[Ref]- Returns:
- WebIDL type:
PxD6Joint
-
DistanceJointCreate
public static PxDistanceJoint DistanceJointCreate(PxPhysics physics, PxRigidActor actor0, PxTransform localFrame0, PxRigidActor actor1, PxTransform localFrame1) - Parameters:
physics- WebIDL type:PxPhysics[Ref]actor0- WebIDL type:PxRigidActor[Nullable]localFrame0- WebIDL type:PxTransform[Ref]actor1- WebIDL type:PxRigidActor[Nullable]localFrame1- WebIDL type:PxTransform[Ref]- Returns:
- WebIDL type:
PxDistanceJoint
-
FixedJointCreate
public static PxFixedJoint FixedJointCreate(PxPhysics physics, PxRigidActor actor0, PxTransform localFrame0, PxRigidActor actor1, PxTransform localFrame1) - Parameters:
physics- WebIDL type:PxPhysics[Ref]actor0- WebIDL type:PxRigidActor[Nullable]localFrame0- WebIDL type:PxTransform[Ref]actor1- WebIDL type:PxRigidActor[Nullable]localFrame1- WebIDL type:PxTransform[Ref]- Returns:
- WebIDL type:
PxFixedJoint
-
GearJointCreate
public static PxGearJoint GearJointCreate(PxPhysics physics, PxRigidActor actor0, PxTransform localFrame0, PxRigidActor actor1, PxTransform localFrame1) - Parameters:
physics- WebIDL type:PxPhysics[Ref]actor0- WebIDL type:PxRigidActorlocalFrame0- WebIDL type:PxTransform[Ref]actor1- WebIDL type:PxRigidActorlocalFrame1- WebIDL type:PxTransform[Ref]- Returns:
- WebIDL type:
PxGearJoint
-
PrismaticJointCreate
public static PxPrismaticJoint PrismaticJointCreate(PxPhysics physics, PxRigidActor actor0, PxTransform localFrame0, PxRigidActor actor1, PxTransform localFrame1) - Parameters:
physics- WebIDL type:PxPhysics[Ref]actor0- WebIDL type:PxRigidActor[Nullable]localFrame0- WebIDL type:PxTransform[Ref]actor1- WebIDL type:PxRigidActor[Nullable]localFrame1- WebIDL type:PxTransform[Ref]- Returns:
- WebIDL type:
PxPrismaticJoint
-
RackAndPinionJointCreate
public static PxRackAndPinionJoint RackAndPinionJointCreate(PxPhysics physics, PxRigidActor actor0, PxTransform localFrame0, PxRigidActor actor1, PxTransform localFrame1) - Parameters:
physics- WebIDL type:PxPhysics[Ref]actor0- WebIDL type:PxRigidActorlocalFrame0- WebIDL type:PxTransform[Ref]actor1- WebIDL type:PxRigidActorlocalFrame1- WebIDL type:PxTransform[Ref]- Returns:
- WebIDL type:
PxRackAndPinionJoint
-
RevoluteJointCreate
public static PxRevoluteJoint RevoluteJointCreate(PxPhysics physics, PxRigidActor actor0, PxTransform localFrame0, PxRigidActor actor1, PxTransform localFrame1) - Parameters:
physics- WebIDL type:PxPhysics[Ref]actor0- WebIDL type:PxRigidActor[Nullable]localFrame0- WebIDL type:PxTransform[Ref]actor1- WebIDL type:PxRigidActor[Nullable]localFrame1- WebIDL type:PxTransform[Ref]- Returns:
- WebIDL type:
PxRevoluteJoint
-
SphericalJointCreate
public static PxSphericalJoint SphericalJointCreate(PxPhysics physics, PxRigidActor actor0, PxTransform localFrame0, PxRigidActor actor1, PxTransform localFrame1) - Parameters:
physics- WebIDL type:PxPhysics[Ref]actor0- WebIDL type:PxRigidActor[Nullable]localFrame0- WebIDL type:PxTransform[Ref]actor1- WebIDL type:PxRigidActor[Nullable]localFrame1- WebIDL type:PxTransform[Ref]- Returns:
- WebIDL type:
PxSphericalJoint
-
CreateConvexMesh
- Parameters:
params- WebIDL type:PxCookingParams[Const, Ref]desc- WebIDL type:PxConvexMeshDesc[Const, Ref]- Returns:
- WebIDL type:
PxConvexMesh
-
CreateTriangleMesh
- Parameters:
params- WebIDL type:PxCookingParams[Const, Ref]desc- WebIDL type:PxTriangleMeshDesc[Const, Ref]- Returns:
- WebIDL type:
PxTriangleMesh
-
CreateHeightField
- Parameters:
desc- WebIDL type:PxHeightFieldDesc[Const, Ref]- Returns:
- WebIDL type:
PxHeightField
-
CookTriangleMesh
public static boolean CookTriangleMesh(PxCookingParams params, PxTriangleMeshDesc desc, PxOutputStream stream) - Parameters:
params- WebIDL type:PxCookingParams[Const, Ref]desc- WebIDL type:PxTriangleMeshDesc[Const, Ref]stream- WebIDL type:PxOutputStream[Ref]- Returns:
- WebIDL type: boolean
-
CookConvexMesh
public static boolean CookConvexMesh(PxCookingParams params, PxConvexMeshDesc desc, PxOutputStream stream) - Parameters:
params- WebIDL type:PxCookingParams[Const, Ref]desc- WebIDL type:PxConvexMeshDesc[Const, Ref]stream- WebIDL type:PxOutputStream[Ref]- Returns:
- WebIDL type: boolean
-
CreateDynamicFromShape
public static PxRigidDynamic CreateDynamicFromShape(PxPhysics sdk, PxTransform transform, PxShape shape, float density) - Parameters:
sdk- WebIDL type:PxPhysics[Ref]transform- WebIDL type:PxTransform[Const, Ref]shape- WebIDL type:PxShape[Ref]density- WebIDL type: float- Returns:
- WebIDL type:
PxRigidDynamic
-
CreateDynamic
public static PxRigidDynamic CreateDynamic(PxPhysics sdk, PxTransform transform, PxGeometry geometry, PxMaterial material, float density) - Parameters:
sdk- WebIDL type:PxPhysics[Ref]transform- WebIDL type:PxTransform[Const, Ref]geometry- WebIDL type:PxGeometry[Const, Ref]material- WebIDL type:PxMaterial[Ref]density- WebIDL type: float- Returns:
- WebIDL type:
PxRigidDynamic
-
CreateDynamic
public static PxRigidDynamic CreateDynamic(PxPhysics sdk, PxTransform transform, PxGeometry geometry, PxMaterial material, float density, PxTransform shapeOffset) - Parameters:
sdk- WebIDL type:PxPhysics[Ref]transform- WebIDL type:PxTransform[Const, Ref]geometry- WebIDL type:PxGeometry[Const, Ref]material- WebIDL type:PxMaterial[Ref]density- WebIDL type: floatshapeOffset- WebIDL type:PxTransform[Const, Ref]- Returns:
- WebIDL type:
PxRigidDynamic
-
CreateKinematicFromShape
public static PxRigidDynamic CreateKinematicFromShape(PxPhysics sdk, PxTransform transform, PxShape shape, float density) - Parameters:
sdk- WebIDL type:PxPhysics[Ref]transform- WebIDL type:PxTransform[Const, Ref]shape- WebIDL type:PxShape[Ref]density- WebIDL type: float- Returns:
- WebIDL type:
PxRigidDynamic
-
CreateKinematic
public static PxRigidDynamic CreateKinematic(PxPhysics sdk, PxTransform transform, PxGeometry geometry, PxMaterial material, float density) - Parameters:
sdk- WebIDL type:PxPhysics[Ref]transform- WebIDL type:PxTransform[Const, Ref]geometry- WebIDL type:PxGeometry[Const, Ref]material- WebIDL type:PxMaterial[Ref]density- WebIDL type: float- Returns:
- WebIDL type:
PxRigidDynamic
-
CreateKinematic
public static PxRigidDynamic CreateKinematic(PxPhysics sdk, PxTransform transform, PxGeometry geometry, PxMaterial material, float density, PxTransform shapeOffset) - Parameters:
sdk- WebIDL type:PxPhysics[Ref]transform- WebIDL type:PxTransform[Const, Ref]geometry- WebIDL type:PxGeometry[Const, Ref]material- WebIDL type:PxMaterial[Ref]density- WebIDL type: floatshapeOffset- WebIDL type:PxTransform[Const, Ref]- Returns:
- WebIDL type:
PxRigidDynamic
-
CreateStaticFromShape
public static PxRigidStatic CreateStaticFromShape(PxPhysics sdk, PxTransform transform, PxShape shape) - Parameters:
sdk- WebIDL type:PxPhysics[Ref]transform- WebIDL type:PxTransform[Const, Ref]shape- WebIDL type:PxShape[Ref]- Returns:
- WebIDL type:
PxRigidStatic
-
CreateStatic
public static PxRigidStatic CreateStatic(PxPhysics sdk, PxTransform transform, PxGeometry geometry, PxMaterial material, PxTransform shapeOffset) - Parameters:
sdk- WebIDL type:PxPhysics[Ref]transform- WebIDL type:PxTransform[Const, Ref]geometry- WebIDL type:PxGeometry[Const, Ref]material- WebIDL type:PxMaterial[Ref]shapeOffset- WebIDL type:PxTransform[Const, Ref]- Returns:
- WebIDL type:
PxRigidStatic
-
CreatePlane
- Parameters:
sdk- WebIDL type:PxPhysics[Ref]plane- WebIDL type:PxPlane[Const, Ref]material- WebIDL type:PxMaterial[Ref]- Returns:
- WebIDL type:
PxRigidStatic
-
CloneShape
-
CloneStatic
public static PxRigidStatic CloneStatic(PxPhysics physicsSDK, PxTransform transform, PxRigidActor from) - Parameters:
physicsSDK- WebIDL type:PxPhysics[Ref]transform- WebIDL type:PxTransform[Const, Ref]from- WebIDL type:PxRigidActor[Const, Ref]- Returns:
- WebIDL type:
PxRigidStatic
-
CloneDynamic
public static PxRigidDynamic CloneDynamic(PxPhysics physicsSDK, PxTransform transform, PxRigidDynamic from) - Parameters:
physicsSDK- WebIDL type:PxPhysics[Ref]transform- WebIDL type:PxTransform[Const, Ref]from- WebIDL type:PxRigidDynamic[Const, Ref]- Returns:
- WebIDL type:
PxRigidDynamic
-
ScaleRigidActor
- Parameters:
actor- WebIDL type:PxRigidActor[Ref]scale- WebIDL type: floatscaleMassProps- WebIDL type: boolean
-
IntegrateTransform
public static void IntegrateTransform(PxTransform curTrans, PxVec3 linvel, PxVec3 angvel, float timeStep, PxTransform result) - Parameters:
curTrans- WebIDL type:PxTransform[Const, Ref]linvel- WebIDL type:PxVec3[Const, Ref]angvel- WebIDL type:PxVec3[Const, Ref]timeStep- WebIDL type: floatresult- WebIDL type:PxTransform[Ref]
-