diff --git a/.vs/SpaceNation.Core.Physx/DesignTimeBuild/.dtbcache.v2 b/.vs/SpaceNation.Core.Physx/DesignTimeBuild/.dtbcache.v2
new file mode 100644
index 0000000..ad45369
Binary files /dev/null and b/.vs/SpaceNation.Core.Physx/DesignTimeBuild/.dtbcache.v2 differ
diff --git a/.vs/SpaceNation.Core.Physx/FileContentIndex/7845b8c5-091e-4df6-b8f8-d920cc632331.vsidx b/.vs/SpaceNation.Core.Physx/FileContentIndex/7845b8c5-091e-4df6-b8f8-d920cc632331.vsidx
new file mode 100644
index 0000000..8ea9ff3
Binary files /dev/null and b/.vs/SpaceNation.Core.Physx/FileContentIndex/7845b8c5-091e-4df6-b8f8-d920cc632331.vsidx differ
diff --git a/.vs/SpaceNation.Core.Physx/FileContentIndex/read.lock b/.vs/SpaceNation.Core.Physx/FileContentIndex/read.lock
new file mode 100644
index 0000000..e69de29
diff --git a/.vs/SpaceNation.Core.Physx/v17/.suo b/.vs/SpaceNation.Core.Physx/v17/.suo
new file mode 100644
index 0000000..14b19e1
Binary files /dev/null and b/.vs/SpaceNation.Core.Physx/v17/.suo differ
diff --git a/CPhysxlib/MagicPhysX.Toolkit.dll b/CPhysxlib/MagicPhysX.Toolkit.dll
new file mode 100644
index 0000000..2639360
Binary files /dev/null and b/CPhysxlib/MagicPhysX.Toolkit.dll differ
diff --git a/CPhysxlib/MagicPhysX.Toolkit.xml b/CPhysxlib/MagicPhysX.Toolkit.xml
new file mode 100644
index 0000000..037f9f3
--- /dev/null
+++ b/CPhysxlib/MagicPhysX.Toolkit.xml
@@ -0,0 +1,427 @@
+
+
+
+ MagicPhysX.Toolkit
+
+
+
+
+ A box-shaped primitive collider.
+
+
+
+
+ The center of the box, measured in the object's local space.
+
+
+
+
+ The size of the box, measured in the object's local space.
+
+
+
+
+ A capsule-shaped primitive collider.
+
+
+
+
+ The center of the capsule, measured in the object's local space.
+
+
+
+
+ The radius of the sphere, measured in the object's local space.
+
+
+
+
+ The height of the capsule measured in the object's local space.
+
+
+
+
+ A base class of all colliders.
+
+
+
+
+ The center of the plane in the object's local space.
+
+
+
+
+ A sphere-shaped primitive collider.
+
+
+
+
+ The center of the sphere in the object's local space.
+
+
+
+
+ The radius of the sphere measured in the object's local space.
+
+
+
+
+ The collision detection mode constants used for Rigidbody.collisionDetectionMode.
+
+
+
+
+ Continuous collision detection is off for this Rigidbody.
+
+
+
+
+ Continuous collision detection is on for colliding with static mesh geometry.
+
+
+
+
+ Continuous collision detection is on for colliding with static and dynamic geometry.
+
+
+
+
+ Speculative continuous collision detection is on for static and dynamic geometries
+
+
+
+
+ Use ForceMode to specify how to apply a force using Rigidbody.AddForce or ArticulationBody.AddForce.
+
+
+
+
+ Add a continuous force to the rigidbody, using its mass.
+
+
+
+
+ Add an instant force impulse to the rigidbody, using its mass.
+
+
+
+
+ Add an instant velocity change to the rigidbody, ignoring its mass.
+
+
+
+
+ Add a continuous acceleration to the rigidbody, ignoring its mass.
+
+
+
+
+ Receive collision and trigger events from all contact pairs except kinematic-kinematic and kinematic-static pairs.
+
+
+
+
+ Receive collision and trigger events from kinematic-kinematic contact pairs.
+
+
+
+
+ Receive collision and trigger events from kinematic-static contact pairs.
+
+
+
+
+ Receive collision and trigger events from all contact pairs.
+
+
+
+
+ A basic strong friction algorithm which typically leads to the most stable results at low solver iteration counts. This method uses only up to four scalar solver constraints per pair of touching objects.
+
+
+
+
+ A simplification of the Coulomb friction model, in which the friction for a given point of contact is applied in the alternating tangent directions of the contact’s normal. This requires more solver iterations than patch friction but is not as accurate as the two-directional model. For Articulation bodies to work with this friction type, set the Solver Type to Temporal Gauss Seidel.
+
+
+
+
+ Like the one-directional model, but applies friction in both tangent directions simultaneously. This requires more solver iterations but is more accurate. More expensive than patch friction for scenarios with many contact points because it is applied at every contact point. For Articulation bodies to work with this friction type, set the Solver Type to Temporal Gauss Seidel.
+
+
+
+
+ The default PhysX solver.
+
+
+
+
+ This solver offers a better convergence and a better handling of high-mass ratios, minimizes energy introduced when correcting penetrations and improves the resistance of joints
+ to overstretch. It usually helps when you experience some erratic behavior during simulation with the default solver.
+
+
+
+
+ Control of an object's position through physics simulation.
+
+
+
+
+ The velocity vector of the rigidbody. It represents the rate of change of Rigidbody position.
+
+
+
+
+ The angular velocity vector of the rigidbody measured in radians per second.
+
+
+
+
+ The drag of the object.
+
+
+
+
+ The angular drag of the object.
+
+
+
+
+ The mass of the rigidbody.
+
+
+
+
+ Controls whether gravity affects this rigidbody.
+
+
+
+
+ Maximum velocity of a rigidbody when moving out of penetrating state.
+
+
+
+
+ Controls whether physics affects the rigidbody.
+
+
+
+
+ Controls whether physics will change the rotation of the object.
+
+
+
+
+ Controls which degrees of freedom are allowed for the simulation of this Rigidbody.
+
+
+
+
+ The Rigidbody's collision detection mode.
+
+
+
+
+ The center of mass relative to the transform's origin.
+
+
+
+
+ The center of mass of the rigidbody in world space (Read Only).
+
+
+
+
+ The inertia tensor of this body, defined as a diagonal matrix in a reference frame positioned at this body's center of mass and rotated by Rigidbody.inertiaTensorRotation.
+
+
+
+
+ Should collision detection be enabled? (By default always enabled).
+
+
+
+
+ The position of the rigidbody.
+
+
+
+
+ The rotation of the Rigidbody.
+
+
+
+
+ The solverIterations determines how accurately Rigidbody joints and collision contacts are resolved. Overrides Physics.defaultSolverIterations. Must be positive.
+
+
+
+
+ The mass-normalized energy threshold, below which objects start going to sleep.
+
+
+
+
+ The maximimum angular velocity of the rigidbody measured in radians per second. (Default 7) range { 0, infinity }.
+
+
+
+
+ The solverVelocityIterations affects how how accurately Rigidbody joints and collision contacts are resolved. Overrides Physics.defaultSolverVelocityIterations. Must be positive.
+
+
+
+
+ Sets the mass based on the attached colliders assuming a constant density.
+
+
+
+
+
+ Forces a rigidbody to sleep at least one frame.
+
+
+
+
+ Is the rigidbody sleeping?
+
+
+
+
+ Forces a rigidbody to wake up.
+
+
+
+
+ Reset the center of mass of the rigidbody.
+
+
+
+
+ Reset the inertia tensor value and rotation.
+
+
+
+
+ Adds a force to the Rigidbody.
+
+ Force vector in world coordinates.
+ Type of force to apply.
+
+
+
+ Adds a force to the Rigidbody.
+
+ Force vector in world coordinates.
+
+
+
+ Adds a force to the rigidbody relative to its coordinate system.
+
+ Force vector in local coordinates.
+ Type of force to apply.
+
+
+
+ Adds a force to the rigidbody relative to its coordinate system.
+
+ Force vector in local coordinates.
+
+
+
+ Adds a torque to the rigidbody.
+
+ Torque vector in world coordinates.
+ The type of torque to apply.
+
+
+
+ Adds a torque to the rigidbody.
+
+ Torque vector in world coordinates.
+
+
+
+ Adds a torque to the rigidbody relative to its coordinate system.
+
+ Torque vector in local coordinates.
+ Type of force to apply.
+
+
+
+ Adds a torque to the rigidbody relative to its coordinate system.
+
+ Torque vector in local coordinates.
+
+
+
+ Applies force at position. As a result this will apply a torque and force on the object.
+
+ Force vector in world coordinates.
+ Position in world coordinates.
+ Type of force to apply.
+
+
+
+ Applies force at position. As a result this will apply a torque and force on the object.
+
+ Force vector in world coordinates.
+ Position in world coordinates.
+
+
+
+ Use these flags to constrain motion of Rigidbodies.
+
+
+
+
+ No constraints.
+
+
+
+
+ Freeze motion along the X-axis.
+
+
+
+
+ Freeze motion along the Y-axis.
+
+
+
+
+ Freeze motion along the Z-axis.
+
+
+
+
+ Freeze motion along all axes.
+
+
+
+
+ Freeze rotation along the X-axis.
+
+
+
+
+ Freeze rotation along the Y-axis.
+
+
+
+
+ Freeze rotation along the Z-axis.
+
+
+
+
+ Freeze rotation along all axes.
+
+
+
+
+ Freeze rotation and motion along all axes.
+
+
+
+
diff --git a/CPhysxlib/MagicPhysX.dll b/CPhysxlib/MagicPhysX.dll
new file mode 100644
index 0000000..846b1af
Binary files /dev/null and b/CPhysxlib/MagicPhysX.dll differ
diff --git a/CPhysxlib/MagicPhysX.xml b/CPhysxlib/MagicPhysX.xml
new file mode 100644
index 0000000..7a82349
--- /dev/null
+++ b/CPhysxlib/MagicPhysX.xml
@@ -0,0 +1,8783 @@
+
+
+
+ MagicPhysX
+
+
+
+ Destroy the returned callback object using PxQueryFilterCallback_delete.
+
+
+ Destroy the returned callback object using PxQueryFilterCallback_delete.
+
+
+ New interface to handle simulation events, replacing create_contact_callback.
+
+
+ Override the default filter shader in the scene with a custom function. If call_default_filter_shader_first is set to true, this will first call the built-in PhysX filter (that matches Physx 2.8 behavior) before your callback.
+
+
+ (hidden) Should only be used in testing etc! This isn't generated as we don't generate op functions.
+
+
+ Allocates size bytes of memory, which must be 16-byte aligned. This method should never return NULL. If you run out of memory, then you should terminate the app or take some other appropriate action. Threading: This function should be thread safe as it can be called in the context of the user thread and physics processing thread(s). The allocated block of memory.
+
+
+ Frees memory previously allocated by allocate(). Threading: This function should be thread safe as it can be called in the context of the user thread and physics processing thread(s).
+
+
+ Destroys the instance it is called on. The operation will fail, if there are still modules referencing the foundation object. Release all dependent modules prior to calling this method.
+
+
+ retrieves error callback
+
+
+ Sets mask of errors to report.
+
+
+ Retrieves mask of errors to be reported.
+
+
+ Retrieves the allocator this object was created with.
+
+
+ Retrieves if allocation names are being passed to allocator callback.
+
+
+ Set if allocation names are being passed to allocator callback. Enabled by default in debug and checked build, disabled by default in profile and release build.
+
+
+ Creates an instance of the foundation class The foundation class is needed to initialize higher level SDKs. There may be only one instance per process. Calling this method after an instance has been created already will result in an error message and NULL will be returned. Foundation instance on success, NULL if operation failed
+
+
+ Get the callback that will be used for all profiling.
+
+
+ Set the callback that will be used for all profiling.
+
+
+ Get the allocator callback
+
+
+ Get the broadcasting allocator callback
+
+
+ Get the error callback
+
+
+ Get the broadcasting error callback
+
+
+ Get the warn once timestamp
+
+
+ Decrement the ref count of PxFoundation
+
+
+ Increment the ref count of PxFoundation
+
+
+ Sets the bytes of the provided buffer to zero. Pointer to memory block (same as input)
+
+
+ Sets the bytes of the provided buffer to the specified value. Pointer to memory block (same as input)
+
+
+ Copies the bytes of one memory block to another. The memory blocks must not overlap. Use [`PxMemMove`] if memory blocks overlap. Pointer to destination memory block
+
+
+ Copies the bytes of one memory block to another. The memory blocks can overlap. Use [`PxMemCopy`] if memory blocks do not overlap. Pointer to destination memory block
+
+
+ Mark a specified amount of memory with 0xcd pattern. This is used to check that the meta data definition for serialized classes is complete in checked builds.
+
+
+ Return the index of the highest set bit. Undefined for zero arg.
+
+
+ Return the index of the highest set bit. Undefined for zero arg.
+
+
+ Returns the index of the highest set bit. Returns 32 for v=0.
+
+
+ Prefetch aligned 64B x86, 32b ARM around
+
+
+ Prefetch bytes starting at
+
+
+ Return the index of the highest set bit. Not valid for zero arg.
+
+
+ Return the index of the highest set bit. Not valid for zero arg.
+
+
+ default constructor leaves data uninitialized.
+
+
+ zero constructor.
+
+
+ Assigns scalar parameter to all elements. Useful to initialize to zero or one.
+
+
+ Initializes from 3 scalar parameters.
+
+
+ tests for exact zero vector
+
+
+ returns true if all 3 elems of the vector are finite (not NAN or INF, etc.)
+
+
+ is normalized - used by API parameter validation
+
+
+ returns the squared magnitude Avoids calling PxSqrt()!
+
+
+ returns the magnitude
+
+
+ returns the scalar product of this and other.
+
+
+ cross product
+
+
+ returns a unit vector
+
+
+ normalizes the vector in place
+
+
+ normalizes the vector in place. Does nothing if vector magnitude is under PX_NORMALIZATION_EPSILON. Returns vector magnitude if >= PX_NORMALIZATION_EPSILON and 0.0f otherwise.
+
+
+ normalizes the vector in place. Asserts if vector magnitude is under PX_NORMALIZATION_EPSILON. returns vector magnitude.
+
+
+ a[i] * b[i], for all i.
+
+
+ element-wise minimum
+
+
+ returns MIN(x, y, z);
+
+
+ element-wise maximum
+
+
+ returns MAX(x, y, z);
+
+
+ returns absolute values of components;
+
+
+ Default constructor, does not do any initialization.
+
+
+ identity constructor
+
+
+ Constructor from a scalar: sets the real part w to the scalar value, and the imaginary parts (x,y,z) to zero
+
+
+ Constructor. Take note of the order of the elements!
+
+
+ Creates from angle-axis representation. Axis must be normalized! Angle is in radians! Unit: Radians
+
+
+ Creates from orientation matrix.
+
+
+ returns true if quat is identity
+
+
+ returns true if all elements are finite (not NAN or INF, etc.)
+
+
+ returns true if finite and magnitude is close to unit
+
+
+ returns true if finite and magnitude is reasonably close to unit to allow for some accumulation of error vs isValid
+
+
+ converts this quaternion to angle-axis representation
+
+
+ Gets the angle between this quat and the identity quaternion. Unit: Radians
+
+
+ Gets the angle between this quat and the argument Unit: Radians
+
+
+ This is the squared 4D vector length, should be 1 for unit quaternions.
+
+
+ returns the scalar product of this and other.
+
+
+ maps to the closest unit quaternion.
+
+
+ brief computes rotation of x-axis
+
+
+ brief computes rotation of y-axis
+
+
+ brief computes rotation of z-axis
+
+
+ rotates passed vec by this (assumed unitary)
+
+
+ inverse rotates passed vec by this (assumed unitary)
+
+
+ Transform transform to parent (returns compound transform: first src, then *this)
+
+
+ returns true if finite and q is a unit quaternion
+
+
+ returns true if finite and quat magnitude is reasonably close to unit to allow for some accumulation of error vs isValid
+
+
+ returns true if all elems are finite (not NAN or INF, etc.)
+
+
+ Transform transform from parent (returns compound transform: first src, then this->inverse)
+
+
+ return a normalized transform (i.e. one in which the quaternion has unit magnitude)
+
+
+ Default constructor
+
+
+ identity constructor
+
+
+ zero constructor
+
+
+ Construct from three base vectors
+
+
+ constructor from a scalar, which generates a multiple of the identity matrix
+
+
+ Construct from float[9]
+
+
+ Construct from a quaternion
+
+
+ Construct from diagonal, off-diagonals are zero.
+
+
+ Computes the outer product of two vectors
+
+
+ Get transposed matrix
+
+
+ Get the real inverse
+
+
+ Get determinant
+
+
+ Transform vector by matrix, equal to v' = M*v
+
+
+ Transform vector by matrix transpose, v' = M^t*v
+
+
+ Default constructor, not performing any initialization for performance reason. Use empty() function below to construct empty bounds.
+
+
+ Construct from two bounding points
+
+
+ Return empty bounds.
+
+
+ returns the AABB containing v0 and v1.
+
+
+ returns the AABB from center and extents vectors.
+
+
+ Construct from center, extent, and (not necessarily orthogonal) basis
+
+
+ Construct from pose and extent
+
+
+ gets the transformed bounds of the passed AABB (resulting in a bigger AABB). This version is safe to call for empty bounds.
+
+
+ gets the transformed bounds of the passed AABB (resulting in a bigger AABB). Calling this method for empty bounds leads to undefined behavior. Use [`transformSafe`]() instead.
+
+
+ gets the transformed bounds of the passed AABB (resulting in a bigger AABB). This version is safe to call for empty bounds.
+
+
+ gets the transformed bounds of the passed AABB (resulting in a bigger AABB). Calling this method for empty bounds leads to undefined behavior. Use [`transformSafe`]() instead.
+
+
+ Sets empty to true
+
+
+ Sets the bounds to maximum size [-PX_MAX_BOUNDS_EXTENTS, PX_MAX_BOUNDS_EXTENTS].
+
+
+ expands the volume to include v
+
+
+ expands the volume to include b.
+
+
+ indicates whether the intersection of this and b is empty or not.
+
+
+ computes the 1D-intersection between two AABBs, on a given axis.
+
+
+ indicates if these bounds contain v.
+
+
+ checks a box is inside another box.
+
+
+ returns the center of this axis aligned box.
+
+
+ get component of the box's center along a given axis
+
+
+ get component of the box's extents along a given axis
+
+
+ returns the dimensions (width/height/depth) of this axis aligned box.
+
+
+ returns the extents, which are half of the width/height/depth.
+
+
+ scales the AABB. This version is safe to call for empty bounds.
+
+
+ scales the AABB. Calling this method for empty bounds leads to undefined behavior. Use [`scaleSafe`]() instead.
+
+
+ fattens the AABB in all 3 dimensions by the given distance. This version is safe to call for empty bounds.
+
+
+ fattens the AABB in all 3 dimensions by the given distance. Calling this method for empty bounds leads to undefined behavior. Use [`fattenSafe`]() instead.
+
+
+ checks that the AABB values are not NaN
+
+
+ checks that the AABB values describe a valid configuration.
+
+
+ Finds the closest point in the box to the point p. If p is contained, this will be p, otherwise it will be the closest point on the surface of the box.
+
+
+ Reports an error code.
+
+
+ callback when memory is allocated.
+
+
+ callback when memory is deallocated.
+
+
+ The default constructor.
+
+
+ The default constructor.
+
+
+ Allocates size bytes of memory, which must be 16-byte aligned. This method should never return NULL. If you run out of memory, then you should terminate the app or take some other appropriate action. Threading: This function should be thread safe as it can be called in the context of the user thread and physics processing thread(s). The allocated block of memory.
+
+
+ Frees memory previously allocated by allocate(). Threading: This function should be thread safe as it can be called in the context of the user thread and physics processing thread(s).
+
+
+ The default constructor.
+
+
+ The default destructor.
+
+
+ Reports an error code.
+
+
+ Enables floating point exceptions for the scalar and SIMD unit
+
+
+ Disables floating point exceptions for the scalar and SIMD unit
+
+
+ read from the stream. The number of bytes read may be less than the number requested. the number of bytes read from the stream.
+
+
+ return the length of the input data size in bytes of the input data
+
+
+ seek to the given offset from the start of the data.
+
+
+ return the current offset from the start of the data the offset to seek to.
+
+
+ write to the stream. The number of bytes written may be less than the number sent. the number of bytes written to the stream by this call.
+
+
+ default constructor leaves data uninitialized.
+
+
+ zero constructor.
+
+
+ Assigns scalar parameter to all elements. Useful to initialize to zero or one.
+
+
+ Initializes from 3 scalar parameters.
+
+
+ Initializes from 3 scalar parameters.
+
+
+ Initializes from an array of scalar parameters.
+
+
+ tests for exact zero vector
+
+
+ returns true if all 3 elems of the vector are finite (not NAN or INF, etc.)
+
+
+ is normalized - used by API parameter validation
+
+
+ returns the squared magnitude Avoids calling PxSqrt()!
+
+
+ returns the magnitude
+
+
+ returns the scalar product of this and other.
+
+
+ returns a unit vector
+
+
+ normalizes the vector in place
+
+
+ a[i] * b[i], for all i.
+
+
+ element-wise minimum
+
+
+ element-wise maximum
+
+
+ Default constructor
+
+
+ identity constructor
+
+
+ zero constructor
+
+
+ Construct from four 4-vectors
+
+
+ constructor that generates a multiple of the identity matrix
+
+
+ Construct from three base vectors and a translation
+
+
+ Construct from float[16]
+
+
+ Construct from a quaternion
+
+
+ Construct from a diagonal vector
+
+
+ Construct from Mat33 and a translation
+
+
+ Get transposed matrix
+
+
+ Transform vector by matrix, equal to v' = M*v
+
+
+ Transform vector by matrix, equal to v' = M*v
+
+
+ Rotate vector by matrix, equal to v' = M*v
+
+
+ Rotate vector by matrix, equal to v' = M*v
+
+
+ Constructor
+
+
+ Constructor from a normal and a distance
+
+
+ Constructor from a normal and a distance
+
+
+ Constructor from a point on the plane and a normal
+
+
+ Constructor from three points
+
+
+ projects p into the plane
+
+
+ find an arbitrary point in the plane
+
+
+ equivalent plane with unit normal
+
+
+ transform plane
+
+
+ inverse-transform plane
+
+
+ finds the shortest rotation between two vectors. a rotation about an axis normal to the two vectors which takes one to the other via the shortest path
+
+
+ creates a transform from the endpoints of a segment, suitable for an actor transform for a PxCapsuleGeometry A PxTransform which will transform the vector (1,0,0) to the capsule axis shrunk by the halfHeight
+
+
+ creates a transform from a plane equation, suitable for an actor transform for a PxPlaneGeometry a PxTransform which will transform the plane PxPlane(1,0,0,0) to the specified plane
+
+
+ creates a plane equation from a transform, such as the actor transform for a PxPlaneGeometry the plane
+
+
+ Spherical linear interpolation of two quaternions. Returns left when t=0, right when t=1 and a linear interpolation of left and right when 0 < t < 1. Returns angle between -PI and PI in radians
+
+
+ integrate transform.
+
+
+ Compute the exponent of a PxVec3
+
+
+ computes a oriented bounding box around the scaled basis. Bounding box extent.
+
+
+ return Returns the log of a PxQuat
+
+
+ return Returns 0 if v.x is largest element of v, 1 if v.y is largest element, 2 if v.z is largest element.
+
+
+ Compute tan(theta/2) given sin(theta) and cos(theta) as inputs. Returns tan(theta/2)
+
+
+ Compute the closest point on an 2d ellipse to a given 2d point. Returns the 2d position on the surface of the ellipse that is closest to point.
+
+
+ Compute from an input quaternion q a pair of quaternions (swing, twist) such that q = swing * twist with the caveats that swing.x = twist.y = twist.z = 0.
+
+
+ Compute the angle between two non-unit vectors Returns the angle (in radians) between the two vector v0 and v1.
+
+
+ Compute two normalized vectors (right and up) that are perpendicular to an input normalized vector (dir).
+
+
+ Compute three normalized vectors (dir, right and up) that are parallel to (dir) and perpendicular to (right, up) the normalized direction vector (p1 - p0)/||p1 - p0||.
+
+
+ Compute (i+1)%3
+
+
+ The constructor for Mutex creates a mutex. It is initially unlocked.
+
+
+ The destructor for Mutex deletes the mutex.
+
+
+ Acquire (lock) the mutex. If the mutex is already locked by another thread, this method blocks until the mutex is unlocked.
+
+
+ Acquire (lock) the mutex. If the mutex is already locked by another thread, this method returns false without blocking.
+
+
+ Release (unlock) the mutex.
+
+
+ Size of this class.
+
+
+ Mark the beginning of a nested profile block Returns implementation-specific profiler data for this event
+
+
+ Mark the end of a nested profile block eventName plus contextId can be used to uniquely match up start and end of a zone.
+
+
+ Wait on the object for at most the given number of ms. Returns true if the object is signaled. Sync::waitForever will block forever or until the object is signaled.
+
+
+ Signal the synchronization object, waking all threads waiting on it
+
+
+ Reset the synchronization object
+
+
+ Size of this class.
+
+
+ default constructor leaves data uninitialized.
+
+
+ zero constructor.
+
+
+ Assigns scalar parameter to all elements. Useful to initialize to zero or one.
+
+
+ Initializes from 2 scalar parameters.
+
+
+ tests for exact zero vector
+
+
+ returns true if all 2 elems of the vector are finite (not NAN or INF, etc.)
+
+
+ is normalized - used by API parameter validation
+
+
+ returns the squared magnitude Avoids calling PxSqrt()!
+
+
+ returns the magnitude
+
+
+ returns the scalar product of this and other.
+
+
+ returns a unit vector
+
+
+ normalizes the vector in place
+
+
+ a[i] * b[i], for all i.
+
+
+ element-wise minimum
+
+
+ returns MIN(x, y);
+
+
+ element-wise maximum
+
+
+ returns MAX(x, y);
+
+
+ Registers a reference value corresponding to a PxBase object. This method is assumed to be called in the implementation of PxSerializer::registerReferences for serialized references that need to be resolved on deserialization. A reference needs to be associated with exactly one PxBase object in either the collection or the external references collection. Different kinds of references are supported and need to be specified. In the most common case (PX_SERIAL_REF_KIND_PXBASE) the PxBase object matches the reference value (which is the pointer to the PxBase object). Integer references maybe registered as well (used for internal material indices with PX_SERIAL_REF_KIND_MATERIAL_IDX). Other kinds could be added with the restriction that for pointer types the kind value needs to be marked with the PX_SERIAL_REF_KIND_PTR_TYPE_BIT.
+
+
+ Returns the collection that is being serialized.
+
+
+ Serializes object data and object extra data. This function is assumed to be called within the implementation of PxSerializer::exportData and PxSerializer::exportExtraData.
+
+
+ Aligns the serialized data. This function is assumed to be called within the implementation of PxSerializer::exportData and PxSerializer::exportExtraData.
+
+
+ Helper function to write a name to the extraData if serialization is configured to save names. This function is assumed to be called within the implementation of PxSerializer::exportExtraData.
+
+
+ Retrieves a pointer to a deserialized PxBase object given a corresponding deserialized reference value This method is assumed to be called in the implementation of PxSerializer::createObject in order to update reference values on deserialization. To update a PxBase reference the corresponding deserialized pointer value needs to be provided in order to retrieve the location of the corresponding deserialized PxBase object. (PxDeserializationContext::translatePxBase simplifies this common case). For other kinds of references the reverence values need to be updated by deduction given the corresponding PxBase instance. PxBase object associated with the reference value
+
+
+ Helper function to read a name from the extra data during deserialization. This function is assumed to be called within the implementation of PxSerializer::createObject.
+
+
+ Function to align the extra data stream to a power of 2 alignment This function is assumed to be called within the implementation of PxSerializer::createObject.
+
+
+ Register a serializer for a concrete type
+
+
+ Unregister a serializer for a concrete type, and retrieves the corresponding serializer object. Unregistered serializer corresponding to type, NULL for types for which no serializer has been registered.
+
+
+ Returns PxSerializer corresponding to type Registered PxSerializer object corresponding to type
+
+
+ Register a RepX serializer for a concrete type
+
+
+ Unregister a RepX serializer for a concrete type, and retrieves the corresponding serializer object. Unregistered PxRepxSerializer corresponding to type, NULL for types for which no RepX serializer has been registered.
+
+
+ Returns RepX serializer given the corresponding type name Registered PxRepXSerializer object corresponding to type name
+
+
+ Releases PxSerializationRegistry instance. This unregisters all PhysX and PhysXExtension serializers. Make sure to unregister all custom type serializers before releasing the PxSerializationRegistry.
+
+
+ Adds a PxBase object to the collection. Adds a PxBase object to the collection. Optionally a PxSerialObjectId can be provided in order to resolve dependencies between collections. A PxSerialObjectId value of PX_SERIAL_OBJECT_ID_INVALID means the object remains without id. Objects can be added regardless of other objects they require. If the object is already in the collection, the ID will be set if it was PX_SERIAL_OBJECT_ID_INVALID previously, otherwise the operation fails.
+
+
+ Removes a PxBase member object from the collection. Object needs to be contained by the collection.
+
+
+ Returns whether the collection contains a certain PxBase object. Whether object is contained.
+
+
+ Adds an id to a member PxBase object. If the object is already associated with an id within the collection, the id is replaced. May only be called for objects that are members of the collection. The id needs to be unique within the collection.
+
+
+ Removes id from a contained PxBase object. May only be called for ids that are associated with an object in the collection.
+
+
+ Adds all PxBase objects and their ids of collection to this collection. PxBase objects already in this collection are ignored. Object ids need to be conflict free, i.e. the same object may not have two different ids within the two collections.
+
+
+ Removes all PxBase objects of collection from this collection. PxBase objects not present in this collection are ignored. Ids of objects which are removed are also removed.
+
+
+ Gets number of PxBase objects in this collection. Number of objects in this collection
+
+
+ Gets the PxBase object of this collection given its index. PxBase object at index index
+
+
+ Copies member PxBase pointers to a user specified buffer. number of members PxBase objects that have been written to the userBuffer
+
+
+ Looks for a PxBase object given a PxSerialObjectId value. If there is no PxBase object in the collection with the given id, NULL is returned. PxBase object with the given id value or NULL
+
+
+ Gets number of PxSerialObjectId names in this collection. Number of PxSerialObjectId names in this collection
+
+
+ Copies member PxSerialObjectId values to a user specified buffer. number of members PxSerialObjectId values that have been written to the userBuffer
+
+
+ Gets the PxSerialObjectId name of a PxBase object within the collection. The PxBase object needs to be a member of the collection. PxSerialObjectId name of the object or PX_SERIAL_OBJECT_ID_INVALID if the object is unnamed
+
+
+ Deletes a collection object. This function only deletes the collection object, i.e. the container class. It doesn't delete objects that are part of the collection.
+
+
+ Creates a collection object. Objects can only be serialized or deserialized through a collection. For serialization, users must add objects to the collection and serialize the collection as a whole. For deserialization, the system gives back a collection of deserialized objects to users. The new collection object.
+
+
+ Releases the PxBase instance, please check documentation of release in derived class.
+
+
+ Returns string name of dynamic type. Class name of most derived type of this object.
+
+
+ Returns concrete type of object. PxConcreteType::Enum of serialized object
+
+
+ Set PxBaseFlag
+
+
+ Set PxBaseFlags
+
+
+ Returns PxBaseFlags PxBaseFlags
+
+
+ Whether the object is subordinate. A class is subordinate, if it can only be instantiated in the context of another class. Whether the class is subordinate
+
+
+ Decrements the reference count of the object and releases it if the new reference count is zero.
+
+
+ Returns the reference count of the object. At creation, the reference count of the object is 1. Every other object referencing this object increments the count by 1. When the reference count reaches 0, and only then, the object gets destroyed automatically. the current reference count.
+
+
+ Acquires a counted reference to this object. This method increases the reference count of the object by 1. Decrement the reference count by calling release()
+
+
+ constructor sets to default
+
+
+ Returns true if the descriptor is valid. true if the current settings are valid (returns always true).
+
+
+ Allocate a new string. *Always* a valid null terminated string. \"\" is returned if \"\" or null is passed in.
+
+
+ Release the string table and all the strings associated with it.
+
+
+ Returns string name of dynamic type. Class name of most derived type of this object.
+
+
+ Adds required objects to the collection. This method does not add the required objects recursively, e.g. objects required by required objects.
+
+
+ Whether the object is subordinate. A class is subordinate, if it can only be instantiated in the context of another class. Whether the class is subordinate
+
+
+ Exports object's extra data to stream.
+
+
+ Exports object's data to stream.
+
+
+ Register references that the object maintains to other objects.
+
+
+ Returns size needed to create the class instance. sizeof class instance.
+
+
+ Create object at a given address, resolve references and import extra data. Created PxBase pointer (needs to be identical to address before increment).
+
+
+ *******************************************************************************************************************
+
+
+ Builds object (TriangleMesh, Heightfield, ConvexMesh or BVH) from given data in PxPhysics. PxBase Created object in PxPhysics.
+
+
+ Set the user-provided dispatcher object for CPU tasks
+
+
+ Get the user-provided dispatcher object for CPU tasks The CPU dispatcher object.
+
+
+ Reset any dependencies between Tasks Will be called at the start of every frame before tasks are submitted.
+
+
+ Called by the owning scene to start the task graph. All tasks with ref count of 1 will be dispatched.
+
+
+ Called by the owning scene at the end of a simulation step.
+
+
+ Called by the worker threads to inform the PxTaskManager that a task has completed processing.
+
+
+ Retrieve a task by name The ID of the task with that name, or eNOT_PRESENT if not found
+
+
+ Submit a task with a unique name. The ID of the task with that name, or eNOT_PRESENT if not found
+
+
+ Submit an unnamed task. The ID of the task with that name, or eNOT_PRESENT if not found
+
+
+ Retrieve a task given a task ID The task associated with the ID
+
+
+ Release the PxTaskManager object, referenced dispatchers will not be released
+
+
+ Construct a new PxTaskManager instance with the given [optional] dispatchers
+
+
+ Called by the TaskManager when a task is to be queued for execution. Upon receiving a task, the dispatcher should schedule the task to run. After the task has been run, it should call the release() method and discard its pointer.
+
+
+ Returns the number of available worker threads for this dispatcher. The SDK will use this count to control how many tasks are submitted. By matching the number of tasks with the number of execution units task overhead can be reduced.
+
+
+ The user-implemented run method where the task's work should be performed run() methods must be thread safe, stack friendly (no alloca, etc), and must never block.
+
+
+ Return a user-provided task name for profiling purposes. It does not have to be unique, but unique names are helpful. The name of this task
+
+
+ Implemented by derived implementation classes
+
+
+ Implemented by derived implementation classes
+
+
+ Implemented by derived implementation classes
+
+
+ Implemented by derived implementation classes A task may assume in its release() method that the task system no longer holds references to it - so it may safely run its destructor, recycle itself, etc. provided no additional user references to the task exist
+
+
+ Return PxTaskManager to which this task was submitted Note, can return NULL if task was not submitted, or has been completed.
+
+
+ Release method implementation
+
+
+ Inform the PxTaskManager this task must finish before the given
+
+
+ Inform the PxTaskManager this task cannot start until the given
+
+
+ Manually increment this task's reference count. The task will not be allowed to run until removeReference() is called.
+
+
+ Manually decrement this task's reference count. If the reference count reaches zero, the task will be dispatched.
+
+
+ Return the ref-count for this task
+
+
+ Return the unique ID for this task
+
+
+ Called by PxTaskManager at submission time for initialization Perform simulation step initialization here.
+
+
+ Initialize this task and specify the task that will have its ref count decremented on completion. Submission is deferred until the task's mRefCount is decremented to zero. Note that we only use the PxTaskManager to query the appropriate dispatcher.
+
+
+ Initialize this task and specify the task that will have its ref count decremented on completion. This overload of setContinuation() queries the PxTaskManager from the continuation task, which cannot be NULL.
+
+
+ Retrieves continuation task
+
+
+ Manually decrement this task's reference count. If the reference count reaches zero, the task will be dispatched.
+
+
+ Return the ref-count for this task
+
+
+ Manually increment this task's reference count. The task will not be allowed to run until removeReference() is called.
+
+
+ called by CpuDispatcher after run method has completed Decrements the continuation task's reference count, if specified.
+
+
+ Returns the type of the geometry. The type of the object.
+
+
+ Constructor to initialize half extents from scalar parameters.
+
+
+ Constructor to initialize half extents from vector parameter.
+
+
+ Returns true if the geometry is valid. True if the current settings are valid A valid box has a positive extent in each direction (halfExtents.x > 0, halfExtents.y > 0, halfExtents.z > 0). It is illegal to call PxRigidActor::createShape and PxPhysics::createShape with a box that has zero extent in any direction.
+
+
+ Raycast test against a BVH. false if query has been aborted
+
+
+ Sweep test against a BVH. false if query has been aborted
+
+
+ Overlap test against a BVH. false if query has been aborted
+
+
+ Frustum culling test against a BVH. This is similar in spirit to an overlap query using a convex object around the frustum. However this specialized query has better performance, and can support more than the 6 planes of a frustum, which can be useful in portal-based engines. On the other hand this test only returns a conservative number of bounds, i.e. some of the returned bounds may actually be outside the frustum volume, close to it but not touching it. This is usually an ok performance trade-off when the function is used for view-frustum culling. false if query has been aborted
+
+
+ Returns the number of bounds in the BVH. You can use [`getBounds`]() to retrieve the bounds. These are the user-defined bounds passed to the BVH builder, not the internal bounds around each BVH node. Number of bounds in the BVH.
+
+
+ Retrieve the read-only bounds in the BVH. These are the user-defined bounds passed to the BVH builder, not the internal bounds around each BVH node.
+
+
+ Retrieve the bounds in the BVH. These bounds can be modified. Call refit() after modifications are done. These are the user-defined bounds passed to the BVH builder, not the internal bounds around each BVH node.
+
+
+ Refit the BVH. This function \"refits\" the tree, i.e. takes the new (leaf) bounding boxes into account and recomputes all the BVH bounds accordingly. This is an O(n) operation with n = number of bounds in the BVH. This works best with minor bounds modifications, i.e. when the bounds remain close to their initial values. With large modifications the tree quality degrades more and more, and subsequent query performance suffers. It might be a better strategy to create a brand new BVH if bounds change drastically. This function refits the whole tree after an arbitrary number of bounds have potentially been modified by users (via getBoundsForModification()). If you only have a small number of bounds to update, it might be more efficient to use setBounds() and partialRefit() instead.
+
+
+ Update single bounds. This is an alternative to getBoundsForModification() / refit(). If you only have a small set of bounds to update, it can be inefficient to call the refit() function, because it refits the whole BVH. Instead, one can update individual bounds with this updateBounds() function. It sets the new bounds and marks the corresponding BVH nodes for partial refit. Once all the individual bounds have been updated, call partialRefit() to only refit the subset of marked nodes. true if success
+
+
+ Refits subset of marked nodes. This is an alternative to the refit() function, to be called after updateBounds() calls. See updateBounds() for details.
+
+
+ Generic BVH traversal function. This can be used to implement custom BVH traversal functions if provided ones are not enough. In particular this can be used to visualize the tree's bounds. false if query has been aborted
+
+
+ Constructor, initializes to a capsule with passed radius and half height.
+
+
+ Returns true if the geometry is valid. True if the current settings are valid. A valid capsule has radius > 0, halfHeight >= 0. It is illegal to call PxRigidActor::createShape and PxPhysics::createShape with a capsule that has zero radius or height.
+
+
+ Returns the number of vertices. Number of vertices.
+
+
+ Returns the vertices. Array of vertices.
+
+
+ Returns the index buffer. Index buffer.
+
+
+ Returns the number of polygons. Number of polygons.
+
+
+ Returns the polygon data. True if success.
+
+
+ Decrements the reference count of a convex mesh and releases it if the new reference count is zero.
+
+
+ Returns the mass properties of the mesh assuming unit density. The following relationship holds between mass and volume: mass = volume * density The mass of a unit density mesh is equal to its volume, so this function returns the volume of the mesh. Similarly, to obtain the localInertia of an identically shaped object with a uniform density of d, simply multiply the localInertia of the unit density mesh by d.
+
+
+ Returns the local-space (vertex space) AABB from the convex mesh. local-space bounds
+
+
+ Returns the local-space Signed Distance Field for this mesh if it has one. local-space SDF.
+
+
+ This method decides whether a convex mesh is gpu compatible. If the total number of vertices are more than 64 or any number of vertices in a polygon is more than 32, or convex hull data was not cooked with GPU data enabled during cooking or was loaded from a serialized collection, the convex hull is incompatible with GPU collision detection. Otherwise it is compatible. True if the convex hull is gpu compatible
+
+
+ Constructor initializes to identity scale.
+
+
+ Constructor from scalar.
+
+
+ Constructor to initialize to arbitrary scale and identity scale rotation.
+
+
+ Constructor to initialize to arbitrary scaling.
+
+
+ Returns true if the scaling is an identity transformation.
+
+
+ Returns the inverse of this scaling transformation.
+
+
+ Converts this transformation to a 3x3 matrix representation.
+
+
+ Returns true if combination of negative scale components will cause the triangle normal to flip. The SDK will flip the normals internally.
+
+
+ Constructor. By default creates an empty object with a NULL mesh and identity scale.
+
+
+ Returns true if the geometry is valid. True if the current settings are valid for shape creation. A valid convex mesh has a positive scale value in each direction (scale.x > 0, scale.y > 0, scale.z > 0). It is illegal to call PxRigidActor::createShape and PxPhysics::createShape with a convex that has zero extent in any direction.
+
+
+ Constructor.
+
+
+ Returns true if the geometry is valid. True if the current settings are valid A valid sphere has radius > 0. It is illegal to call PxRigidActor::createShape and PxPhysics::createShape with a sphere that has zero radius.
+
+
+ Constructor.
+
+
+ Returns true if the geometry is valid. True if the current settings are valid
+
+
+ Constructor. By default creates an empty object with a NULL mesh and identity scale.
+
+
+ Returns true if the geometry is valid. True if the current settings are valid for shape creation. A valid triangle mesh has a positive scale value in each direction (scale.scale.x > 0, scale.scale.y > 0, scale.scale.z > 0). It is illegal to call PxRigidActor::createShape and PxPhysics::createShape with a triangle mesh that has zero extents in any direction.
+
+
+ Constructor.
+
+
+ Returns true if the geometry is valid. True if the current settings are valid A valid height field has a positive scale value in each direction (heightScale > 0, rowScale > 0, columnScale > 0). It is illegal to call PxRigidActor::createShape and PxPhysics::createShape with a height field that has zero extents in any direction.
+
+
+ Default constructor. Creates an empty object with no particles.
+
+
+ Returns true if the geometry is valid. True if the current settings are valid for shape creation.
+
+
+ Default constructor.
+
+
+ Returns true if the geometry is valid. True if the current settings are valid for shape creation.
+
+
+ Constructor. By default creates an empty object with a NULL mesh and identity scale.
+
+
+ Returns true if the geometry is valid. True if the current settings are valid for shape creation. A valid tetrahedron mesh has a positive scale value in each direction (scale.scale.x > 0, scale.scale.y > 0, scale.scale.z > 0). It is illegal to call PxRigidActor::createShape and PxPhysics::createShape with a tetrahedron mesh that has zero extents in any direction.
+
+
+ For raycast hits: true for shapes overlapping with raycast origin. For sweep hits: true for shapes overlapping at zero sweep distance.
+
+
+ For internal use
+
+
+ Default constructor
+
+
+ Invalid type
+
+
+ Return custom type. The type purpose is for user to differentiate custom geometries. Not used by PhysX. Unique ID of a custom geometry type. User should use DECLARE_CUSTOM_GEOMETRY_TYPE and IMPLEMENT_CUSTOM_GEOMETRY_TYPE intead of overwriting this function.
+
+
+ Return local bounds. Bounding box in the geometry local space.
+
+
+ Raycast. Cast a ray against the geometry in given pose. Number of hits.
+
+
+ Overlap. Test if geometries overlap. True if there is overlap. False otherwise.
+
+
+ Sweep. Sweep one geometry against the other. True if there is hit. False otherwise.
+
+
+ Compute custom geometry mass properties. For geometries usable with dynamic rigidbodies.
+
+
+ Compatible with PhysX's PCM feature. Allows to optimize contact generation.
+
+
+ Default constructor. Creates an empty object with a NULL callbacks pointer.
+
+
+ Constructor.
+
+
+ Returns true if the geometry is valid. True if the current settings are valid for shape creation.
+
+
+ Returns the custom type of the custom geometry.
+
+
+ Raycast test against a geometry object. All geometry types are supported except PxParticleSystemGeometry, PxTetrahedronMeshGeometry and PxHairSystemGeometry. Number of hits between the ray and the geometry object
+
+
+ Overlap test for two geometry objects. All combinations are supported except: PxPlaneGeometry vs. {PxPlaneGeometry, PxTriangleMeshGeometry, PxHeightFieldGeometry} PxTriangleMeshGeometry vs. PxHeightFieldGeometry PxHeightFieldGeometry vs. PxHeightFieldGeometry Anything involving PxParticleSystemGeometry, PxTetrahedronMeshGeometry or PxHairSystemGeometry. True if the two geometry objects overlap
+
+
+ Sweep a specified geometry object in space and test for collision with a given object. The following combinations are supported. PxSphereGeometry vs. {PxSphereGeometry, PxPlaneGeometry, PxCapsuleGeometry, PxBoxGeometry, PxConvexMeshGeometry, PxTriangleMeshGeometry, PxHeightFieldGeometry} PxCapsuleGeometry vs. {PxSphereGeometry, PxPlaneGeometry, PxCapsuleGeometry, PxBoxGeometry, PxConvexMeshGeometry, PxTriangleMeshGeometry, PxHeightFieldGeometry} PxBoxGeometry vs. {PxSphereGeometry, PxPlaneGeometry, PxCapsuleGeometry, PxBoxGeometry, PxConvexMeshGeometry, PxTriangleMeshGeometry, PxHeightFieldGeometry} PxConvexMeshGeometry vs. {PxSphereGeometry, PxPlaneGeometry, PxCapsuleGeometry, PxBoxGeometry, PxConvexMeshGeometry, PxTriangleMeshGeometry, PxHeightFieldGeometry} True if the swept geometry object geom0 hits the object geom1
+
+
+ Compute minimum translational distance (MTD) between two geometry objects. All combinations of geom objects are supported except: - plane/plane - plane/mesh - plane/heightfield - mesh/mesh - mesh/heightfield - heightfield/heightfield - anything involving PxParticleSystemGeometry, PxTetrahedronMeshGeometry or PxHairSystemGeometry The function returns a unit vector ('direction') and a penetration depth ('depth'). The depenetration vector D = direction * depth should be applied to the first object, to get out of the second object. Returned depth should always be positive or null. If objects do not overlap, the function can not compute the MTD and returns false. True if the MTD has successfully been computed, i.e. if objects do overlap.
+
+
+ Computes distance between a point and a geometry object. Currently supported geometry objects: box, sphere, capsule, convex, mesh. For meshes, only the BVH34 midphase data-structure is supported. Square distance between the point and the geom object, or 0.0 if the point is inside the object, or -1.0 if an error occured (geometry type is not supported, or invalid pose)
+
+
+ computes the bounds for a geometry object
+
+
+ Checks if provided geometry is valid. True if geometry is valid.
+
+
+ Decrements the reference count of a height field and releases it if the new reference count is zero.
+
+
+ Writes out the sample data array. The user provides destBufferSize bytes storage at destBuffer. The data is formatted and arranged as PxHeightFieldDesc.samples. The number of bytes written.
+
+
+ Replaces a rectangular subfield in the sample data array. The user provides the description of a rectangular subfield in subfieldDesc. The data is formatted and arranged as PxHeightFieldDesc.samples. True on success, false on failure. Failure can occur due to format mismatch. Modified samples are constrained to the same height quantization range as the original heightfield. Source samples that are out of range of target heightfield will be clipped with no error. PhysX does not keep a mapping from the heightfield to heightfield shapes that reference it. Call PxShape::setGeometry on each shape which references the height field, to ensure that internal data structures are updated to reflect the new geometry. Please note that PxShape::setGeometry does not guarantee correct/continuous behavior when objects are resting on top of old or new geometry.
+
+
+ Retrieves the number of sample rows in the samples array. The number of sample rows in the samples array.
+
+
+ Retrieves the number of sample columns in the samples array. The number of sample columns in the samples array.
+
+
+ Retrieves the format of the sample data. The format of the sample data.
+
+
+ Retrieves the offset in bytes between consecutive samples in the array. The offset in bytes between consecutive samples in the array.
+
+
+ Retrieves the convex edge threshold. The convex edge threshold.
+
+
+ Retrieves the flags bits, combined from values of the enum ::PxHeightFieldFlag. The flags bits, combined from values of the enum ::PxHeightFieldFlag.
+
+
+ Retrieves the height at the given coordinates in grid space. The height at the given coordinates or 0 if the coordinates are out of range.
+
+
+ Returns material table index of given triangle This function takes a post cooking triangle index. Material table index, or 0xffff if no per-triangle materials are used
+
+
+ Returns a triangle face normal for a given triangle index This function takes a post cooking triangle index. Triangle normal for a given triangle index
+
+
+ Returns heightfield sample of given row and column Heightfield sample
+
+
+ Returns the number of times the heightfield data has been modified This method returns the number of times modifySamples has been called on this heightfield, so that code that has retained state that depends on the heightfield can efficiently determine whether it has been modified. the number of times the heightfield sample data has been modified.
+
+
+ Constructor sets to default.
+
+
+ (re)sets the structure to the default.
+
+
+ Returns true if the descriptor is valid. True if the current settings are valid.
+
+
+ Retrieves triangle data from a triangle ID. This function can be used together with [`findOverlapTriangleMesh`]() to retrieve triangle properties. This function will flip the triangle normal whenever triGeom.scale.hasNegativeDeterminant() is true.
+
+
+ Retrieves triangle data from a triangle ID. This function can be used together with [`findOverlapHeightField`]() to retrieve triangle properties. This function will flip the triangle normal whenever triGeom.scale.hasNegativeDeterminant() is true. TriangleIndex is an index used in internal format, which does have an index out of the bounds in last row. To traverse all tri indices in the HF, the following code can be applied: for (PxU32 row = 0; row < (nbRows - 1); row++) { for (PxU32 col = 0; col < (nbCols - 1); col++) { for (PxU32 k = 0; k < 2; k++) { const PxU32 triIndex = 2 * (row*nbCols + col) + k; .... } } }
+
+
+ Find the mesh triangles which touch the specified geometry object. For mesh-vs-mesh overlap tests, please use the specialized function below. Returned triangle indices can be used with [`getTriangle`]() to retrieve the triangle properties. Number of overlaps found, i.e. number of elements written to the results buffer
+
+
+ Find the height field triangles which touch the specified geometry object. Returned triangle indices can be used with [`getTriangle`]() to retrieve the triangle properties. Number of overlaps found, i.e. number of elements written to the results buffer
+
+
+ Sweep a specified geometry object in space and test for collision with a set of given triangles. This function simply sweeps input geometry against each input triangle, in the order they are given. This is an O(N) operation with N = number of input triangles. It does not use any particular acceleration structure. True if the swept geometry object hits the specified triangles Only the following geometry types are currently supported: PxSphereGeometry, PxCapsuleGeometry, PxBoxGeometry If a shape from the scene is already overlapping with the query shape in its starting position, the hit is returned unless eASSUME_NO_INITIAL_OVERLAP was specified. This function returns a single closest hit across all the input triangles. Multiple hits are not supported. Supported hitFlags are PxHitFlag::eDEFAULT, PxHitFlag::eASSUME_NO_INITIAL_OVERLAP, PxHitFlag::ePRECISE_SWEEP, PxHitFlag::eMESH_BOTH_SIDES, PxHitFlag::eMESH_ANY. ePOSITION is only defined when there is no initial overlap (sweepHit.hadInitialOverlap() == false) The returned normal for initially overlapping sweeps is set to -unitDir. Otherwise the returned normal is the front normal of the triangle even if PxHitFlag::eMESH_BOTH_SIDES is set. The returned PxGeomSweepHit::faceIndex parameter will hold the index of the hit triangle in input array, i.e. the range is [0; triangleCount). For initially overlapping sweeps, this is the index of overlapping triangle. The inflation parameter is not compatible with PxHitFlag::ePRECISE_SWEEP.
+
+
+ constructor sets to default.
+
+
+ (re)sets the structure to the default.
+
+
+ returns true if the current settings are valid
+
+
+ Constructor
+
+
+ Constructor
+
+
+ Destructor
+
+
+ Compute the normal of the Triangle.
+
+
+ Compute the unnormalized normal of the triangle.
+
+
+ Compute the area of the triangle. Area of the triangle.
+
+
+ Computes a point on the triangle from u and v barycentric coordinates.
+
+
+ Returns the number of vertices. number of vertices
+
+
+ Returns the vertices. array of vertices
+
+
+ Returns all mesh vertices for modification. This function will return the vertices of the mesh so that their positions can be changed in place. After modifying the vertices you must call refitBVH for the refitting to actually take place. This function maintains the old mesh topology (triangle indices). inplace vertex coordinates for each existing mesh vertex. It is recommended to use this feature for scene queries only. Size of array returned is equal to the number returned by getNbVertices(). This function operates on cooked vertex indices. This means the index mapping and vertex count can be different from what was provided as an input to the cooking routine. To achieve unchanged 1-to-1 index mapping with orignal mesh data (before cooking) please use the following cooking flags: eWELD_VERTICES = 0, eDISABLE_CLEAN_MESH = 1. It is also recommended to make sure that a call to validateTriangleMesh returns true if mesh cleaning is disabled.
+
+
+ Refits BVH for mesh vertices. This function will refit the mesh BVH to correctly enclose the new positions updated by getVerticesForModification. Mesh BVH will not be reoptimized by this function so significantly different new positions will cause significantly reduced performance. New bounds for the entire mesh. For PxMeshMidPhase::eBVH34 trees the refit operation is only available on non-quantized trees (see PxBVH34MidphaseDesc::quantized) PhysX does not keep a mapping from the mesh to mesh shapes that reference it. Call PxShape::setGeometry on each shape which references the mesh, to ensure that internal data structures are updated to reflect the new geometry. PxShape::setGeometry does not guarantee correct/continuous behavior when objects are resting on top of old or new geometry. It is also recommended to make sure that a call to validateTriangleMesh returns true if mesh cleaning is disabled. Active edges information will be lost during refit, the rigid body mesh contact generation might not perform as expected.
+
+
+ Returns the number of triangles. number of triangles
+
+
+ Returns the triangle indices. The indices can be 16 or 32bit depending on the number of triangles in the mesh. Call getTriangleMeshFlags() to know if the indices are 16 or 32 bits. The number of indices is the number of triangles * 3. array of triangles
+
+
+ Reads the PxTriangleMesh flags. See the list of flags [`PxTriangleMeshFlag`] The values of the PxTriangleMesh flags.
+
+
+ Returns the triangle remapping table. The triangles are internally sorted according to various criteria. Hence the internal triangle order does not always match the original (user-defined) order. The remapping table helps finding the old indices knowing the new ones: remapTable[ internalTriangleIndex ] = originalTriangleIndex the remapping table (or NULL if 'PxCookingParams::suppressTriangleMeshRemapTable' has been used)
+
+
+ Decrements the reference count of a triangle mesh and releases it if the new reference count is zero.
+
+
+ Returns material table index of given triangle This function takes a post cooking triangle index. Material table index, or 0xffff if no per-triangle materials are used
+
+
+ Returns the local-space (vertex space) AABB from the triangle mesh. local-space bounds
+
+
+ Returns the local-space Signed Distance Field for this mesh if it has one. local-space SDF.
+
+
+ Returns the resolution of the local-space dense SDF.
+
+
+ Sets whether this mesh should be preferred for SDF projection. By default, meshes are flagged as preferring projection and the decisions on which mesh to project is based on the triangle and vertex count. The model with the fewer triangles is projected onto the SDF of the more detailed mesh. If one of the meshes is set to prefer SDF projection (default) and the other is set to not prefer SDF projection, model flagged as preferring SDF projection will be projected onto the model flagged as not preferring, regardless of the detail of the respective meshes. Where both models are flagged as preferring no projection, the less detailed model will be projected as before.
+
+
+ Returns whether this mesh prefers SDF projection. whether this mesh prefers SDF projection.
+
+
+ Returns the mass properties of the mesh assuming unit density. The following relationship holds between mass and volume: mass = volume * density The mass of a unit density mesh is equal to its volume, so this function returns the volume of the mesh. Similarly, to obtain the localInertia of an identically shaped object with a uniform density of d, simply multiply the localInertia of the unit density mesh by d.
+
+
+ Constructor
+
+
+ Constructor
+
+
+ Destructor
+
+
+ Decrements the reference count of a tetrahedron mesh and releases it if the new reference count is zero.
+
+
+ Returns the number of vertices. number of vertices
+
+
+ Returns the vertices array of vertices
+
+
+ Returns the number of tetrahedrons. number of tetrahedrons
+
+
+ Returns the tetrahedron indices. The indices can be 16 or 32bit depending on the number of tetrahedrons in the mesh. Call getTetrahedronMeshFlags() to know if the indices are 16 or 32 bits. The number of indices is the number of tetrahedrons * 4. array of tetrahedrons
+
+
+ Reads the PxTetrahedronMesh flags. See the list of flags [`PxTetrahedronMeshFlags`] The values of the PxTetrahedronMesh flags.
+
+
+ Returns the tetrahedra remapping table. The tetrahedra are internally sorted according to various criteria. Hence the internal tetrahedron order does not always match the original (user-defined) order. The remapping table helps finding the old indices knowing the new ones: remapTable[ internalTetrahedronIndex ] = originalTetrahedronIndex the remapping table (or NULL if 'PxCookingParams::suppressTriangleMeshRemapTable' has been used)
+
+
+ Returns the local-space (vertex space) AABB from the tetrahedron mesh. local-space bounds
+
+
+ Decrements the reference count of a tetrahedron mesh and releases it if the new reference count is zero.
+
+
+ Const accecssor to the softbody's collision mesh.
+
+
+ Accecssor to the softbody's collision mesh.
+
+
+ Const accessor to the softbody's simulation mesh.
+
+
+ Accecssor to the softbody's simulation mesh.
+
+
+ Const accessor to the softbodies simulation state.
+
+
+ Accessor to the softbody's auxilary data like mass and rest pose information
+
+
+ Decrements the reference count of a tetrahedron mesh and releases it if the new reference count is zero.
+
+
+ Deletes the actor. Do not keep a reference to the deleted instance. If the actor belongs to a [`PxAggregate`] object, it is automatically removed from the aggregate.
+
+
+ Retrieves the type of actor. The actor type of the actor.
+
+
+ Retrieves the scene which this actor belongs to. Owner Scene. NULL if not part of a scene.
+
+
+ Sets a name string for the object that can be retrieved with getName(). This is for debugging and is not used by the SDK. The string is not copied by the SDK, only the pointer is stored. Default: NULL
+
+
+ Retrieves the name string set with setName(). Name string associated with object.
+
+
+ Retrieves the axis aligned bounding box enclosing the actor. It is not allowed to use this method while the simulation is running (except during PxScene::collide(), in PxContactModifyCallback or in contact report callbacks). The actor's bounding box.
+
+
+ Raises or clears a particular actor flag. See the list of flags [`PxActorFlag`] Sleeping: Does NOT wake the actor up automatically.
+
+
+ Sets the actor flags. See the list of flags [`PxActorFlag`]
+
+
+ Reads the PxActor flags. See the list of flags [`PxActorFlag`] The values of the PxActor flags.
+
+
+ Assigns dynamic actors a dominance group identifier. PxDominanceGroup is a 5 bit group identifier (legal range from 0 to 31). The PxScene::setDominanceGroupPair() lets you set certain behaviors for pairs of dominance groups. By default every dynamic actor is created in group 0. Default: 0 Sleeping: Changing the dominance group does NOT wake the actor up automatically.
+
+
+ Retrieves the value set with setDominanceGroup(). The dominance group of this actor.
+
+
+ Sets the owner client of an actor. This cannot be done once the actor has been placed into a scene. Default: PX_DEFAULT_CLIENT
+
+
+ Returns the owner client that was specified at creation time. This value cannot be changed once the object is placed into the scene.
+
+
+ Retrieves the aggregate the actor might be a part of. The aggregate the actor is a part of, or NULL if the actor does not belong to an aggregate.
+
+
+ Deletes the aggregate object. Deleting the PxAggregate object does not delete the aggregated actors. If the PxAggregate object belongs to a scene, the aggregated actors are automatically re-inserted in that scene. If you intend to delete both the PxAggregate and its actors, it is best to release the actors first, then release the PxAggregate when it is empty.
+
+
+ Adds an actor to the aggregate object. A warning is output if the total number of actors is reached, or if the incoming actor already belongs to an aggregate. If the aggregate belongs to a scene, adding an actor to the aggregate also adds the actor to that scene. If the actor already belongs to a scene, a warning is output and the call is ignored. You need to remove the actor from the scene first, before adding it to the aggregate. When a BVH is provided the actor shapes are grouped together. The scene query pruning structure inside PhysX SDK will store/update one bound per actor. The scene queries against such an actor will query actor bounds and then make a local space query against the provided BVH, which is in actor's local space.
+
+
+ Removes an actor from the aggregate object. A warning is output if the incoming actor does not belong to the aggregate. Otherwise the actor is removed from the aggregate. If the aggregate belongs to a scene, the actor is reinserted in that scene. If you intend to delete the actor, it is best to call [`PxActor::release`]() directly. That way the actor will be automatically removed from its aggregate (if any) and not reinserted in a scene.
+
+
+ Adds an articulation to the aggregate object. A warning is output if the total number of actors is reached (every articulation link counts as an actor), or if the incoming articulation already belongs to an aggregate. If the aggregate belongs to a scene, adding an articulation to the aggregate also adds the articulation to that scene. If the articulation already belongs to a scene, a warning is output and the call is ignored. You need to remove the articulation from the scene first, before adding it to the aggregate.
+
+
+ Removes an articulation from the aggregate object. A warning is output if the incoming articulation does not belong to the aggregate. Otherwise the articulation is removed from the aggregate. If the aggregate belongs to a scene, the articulation is reinserted in that scene. If you intend to delete the articulation, it is best to call [`PxArticulationReducedCoordinate::release`]() directly. That way the articulation will be automatically removed from its aggregate (if any) and not reinserted in a scene.
+
+
+ Returns the number of actors contained in the aggregate. You can use [`getActors`]() to retrieve the actor pointers. Number of actors contained in the aggregate.
+
+
+ Retrieves max amount of shapes that can be contained in the aggregate. Max shape size.
+
+
+ Retrieve all actors contained in the aggregate. You can retrieve the number of actor pointers by calling [`getNbActors`]() Number of actor pointers written to the buffer.
+
+
+ Retrieves the scene which this aggregate belongs to. Owner Scene. NULL if not part of a scene.
+
+
+ Retrieves aggregate's self-collision flag. self-collision flag
+
+
+ Visualize joint frames
+
+
+ Visualize joint linear limit
+
+
+ Visualize joint angular limit
+
+
+ Visualize limit cone
+
+
+ Visualize joint double cone
+
+
+ Visualize line
+
+
+ Pre-simulation data preparation when the constraint is marked dirty, this function is called at the start of the simulation step for the SDK to copy the constraint data block.
+
+
+ Constraint release callback When the SDK deletes a PxConstraint object this function is called by the SDK. In general custom constraints should not be deleted directly by applications: rather, the constraint should respond to a release() request by calling PxConstraint::release(), then wait for this call to release its own resources. This function is also called when a PxConstraint object is deleted on cleanup due to destruction of the PxPhysics object.
+
+
+ Center-of-mass shift callback This function is called by the SDK when the CoM of one of the actors is moved. Since the API specifies constraint positions relative to actors, and the constraint shader functions are supplied with coordinates relative to bodies, some synchronization is usually required when the application moves an object's center of mass.
+
+
+ Origin shift callback This function is called by the SDK when the scene origin gets shifted and allows to adjust custom data which contains world space transforms. If the adjustments affect constraint shader data, it is necessary to call PxConstraint::markDirty() to make sure that the data gets synced at the beginning of the next simulation step.
+
+
+ Obtain a reference to a PxBase interface if the constraint has one. If the constraint does not implement the PxBase interface, it should return NULL.
+
+
+ Obtain the pointer to the constraint's constant data
+
+
+ Let the connector know it has been connected to a constraint.
+
+
+ virtual destructor
+
+
+ Allocates constraint data. It is the application's responsibility to release this memory after PxSolveConstraints has completed. The allocated memory. This address must be 16-byte aligned.
+
+
+ Allocates friction data. Friction data can be retained by the application for a given pair and provided as an input to PxSolverContactDesc to improve simulation stability. It is the application's responsibility to release this memory. If this memory is released, the application should ensure it does not pass pointers to this memory to PxSolverContactDesc. The allocated memory. This address must be 4-byte aligned.
+
+
+ Sets the spring rest length for the sub-tendon from the root to this leaf attachment. Setting this on non-leaf attachments has no effect.
+
+
+ Gets the spring rest length for the sub-tendon from the root to this leaf attachment. The rest length.
+
+
+ Sets the low and high limit on the length of the sub-tendon from the root to this leaf attachment. Setting this on non-leaf attachments has no effect.
+
+
+ Gets the low and high limit on the length of the sub-tendon from the root to this leaf attachment. Struct with the low and high limit.
+
+
+ Sets the attachment's relative offset in the link actor frame.
+
+
+ Gets the attachment's relative offset in the link actor frame. The relative offset in the link actor frame.
+
+
+ Sets the attachment coefficient.
+
+
+ Gets the attachment coefficient. The scale that the distance between this attachment and its parent is multiplied by when summing up the spatial tendon's length.
+
+
+ Gets the articulation link. The articulation link that this attachment is attached to.
+
+
+ Gets the parent attachment. The parent attachment.
+
+
+ Indicates that this attachment is a leaf, and thus defines a sub-tendon from the root to this attachment. True: This attachment is a leaf and has zero children; False: Not a leaf.
+
+
+ Gets the spatial tendon that the attachment is a part of. The tendon.
+
+
+ Releases the attachment. Releasing the attachment is not allowed while the articulation is in a scene. In order to release the attachment, remove and then re-add the articulation to the scene.
+
+
+ Returns the string name of the dynamic type. The string name.
+
+
+ Sets the tendon joint coefficient. RecipCoefficient is commonly expected to be 1/coefficient, but it can be set to different values to tune behavior; for example, zero can be used to have a joint axis only participate in the length computation of the tendon, but not have any tendon force applied to it.
+
+
+ Gets the tendon joint coefficient.
+
+
+ Gets the articulation link. The articulation link (and its incoming joint in particular) that this tendon joint is associated with.
+
+
+ Gets the parent tendon joint. The parent tendon joint.
+
+
+ Gets the tendon that the joint is a part of. The tendon.
+
+
+ Releases a tendon joint. Releasing a tendon joint is not allowed while the articulation is in a scene. In order to release the joint, remove and then re-add the articulation to the scene.
+
+
+ Returns the string name of the dynamic type. The string name.
+
+
+ Sets the spring stiffness term acting on the tendon length.
+
+
+ Gets the spring stiffness of the tendon. The spring stiffness.
+
+
+ Sets the damping term acting both on the tendon length and tendon-length limits.
+
+
+ Gets the damping term acting both on the tendon length and tendon-length limits. The damping term.
+
+
+ Sets the limit stiffness term acting on the tendon's length limits. For spatial tendons, this parameter applies to all its leaf attachments / sub-tendons.
+
+
+ Gets the limit stiffness term acting on the tendon's length limits. For spatial tendons, this parameter applies to all its leaf attachments / sub-tendons. The limit stiffness term.
+
+
+ Sets the length offset term for the tendon. An offset defines an amount to be added to the accumulated length computed for the tendon. It allows the application to actuate the tendon by shortening or lengthening it.
+
+
+ Gets the length offset term for the tendon. The offset term.
+
+
+ Gets the articulation that the tendon is a part of. The articulation.
+
+
+ Releases a tendon to remove it from the articulation and free its associated memory. When an articulation is released, its attached tendons are automatically released. Releasing a tendon is not allowed while the articulation is in a scene. In order to release the tendon, remove and then re-add the articulation to the scene.
+
+
+ Creates an articulation attachment and adds it to the list of children in the parent attachment. Creating an attachment is not allowed while the articulation is in a scene. In order to add the attachment, remove and then re-add the articulation to the scene. The newly-created attachment if creation was successful, otherwise a null pointer.
+
+
+ Fills a user-provided buffer of attachment pointers with the set of attachments. The number of attachments that were filled into the user buffer.
+
+
+ Returns the number of attachments in the tendon. The number of attachments.
+
+
+ Returns the string name of the dynamic type. The string name.
+
+
+ Creates an articulation tendon joint and adds it to the list of children in the parent tendon joint. Creating a tendon joint is not allowed while the articulation is in a scene. In order to add the joint, remove and then re-add the articulation to the scene. The newly-created tendon joint if creation was successful, otherwise a null pointer. - The axis motion must not be configured as PxArticulationMotion::eLOCKED. - The axis cannot be part of a fixed joint, i.e. joint configured as PxArticulationJointType::eFIX.
+
+
+ Fills a user-provided buffer of tendon-joint pointers with the set of tendon joints. The number of tendon joints filled into the user buffer.
+
+
+ Returns the number of tendon joints in the tendon. The number of tendon joints.
+
+
+ Sets the spring rest length of the tendon. The accumulated \"length\" of a fixed tendon is a linear combination of the joint axis positions that the tendon is associated with, scaled by the respective tendon joints' coefficients. As such, when the joint positions of all joints are zero, the accumulated length of a fixed tendon is zero. The spring of the tendon is not exerting any force on the articulation when the rest length is equal to the tendon's accumulated length plus the tendon offset.
+
+
+ Gets the spring rest length of the tendon. The spring rest length of the tendon.
+
+
+ Sets the low and high limit on the length of the tendon. The limits, together with the damping and limit stiffness parameters, act on the accumulated length of the tendon.
+
+
+ Gets the low and high limit on the length of the tendon. Struct with the low and high limit.
+
+
+ Returns the string name of the dynamic type. The string name.
+
+
+ Releases an articulation cache.
+
+
+ Releases the sensor. Releasing a sensor is not allowed while the articulation is in a scene. In order to release a sensor, remove and then re-add the articulation to the scene.
+
+
+ Returns the spatial force in the local frame of the sensor. The spatial force. This call is not allowed while the simulation is running except in a split simulation during [`PxScene::collide`]() and up to #PxScene::advance(), and in PxContactModifyCallback or in contact report callbacks.
+
+
+ Returns the relative pose between this sensor and the body frame of the link that the sensor is attached to. The link body frame is at the center of mass and aligned with the principal axes of inertia, see PxRigidBody::getCMassLocalPose. The transform link body frame -> sensor frame.
+
+
+ Sets the relative pose between this sensor and the body frame of the link that the sensor is attached to. The link body frame is at the center of mass and aligned with the principal axes of inertia, see PxRigidBody::getCMassLocalPose. Setting the sensor relative pose is not allowed while the articulation is in a scene. In order to set the pose, remove and then re-add the articulation to the scene.
+
+
+ Returns the link that this sensor is attached to. A pointer to the link.
+
+
+ Returns the index of this sensor inside the articulation. The return value is only valid for sensors attached to articulations that are in a scene. The low-level index, or 0xFFFFFFFF if the articulation is not in a scene.
+
+
+ Returns the articulation that this sensor is part of. A pointer to the articulation.
+
+
+ Returns the sensor's flags. The current set of flags of the sensor.
+
+
+ Sets a flag of the sensor. Setting the sensor flags is not allowed while the articulation is in a scene. In order to set the flags, remove and then re-add the articulation to the scene.
+
+
+ Returns the string name of the dynamic type. The string name.
+
+
+ Returns the scene which this articulation belongs to. Owner Scene. NULL if not part of a scene.
+
+
+ Sets the solver iteration counts for the articulation. The solver iteration count determines how accurately contacts, drives, and limits are resolved. Setting a higher position iteration count may therefore help in scenarios where the articulation is subject to many constraints; for example, a manipulator articulation with drives and joint limits that is grasping objects, or several such articulations interacting through contacts. Other situations where higher position iterations may improve simulation fidelity are: large mass ratios within the articulation or between the articulation and an object in contact with it; or strong drives in the articulation being used to manipulate a light object. If intersecting bodies are being depenetrated too violently, increase the number of velocity iterations. More velocity iterations will drive the relative exit velocity of the intersecting objects closer to the correct value given the restitution. This call may not be made during simulation.
+
+
+ Returns the solver iteration counts.
+
+
+ Returns true if this articulation is sleeping. When an actor does not move for a period of time, it is no longer simulated in order to save time. This state is called sleeping. However, because the object automatically wakes up when it is either touched by an awake object, or a sleep-affecting property is changed by the user, the entire sleep mechanism should be transparent to the user. An articulation can only go to sleep if all links are ready for sleeping. An articulation is guaranteed to be awake if at least one of the following holds: The wake counter is positive (see [`setWakeCounter`]()). The linear or angular velocity of any link is non-zero. A non-zero force or torque has been applied to the articulation or any of its links. If an articulation is sleeping, the following state is guaranteed: The wake counter is zero. The linear and angular velocity of all links is zero. There is no force update pending. When an articulation gets inserted into a scene, it will be considered asleep if all the points above hold, else it will be treated as awake. If an articulation is asleep after the call to [`PxScene::fetchResults`]() returns, it is guaranteed that the poses of the links were not changed. You can use this information to avoid updating the transforms of associated objects. True if the articulation is sleeping. This call may only be made on articulations that are in a scene, and may not be made during simulation, except in a split simulation in-between [`PxScene::fetchCollision`] and #PxScene::advance.
+
+
+ Sets the mass-normalized energy threshold below which the articulation may go to sleep. The articulation will sleep if the energy of each link is below this threshold. This call may not be made during simulation.
+
+
+ Returns the mass-normalized energy below which the articulation may go to sleep. The energy threshold for sleeping.
+
+
+ Sets the mass-normalized kinetic energy threshold below which the articulation may participate in stabilization. Articulations whose kinetic energy divided by their mass is above this threshold will not participate in stabilization. This value has no effect if PxSceneFlag::eENABLE_STABILIZATION was not enabled on the PxSceneDesc. Default: 0.01 * PxTolerancesScale::speed * PxTolerancesScale::speed This call may not be made during simulation.
+
+
+ Returns the mass-normalized kinetic energy below which the articulation may participate in stabilization. Articulations whose kinetic energy divided by their mass is above this threshold will not participate in stabilization. The energy threshold for participating in stabilization.
+
+
+ Sets the wake counter for the articulation in seconds. - The wake counter value determines the minimum amount of time until the articulation can be put to sleep. - An articulation will not be put to sleep if the energy is above the specified threshold (see [`setSleepThreshold`]()) or if other awake objects are touching it. - Passing in a positive value will wake up the articulation automatically. Default: 0.4s (which corresponds to 20 frames for a time step of 0.02s) This call may not be made during simulation, except in a split simulation in-between [`PxScene::fetchCollision`] and #PxScene::advance.
+
+
+ Returns the wake counter of the articulation in seconds. The wake counter of the articulation in seconds. This call may not be made during simulation, except in a split simulation in-between [`PxScene::fetchCollision`] and #PxScene::advance.
+
+
+ Wakes up the articulation if it is sleeping. - The articulation will get woken up and might cause other touching objects to wake up as well during the next simulation step. - This will set the wake counter of the articulation to the value specified in [`PxSceneDesc::wakeCounterResetValue`]. This call may only be made on articulations that are in a scene, and may not be made during simulation, except in a split simulation in-between [`PxScene::fetchCollision`] and #PxScene::advance.
+
+
+ Forces the articulation to sleep. - The articulation will stay asleep during the next simulation step if not touched by another non-sleeping actor. - This will set any applied force, the velocity, and the wake counter of all bodies in the articulation to zero. This call may not be made during simulation, and may only be made on articulations that are in a scene.
+
+
+ Sets the limit on the magnitude of the linear velocity of the articulation's center of mass. - The limit acts on the linear velocity of the entire articulation. The velocity is calculated from the total momentum and the spatial inertia of the articulation. - The limit only applies to floating-base articulations. - A benefit of the COM velocity limit is that it is evenly applied to the whole articulation, which results in fewer visual artifacts compared to link rigid-body damping or joint-velocity limits. However, these per-link or per-degree-of-freedom limits may still help avoid numerical issues. This call may not be made during simulation.
+
+
+ Gets the limit on the magnitude of the linear velocity of the articulation's center of mass. The maximal linear velocity magnitude.
+
+
+ Sets the limit on the magnitude of the angular velocity at the articulation's center of mass. - The limit acts on the angular velocity of the entire articulation. The velocity is calculated from the total momentum and the spatial inertia of the articulation. - The limit only applies to floating-base articulations. - A benefit of the COM velocity limit is that it is evenly applied to the whole articulation, which results in fewer visual artifacts compared to link rigid-body damping or joint-velocity limits. However, these per-link or per-degree-of-freedom limits may still help avoid numerical issues. This call may not be made during simulation.
+
+
+ Gets the limit on the magnitude of the angular velocity at the articulation's center of mass. The maximal angular velocity magnitude.
+
+
+ Adds a link to the articulation with default attribute values. The new link, or NULL if the link cannot be created. Creating a link is not allowed while the articulation is in a scene. In order to add a link, remove and then re-add the articulation to the scene.
+
+
+ Releases the articulation, and all its links and corresponding joints. Attached sensors and tendons are released automatically when the articulation is released. This call may not be made during simulation.
+
+
+ Returns the number of links in the articulation. The number of links.
+
+
+ Returns the set of links in the articulation in the order that they were added to the articulation using createLink. The number of links written into the buffer.
+
+
+ Returns the number of shapes in the articulation. The number of shapes.
+
+
+ Sets a name string for the articulation that can be retrieved with getName(). This is for debugging and is not used by the SDK. The string is not copied by the SDK, only the pointer is stored.
+
+
+ Returns the name string set with setName(). Name string associated with the articulation.
+
+
+ Returns the axis-aligned bounding box enclosing the articulation. The articulation's bounding box. It is not allowed to use this method while the simulation is running, except in a split simulation during [`PxScene::collide`]() and up to #PxScene::advance(), and in PxContactModifyCallback or in contact report callbacks.
+
+
+ Returns the aggregate the articulation might be a part of. The aggregate the articulation is a part of, or NULL if the articulation does not belong to an aggregate.
+
+
+ Sets flags on the articulation. This call may not be made during simulation.
+
+
+ Raises or clears a flag on the articulation. This call may not be made during simulation.
+
+
+ Returns the articulation's flags. The flags.
+
+
+ Returns the total number of joint degrees-of-freedom (DOFs) of the articulation. - The six DOFs of the base of a floating-base articulation are not included in this count. - Example: Both a fixed-base and a floating-base double-pendulum with two revolute joints will have getDofs() == 2. - The return value is only valid for articulations that are in a scene. The number of joint DOFs, or 0xFFFFFFFF if the articulation is not in a scene.
+
+
+ Creates an articulation cache that can be used to read and write internal articulation data. - When the structure of the articulation changes (e.g. adding a link or sensor) after the cache was created, the cache needs to be released and recreated. - Free the memory allocated for the cache by calling the release() method on the cache. - Caches can only be created by articulations that are in a scene. The cache, or NULL if the articulation is not in a scene.
+
+
+ Returns the size of the articulation cache in bytes. - The size does not include: the user-allocated memory for the coefficient matrix or lambda values; the scratch-related memory/members; and the cache version. See comment in [`PxArticulationCache`]. - The return value is only valid for articulations that are in a scene. The byte size of the cache, or 0xFFFFFFFF if the articulation is not in a scene.
+
+
+ Zeroes all data in the articulation cache, except user-provided and scratch memory, and cache version. This call may only be made on articulations that are in a scene.
+
+
+ Applies the data in the cache to the articulation. This call wakes the articulation if it is sleeping, and the autowake parameter is true (default) or: - a nonzero joint velocity is applied or - a nonzero joint force is applied or - a nonzero root velocity is applied This call may only be made on articulations that are in a scene, and may not be made during simulation.
+
+
+ Copies internal data of the articulation to the cache. This call may only be made on articulations that are in a scene, and may not be made during simulation.
+
+
+ Converts maximal-coordinate joint DOF data to reduced coordinates. - Indexing into the maximal joint DOF data is via the link's low-level index minus 1 (the root link is not included). - The reduced-coordinate data follows the cache indexing convention, see PxArticulationCache::jointVelocity. The articulation must be in a scene.
+
+
+ Converts reduced-coordinate joint DOF data to maximal coordinates. - Indexing into the maximal joint DOF data is via the link's low-level index minus 1 (the root link is not included). - The reduced-coordinate data follows the cache indexing convention, see PxArticulationCache::jointVelocity. The articulation must be in a scene.
+
+
+ Prepares common articulation data based on articulation pose for inverse dynamics calculations. Usage: 1. Set articulation pose (joint positions and base transform) via articulation cache and applyCache(). 1. Call commonInit. 1. Call inverse dynamics computation method. This call may only be made on articulations that are in a scene, and may not be made during simulation.
+
+
+ Computes the joint DOF forces required to counteract gravitational forces for the given articulation pose. - Inputs - Articulation pose (joint positions + base transform). - Outputs - Joint forces to counteract gravity (in cache). - The joint forces returned are determined purely by gravity for the articulation in the current joint and base pose, and joints at rest; i.e. external forces, joint velocities, and joint accelerations are set to zero. Joint drives are also not considered in the computation. - commonInit() must be called before the computation, and after setting the articulation pose via applyCache(). This call may only be made on articulations that are in a scene, and may not be made during simulation.
+
+
+ Computes the joint DOF forces required to counteract Coriolis and centrifugal forces for the given articulation state. - Inputs - Articulation state (joint positions and velocities (in cache), and base transform and spatial velocity). - Outputs - Joint forces to counteract Coriolis and centrifugal forces (in cache). - The joint forces returned are determined purely by the articulation's state; i.e. external forces, gravity, and joint accelerations are set to zero. Joint drives and potential damping terms, such as link angular or linear damping, or joint friction, are also not considered in the computation. - Prior to the computation, update/set the base spatial velocity with PxArticulationCache::rootLinkData and applyCache(). - commonInit() must be called before the computation, and after setting the articulation pose via applyCache(). This call may only be made on articulations that are in a scene, and may not be made during simulation.
+
+
+ Computes the joint DOF forces required to counteract external spatial forces applied to articulation links. - Inputs - External forces on links (in cache), articulation pose (joint positions + base transform). - Outputs - Joint forces to counteract the external forces (in cache). - Only the external spatial forces provided in the cache and the articulation pose are considered in the computation. - The external spatial forces are with respect to the links' centers of mass, and not the actor's origin. - commonInit() must be called before the computation, and after setting the articulation pose via applyCache(). This call may only be made on articulations that are in a scene, and may not be made during simulation.
+
+
+ Computes the joint accelerations for the given articulation state and joint forces. - Inputs - Joint forces (in cache) and articulation state (joint positions and velocities (in cache), and base transform and spatial velocity). - Outputs - Joint accelerations (in cache). - The computation includes Coriolis terms and gravity. However, joint drives and potential damping terms are not considered in the computation (for example, linear link damping or joint friction). - Prior to the computation, update/set the base spatial velocity with PxArticulationCache::rootLinkData and applyCache(). - commonInit() must be called before the computation, and after setting the articulation pose via applyCache(). This call may only be made on articulations that are in a scene, and may not be made during simulation.
+
+
+ Computes the joint forces for the given articulation state and joint accelerations, not considering gravity. - Inputs - Joint accelerations (in cache) and articulation state (joint positions and velocities (in cache), and base transform and spatial velocity). - Outputs - Joint forces (in cache). - The computation includes Coriolis terms. However, joint drives and potential damping terms are not considered in the computation (for example, linear link damping or joint friction). - Prior to the computation, update/set the base spatial velocity with PxArticulationCache::rootLinkData and applyCache(). - commonInit() must be called before the computation, and after setting the articulation pose via applyCache(). This call may only be made on articulations that are in a scene, and may not be made during simulation.
+
+
+ Compute the dense Jacobian for the articulation in world space, including the DOFs of a potentially floating base. This computes the dense representation of an inherently sparse matrix. Multiplication with this matrix maps joint space velocities to world-space linear and angular (i.e. spatial) velocities of the centers of mass of the links. This call may only be made on articulations that are in a scene, and may not be made during simulation.
+
+
+ Computes the coefficient matrix for contact forces. - The matrix dimension is getCoefficientMatrixSize() = getDofs() * getNbLoopJoints(), and the DOF (column) indexing follows the internal DOF order, see PxArticulationCache::jointVelocity. - Each column in the matrix is the joint forces effected by a contact based on impulse strength 1. - The user must allocate memory for PxArticulationCache::coefficientMatrix where the required size of the PxReal array is equal to getCoefficientMatrixSize(). - commonInit() must be called before the computation, and after setting the articulation pose via applyCache(). This call may only be made on articulations that are in a scene, and may not be made during simulation.
+
+
+ Computes the lambda values when the test impulse is 1. - The user must allocate memory for PxArticulationCache::lambda where the required size of the PxReal array is equal to getNbLoopJoints(). - commonInit() must be called before the computation, and after setting the articulation pose via applyCache(). True if convergence was achieved within maxIter; False if convergence was not achieved or the operation failed otherwise. This call may only be made on articulations that are in a scene, and may not be made during simulation.
+
+
+ Compute the joint-space inertia matrix that maps joint accelerations to joint forces: forces = M * accelerations. - Inputs - Articulation pose (joint positions and base transform). - Outputs - Mass matrix (in cache). commonInit() must be called before the computation, and after setting the articulation pose via applyCache(). This call may only be made on articulations that are in a scene, and may not be made during simulation.
+
+
+ Adds a loop joint to the articulation system for inverse dynamics. This call may not be made during simulation.
+
+
+ Removes a loop joint from the articulation for inverse dynamics. This call may not be made during simulation.
+
+
+ Returns the number of loop joints in the articulation for inverse dynamics. The number of loop joints.
+
+
+ Returns the set of loop constraints (i.e. joints) in the articulation. The number of constraints written into the buffer.
+
+
+ Returns the required size of the coefficient matrix in the articulation. Size of the coefficient matrix (equal to getDofs() * getNbLoopJoints()). This call may only be made on articulations that are in a scene.
+
+
+ Sets the root link transform (world to actor frame). - For performance, prefer PxArticulationCache::rootLinkData to set the root link transform in a batch articulation state update. - Use updateKinematic() after all state updates to the articulation via non-cache API such as this method, in order to update link states for the next simulation frame or querying. This call may not be made during simulation.
+
+
+ Returns the root link transform (world to actor frame). For performance, prefer PxArticulationCache::rootLinkData to get the root link transform in a batch query. The root link transform. This call is not allowed while the simulation is running except in a split simulation during [`PxScene::collide`]() and up to #PxScene::advance(), and in PxContactModifyCallback or in contact report callbacks.
+
+
+ Sets the root link linear center-of-mass velocity. - The linear velocity is with respect to the link's center of mass and not the actor frame origin. - For performance, prefer PxArticulationCache::rootLinkData to set the root link velocity in a batch articulation state update. - The articulation is woken up if the input velocity is nonzero (ignoring autowake) and the articulation is in a scene. - Use updateKinematic() after all state updates to the articulation via non-cache API such as this method, in order to update link states for the next simulation frame or querying. This call may not be made during simulation, except in a split simulation in-between [`PxScene::fetchCollision`] and #PxScene::advance.
+
+
+ Gets the root link center-of-mass linear velocity. - The linear velocity is with respect to the link's center of mass and not the actor frame origin. - For performance, prefer PxArticulationCache::rootLinkData to get the root link velocity in a batch query. The root link center-of-mass linear velocity. This call is not allowed while the simulation is running except in a split simulation during [`PxScene::collide`]() and up to #PxScene::advance(), and in PxContactModifyCallback or in contact report callbacks.
+
+
+ Sets the root link angular velocity. - For performance, prefer PxArticulationCache::rootLinkData to set the root link velocity in a batch articulation state update. - The articulation is woken up if the input velocity is nonzero (ignoring autowake) and the articulation is in a scene. - Use updateKinematic() after all state updates to the articulation via non-cache API such as this method, in order to update link states for the next simulation frame or querying. This call may not be made during simulation, except in a split simulation in-between [`PxScene::fetchCollision`] and #PxScene::advance.
+
+
+ Gets the root link angular velocity. For performance, prefer PxArticulationCache::rootLinkData to get the root link velocity in a batch query. The root link angular velocity. This call is not allowed while the simulation is running except in a split simulation during [`PxScene::collide`]() and up to #PxScene::advance(), and in PxContactModifyCallback or in contact report callbacks.
+
+
+ Returns the (classical) link acceleration in world space for the given low-level link index. - The returned acceleration is not a spatial, but a classical, i.e. body-fixed acceleration (https://en.wikipedia.org/wiki/Spatial_acceleration). - The (linear) acceleration is with respect to the link's center of mass and not the actor frame origin. The link's center-of-mass classical acceleration, or 0 if the call is made before the articulation participated in a first simulation step. This call may only be made on articulations that are in a scene, and it is not allowed to use this method while the simulation is running except in a split simulation during [`PxScene::collide`]() and up to #PxScene::advance(), and in PxContactModifyCallback or in contact report callbacks.
+
+
+ Returns the GPU articulation index. The GPU index, or 0xFFFFFFFF if the articulation is not in a scene or PxSceneFlag::eSUPPRESS_READBACK is not set.
+
+
+ Creates a spatial tendon to attach to the articulation with default attribute values. The new spatial tendon. Creating a spatial tendon is not allowed while the articulation is in a scene. In order to add the tendon, remove and then re-add the articulation to the scene.
+
+
+ Creates a fixed tendon to attach to the articulation with default attribute values. The new fixed tendon. Creating a fixed tendon is not allowed while the articulation is in a scene. In order to add the tendon, remove and then re-add the articulation to the scene.
+
+
+ Creates a force sensor attached to a link of the articulation. The new sensor. Creating a sensor is not allowed while the articulation is in a scene. In order to add the sensor, remove and then re-add the articulation to the scene.
+
+
+ Returns the spatial tendons attached to the articulation. The order of the tendons in the buffer is not necessarily identical to the order in which the tendons were added to the articulation. The number of tendons written into the buffer.
+
+
+ Returns the number of spatial tendons in the articulation. The number of tendons.
+
+
+ Returns the fixed tendons attached to the articulation. The order of the tendons in the buffer is not necessarily identical to the order in which the tendons were added to the articulation. The number of tendons written into the buffer.
+
+
+ Returns the number of fixed tendons in the articulation. The number of tendons.
+
+
+ Returns the sensors attached to the articulation. The order of the sensors in the buffer is not necessarily identical to the order in which the sensors were added to the articulation. The number of sensors written into the buffer.
+
+
+ Returns the number of sensors in the articulation. The number of sensors.
+
+
+ Update link velocities and/or positions in the articulation. For performance, prefer the PxArticulationCache API that performs batch articulation state updates. If the application updates the root state (position and velocity) or joint state via any combination of the non-cache API calls - setRootGlobalPose(), setRootLinearVelocity(), setRootAngularVelocity() - PxArticulationJointReducedCoordinate::setJointPosition(), PxArticulationJointReducedCoordinate::setJointVelocity() the application needs to call this method after the state setting in order to update the link states for the next simulation frame or querying. Use - PxArticulationKinematicFlag::ePOSITION after any changes to the articulation root or joint positions using non-cache API calls. Updates links' positions and velocities. - PxArticulationKinematicFlag::eVELOCITY after velocity-only changes to the articulation root or joints using non-cache API calls. Updates links' velocities only. This call may only be made on articulations that are in a scene, and may not be made during simulation.
+
+
+ Gets the parent articulation link of this joint. The parent link.
+
+
+ Sets the joint pose in the parent link actor frame. This call is not allowed while the simulation is running.
+
+
+ Gets the joint pose in the parent link actor frame. The joint pose.
+
+
+ Gets the child articulation link of this joint. The child link.
+
+
+ Sets the joint pose in the child link actor frame. This call is not allowed while the simulation is running.
+
+
+ Gets the joint pose in the child link actor frame. The joint pose.
+
+
+ Sets the joint type (e.g. revolute). Setting the joint type is not allowed while the articulation is in a scene. In order to set the joint type, remove and then re-add the articulation to the scene.
+
+
+ Gets the joint type. The joint type.
+
+
+ Sets the joint motion for a given axis. Setting the motion of joint axes is not allowed while the articulation is in a scene. In order to set the motion, remove and then re-add the articulation to the scene.
+
+
+ Returns the joint motion for the given axis. The joint motion of the given axis.
+
+
+ Sets the joint limits for a given axis. - The motion of the corresponding axis should be set to PxArticulationMotion::eLIMITED in order for the limits to be enforced. - The lower limit should be strictly smaller than the higher limit. If the limits should be equal, use PxArticulationMotion::eLOCKED and an appropriate offset in the parent/child joint frames. This call is not allowed while the simulation is running. For spherical joints, limit.min and limit.max must both be in range [-Pi, Pi].
+
+
+ Returns the joint limits for a given axis. The joint limits.
+
+
+ Configures a joint drive for the given axis. See PxArticulationDrive for parameter details; and the manual for further information, and the drives' implicit spring-damper (i.e. PD control) implementation in particular. This call is not allowed while the simulation is running.
+
+
+ Gets the joint drive configuration for the given axis. The drive parameters.
+
+
+ Sets the joint drive position target for the given axis. The target units are linear units (equivalent to scene units) for a translational axis, or rad for a rotational axis. This call is not allowed while the simulation is running. For spherical joints, target must be in range [-Pi, Pi]. The target is specified in the parent frame of the joint. If Gp, Gc are the parent and child actor poses in the world frame and Lp, Lc are the parent and child joint frames expressed in the parent and child actor frames then the joint will drive the parent and child links to poses that obey Gp * Lp * J = Gc * Lc. For joints restricted to angular motion, J has the form PxTranfsorm(PxVec3(PxZero), PxExp(PxVec3(twistTarget, swing1Target, swing2Target))). For joints restricted to linear motion, J has the form PxTransform(PxVec3(XTarget, YTarget, ZTarget), PxQuat(PxIdentity)). For spherical joints with more than 1 degree of freedom, the joint target angles taken together can collectively represent a rotation of greater than Pi around a vector. When this happens the rotation that matches the joint drive target is not the shortest path rotation. The joint pose J that is the outcome after driving to the target pose will always be the equivalent of the shortest path rotation.
+
+
+ Returns the joint drive position target for the given axis. The target position.
+
+
+ Sets the joint drive velocity target for the given axis. The target units are linear units (equivalent to scene units) per second for a translational axis, or radians per second for a rotational axis. This call is not allowed while the simulation is running.
+
+
+ Returns the joint drive velocity target for the given axis. The target velocity.
+
+
+ Sets the joint armature for the given axis. - The armature is directly added to the joint-space spatial inertia of the corresponding axis. - The armature is in mass units for a prismatic (i.e. linear) joint, and in mass units * (scene linear units)^2 for a rotational joint. This call is not allowed while the simulation is running.
+
+
+ Gets the joint armature for the given axis. The armature set on the given axis.
+
+
+ Sets the joint friction coefficient, which applies to all joint axes. - The joint friction is unitless and relates the magnitude of the spatial force [F_trans, T_trans] transmitted from parent to child link to the maximal friction force F_resist that may be applied by the solver to resist joint motion, per axis; i.e. |F_resist| < coefficient * (|F_trans| + |T_trans|), where F_resist may refer to a linear force or torque depending on the joint axis. - The simulated friction effect is therefore similar to static and Coulomb friction. In order to simulate dynamic joint friction, use a joint drive with zero stiffness and zero velocity target, and an appropriately dimensioned damping parameter. This call is not allowed while the simulation is running.
+
+
+ Gets the joint friction coefficient. The joint friction coefficient.
+
+
+ Sets the maximal joint velocity enforced for all axes. - The solver will apply appropriate joint-space impulses in order to enforce the per-axis joint-velocity limit. - The velocity units are linear units (equivalent to scene units) per second for a translational axis, or radians per second for a rotational axis. This call is not allowed while the simulation is running.
+
+
+ Gets the maximal joint velocity enforced for all axes. The maximal per-axis joint velocity.
+
+
+ Sets the joint position for the given axis. - For performance, prefer PxArticulationCache::jointPosition to set joint positions in a batch articulation state update. - Use PxArticulationReducedCoordinate::updateKinematic after all state updates to the articulation via non-cache API such as this method, in order to update link states for the next simulation frame or querying. This call is not allowed while the simulation is running. For spherical joints, jointPos must be in range [-Pi, Pi]. Joint position is specified in the parent frame of the joint. If Gp, Gc are the parent and child actor poses in the world frame and Lp, Lc are the parent and child joint frames expressed in the parent and child actor frames then the parent and child links will be given poses that obey Gp * Lp * J = Gc * Lc with J denoting the joint pose. For joints restricted to angular motion, J has the form PxTranfsorm(PxVec3(PxZero), PxExp(PxVec3(twistPos, swing1Pos, swing2Pos))). For joints restricted to linear motion, J has the form PxTransform(PxVec3(xPos, yPos, zPos), PxQuat(PxIdentity)). For spherical joints with more than 1 degree of freedom, the input joint positions taken together can collectively represent a rotation of greater than Pi around a vector. When this happens the rotation that matches the joint positions is not the shortest path rotation. The joint pose J that is the outcome of setting and applying the joint positions will always be the equivalent of the shortest path rotation.
+
+
+ Gets the joint position for the given axis, i.e. joint degree of freedom (DOF). For performance, prefer PxArticulationCache::jointPosition to get joint positions in a batch query. The joint position in linear units (equivalent to scene units) for a translational axis, or radians for a rotational axis. This call is not allowed while the simulation is running except in a split simulation during [`PxScene::collide`]() and up to #PxScene::advance(), and in PxContactModifyCallback or in contact report callbacks.
+
+
+ Sets the joint velocity for the given axis. - For performance, prefer PxArticulationCache::jointVelocity to set joint velocities in a batch articulation state update. - Use PxArticulationReducedCoordinate::updateKinematic after all state updates to the articulation via non-cache API such as this method, in order to update link states for the next simulation frame or querying. This call is not allowed while the simulation is running.
+
+
+ Gets the joint velocity for the given axis. For performance, prefer PxArticulationCache::jointVelocity to get joint velocities in a batch query. The joint velocity in linear units (equivalent to scene units) per second for a translational axis, or radians per second for a rotational axis. This call is not allowed while the simulation is running except in a split simulation during [`PxScene::collide`]() and up to #PxScene::advance(), and in PxContactModifyCallback or in contact report callbacks.
+
+
+ Returns the string name of the dynamic type. The string name.
+
+
+ Decrements the reference count of a shape and releases it if the new reference count is zero. Note that in releases prior to PhysX 3.3 this method did not have reference counting semantics and was used to destroy a shape created with PxActor::createShape(). In PhysX 3.3 and above, this usage is deprecated, instead, use PxRigidActor::detachShape() to detach a shape from an actor. If the shape to be detached was created with PxActor::createShape(), the actor holds the only counted reference, and so when the shape is detached it will also be destroyed.
+
+
+ Adjust the geometry of the shape. The type of the passed in geometry must match the geometry type of the shape. It is not allowed to change the geometry type of a shape. This function does not guarantee correct/continuous behavior when objects are resting on top of old or new geometry.
+
+
+ Retrieve a reference to the shape's geometry. The returned reference has the same lifetime as the PxShape it comes from. Reference to internal PxGeometry object.
+
+
+ Retrieves the actor which this shape is associated with. The actor this shape is associated with, if it is an exclusive shape, else NULL
+
+
+ Sets the pose of the shape in actor space, i.e. relative to the actors to which they are attached. This transformation is identity by default. The local pose is an attribute of the shape, and so will apply to all actors to which the shape is attached. Sleeping: Does NOT wake the associated actor up automatically. Note: Does not automatically update the inertia properties of the owning actor (if applicable); use the PhysX extensions method [`PxRigidBodyExt::updateMassAndInertia`]() to do this. Default: the identity transform
+
+
+ Retrieves the pose of the shape in actor space, i.e. relative to the actor they are owned by. This transformation is identity by default. Pose of shape relative to the actor's frame.
+
+
+ Sets the user definable collision filter data. Sleeping: Does wake up the actor if the filter data change causes a formerly suppressed collision pair to be enabled. Default: (0,0,0,0)
+
+
+ Retrieves the shape's collision filter data.
+
+
+ Sets the user definable query filter data. Default: (0,0,0,0)
+
+
+ Retrieves the shape's Query filter data.
+
+
+ Assigns material(s) to the shape. Will remove existing materials from the shape. Sleeping: Does NOT wake the associated actor up automatically.
+
+
+ Returns the number of materials assigned to the shape. You can use [`getMaterials`]() to retrieve the material pointers. Number of materials associated with this shape.
+
+
+ Retrieve all the material pointers associated with the shape. You can retrieve the number of material pointers by calling [`getNbMaterials`]() Note: The returned data may contain invalid pointers if you release materials using [`PxMaterial::release`](). Number of material pointers written to the buffer.
+
+
+ Retrieve material from given triangle index. The input index is the internal triangle index as used inside the SDK. This is the index returned to users by various SDK functions such as raycasts. This function is only useful for triangle meshes or heightfields, which have per-triangle materials. For other shapes or SDF triangle meshes, the function returns the single material associated with the shape, regardless of the index. Material from input triangle If faceIndex value of 0xFFFFffff is passed as an input for mesh and heightfield shapes, this function will issue a warning and return NULL. Scene queries set the value of PxQueryHit::faceIndex to 0xFFFFffff whenever it is undefined or does not apply.
+
+
+ Sets the contact offset. Shapes whose distance is less than the sum of their contactOffset values will generate contacts. The contact offset must be positive and greater than the rest offset. Having a contactOffset greater than than the restOffset allows the collision detection system to predictively enforce the contact constraint even when the objects are slightly separated. This prevents jitter that would occur if the constraint were enforced only when shapes were within the rest distance. Default: 0.02f * PxTolerancesScale::length Sleeping: Does NOT wake the associated actor up automatically.
+
+
+ Retrieves the contact offset. The contact offset of the shape.
+
+
+ Sets the rest offset. Two shapes will come to rest at a distance equal to the sum of their restOffset values. If the restOffset is 0, they should converge to touching exactly. Having a restOffset greater than zero is useful to have objects slide smoothly, so that they do not get hung up on irregularities of each others' surfaces. Default: 0.0f Sleeping: Does NOT wake the associated actor up automatically.
+
+
+ Retrieves the rest offset. The rest offset of the shape.
+
+
+ Sets the density used to interact with fluids. To be physically accurate, the density of a rigid body should be computed as its mass divided by its volume. To simplify tuning the interaction of fluid and rigid bodies, the density for fluid can differ from the real density. This allows to create floating bodies, even if they are supposed to sink with their mass and volume. Default: 800.0f
+
+
+ Retrieves the density used to interact with fluids. The density of the body when interacting with fluid.
+
+
+ Sets torsional patch radius. This defines the radius of the contact patch used to apply torsional friction. If the radius is 0, no torsional friction will be applied. If the radius is > 0, some torsional friction will be applied. This is proportional to the penetration depth so, if the shapes are separated or penetration is zero, no torsional friction will be applied. It is used to approximate rotational friction introduced by the compression of contacting surfaces. Default: 0.0
+
+
+ Gets torsional patch radius. This defines the radius of the contact patch used to apply torsional friction. If the radius is 0, no torsional friction will be applied. If the radius is > 0, some torsional friction will be applied. This is proportional to the penetration depth so, if the shapes are separated or penetration is zero, no torsional friction will be applied. It is used to approximate rotational friction introduced by the compression of contacting surfaces. The torsional patch radius of the shape.
+
+
+ Sets minimum torsional patch radius. This defines the minimum radius of the contact patch used to apply torsional friction. If the radius is 0, the amount of torsional friction that will be applied will be entirely dependent on the value of torsionalPatchRadius. If the radius is > 0, some torsional friction will be applied regardless of the value of torsionalPatchRadius or the amount of penetration. Default: 0.0
+
+
+ Gets minimum torsional patch radius. This defines the minimum radius of the contact patch used to apply torsional friction. If the radius is 0, the amount of torsional friction that will be applied will be entirely dependent on the value of torsionalPatchRadius. If the radius is > 0, some torsional friction will be applied regardless of the value of torsionalPatchRadius or the amount of penetration. The minimum torsional patch radius of the shape.
+
+
+ Sets shape flags Sleeping: Does NOT wake the associated actor up automatically. Default: PxShapeFlag::eVISUALIZATION | PxShapeFlag::eSIMULATION_SHAPE | PxShapeFlag::eSCENE_QUERY_SHAPE
+
+
+ Sets shape flags
+
+
+ Retrieves shape flags. The values of the shape flags.
+
+
+ Returns true if the shape is exclusive to an actor.
+
+
+ Sets a name string for the object that can be retrieved with [`getName`](). This is for debugging and is not used by the SDK. The string is not copied by the SDK, only the pointer is stored. Default: NULL
+
+
+ retrieves the name string set with setName(). The name associated with the shape.
+
+
+ Deletes the rigid actor object. Also releases any shapes associated with the actor. Releasing an actor will affect any objects that are connected to the actor (constraint shaders like joints etc.). Such connected objects will be deleted upon scene deletion, or explicitly by the user by calling release() on these objects. It is recommended to always remove all objects that reference actors before the actors themselves are removed. It is not possible to retrieve list of dead connected objects. Sleeping: This call will awaken any sleeping actors contacting the deleted actor (directly or indirectly). Calls [`PxActor::release`]() so you might want to check the documentation of that method as well.
+
+
+ Returns the internal actor index. This is only defined for actors that have been added to a scene. The internal actor index, or 0xffffffff if the actor is not part of a scene.
+
+
+ Retrieves the actors world space transform. The getGlobalPose() method retrieves the actor's current actor space to world space transformation. It is not allowed to use this method while the simulation is running (except during PxScene::collide(), in PxContactModifyCallback or in contact report callbacks). Global pose of object.
+
+
+ Method for setting an actor's pose in the world. This method instantaneously changes the actor space to world space transformation. This method is mainly for dynamic rigid bodies (see [`PxRigidDynamic`]). Calling this method on static actors is likely to result in a performance penalty, since internal optimization structures for static actors may need to be recomputed. In addition, moving static actors will not interact correctly with dynamic actors or joints. To directly control an actor's position and have it correctly interact with dynamic bodies and joints, create a dynamic body with the PxRigidBodyFlag::eKINEMATIC flag, then use the setKinematicTarget() commands to define its path. Even when moving dynamic actors, exercise restraint in making use of this method. Where possible, avoid: moving actors into other actors, thus causing overlap (an invalid physical state) moving an actor that is connected by a joint to another away from the other (thus causing joint error) Sleeping: This call wakes dynamic actors if they are sleeping and the autowake parameter is true (default).
+
+
+ Attach a shape to an actor This call will increment the reference count of the shape. Mass properties of dynamic rigid actors will not automatically be recomputed to reflect the new mass distribution implied by the shape. Follow this call with a call to the PhysX extensions method [`PxRigidBodyExt::updateMassAndInertia`]() to do that. Attaching a triangle mesh, heightfield or plane geometry shape configured as eSIMULATION_SHAPE is not supported for non-kinematic PxRigidDynamic instances. Sleeping: Does NOT wake the actor up automatically. True if success.
+
+
+ Detach a shape from an actor. This will also decrement the reference count of the PxShape, and if the reference count is zero, will cause it to be deleted. Sleeping: Does NOT wake the actor up automatically.
+
+
+ Returns the number of shapes assigned to the actor. You can use [`getShapes`]() to retrieve the shape pointers. Number of shapes associated with this actor.
+
+
+ Retrieve all the shape pointers belonging to the actor. These are the shapes used by the actor for collision detection. You can retrieve the number of shape pointers by calling [`getNbShapes`]() Note: Removing shapes with [`PxShape::release`]() will invalidate the pointer of the released shape. Number of shape pointers written to the buffer.
+
+
+ Returns the number of constraint shaders attached to the actor. You can use [`getConstraints`]() to retrieve the constraint shader pointers. Number of constraint shaders attached to this actor.
+
+
+ Retrieve all the constraint shader pointers belonging to the actor. You can retrieve the number of constraint shader pointers by calling [`getNbConstraints`]() Note: Removing constraint shaders with [`PxConstraint::release`]() will invalidate the pointer of the released constraint. Number of constraint shader pointers written to the buffer.
+
+
+ Sets the pose of the center of mass relative to the actor. Changing this transform will not move the actor in the world! Setting an unrealistic center of mass which is a long way from the body can make it difficult for the SDK to solve constraints. Perhaps leading to instability and jittering bodies. Default: the identity transform
+
+
+ Retrieves the center of mass pose relative to the actor frame. The center of mass pose relative to the actor frame.
+
+
+ Sets the mass of a dynamic actor. The mass must be non-negative. setMass() does not update the inertial properties of the body, to change the inertia tensor use setMassSpaceInertiaTensor() or the PhysX extensions method [`PxRigidBodyExt::updateMassAndInertia`](). A value of 0 is interpreted as infinite mass. Values of 0 are not permitted for instances of PxArticulationLink but are permitted for instances of PxRigidDynamic. Default: 1.0 Sleeping: Does NOT wake the actor up automatically.
+
+
+ Retrieves the mass of the actor. A value of 0 is interpreted as infinite mass. The mass of this actor.
+
+
+ Retrieves the inverse mass of the actor. The inverse mass of this actor.
+
+
+ Sets the inertia tensor, using a parameter specified in mass space coordinates. Note that such matrices are diagonal -- the passed vector is the diagonal. If you have a non diagonal world/actor space inertia tensor(3x3 matrix). Then you need to diagonalize it and set an appropriate mass space transform. See [`setCMassLocalPose`](). The inertia tensor elements must be non-negative. A value of 0 in an element is interpreted as infinite inertia along that axis. Values of 0 are not permitted for instances of PxArticulationLink but are permitted for instances of PxRigidDynamic. Default: (1.0, 1.0, 1.0) Sleeping: Does NOT wake the actor up automatically.
+
+
+ Retrieves the diagonal inertia tensor of the actor relative to the mass coordinate frame. This method retrieves a mass frame inertia vector. The mass space inertia tensor of this actor. A value of 0 in an element is interpreted as infinite inertia along that axis.
+
+
+ Retrieves the diagonal inverse inertia tensor of the actor relative to the mass coordinate frame. This method retrieves a mass frame inverse inertia vector. A value of 0 in an element is interpreted as infinite inertia along that axis. The mass space inverse inertia tensor of this actor.
+
+
+ Sets the linear damping coefficient. Zero represents no damping. The damping coefficient must be nonnegative. Default: 0.0
+
+
+ Retrieves the linear damping coefficient. The linear damping coefficient associated with this actor.
+
+
+ Sets the angular damping coefficient. Zero represents no damping. The angular damping coefficient must be nonnegative. Default: 0.05
+
+
+ Retrieves the angular damping coefficient. The angular damping coefficient associated with this actor.
+
+
+ Retrieves the linear velocity of an actor. It is not allowed to use this method while the simulation is running (except during PxScene::collide(), in PxContactModifyCallback or in contact report callbacks). The linear velocity of the actor.
+
+
+ Retrieves the angular velocity of the actor. It is not allowed to use this method while the simulation is running (except during PxScene::collide(), in PxContactModifyCallback or in contact report callbacks). The angular velocity of the actor.
+
+
+ Lets you set the maximum linear velocity permitted for this actor. With this function, you can set the maximum linear velocity permitted for this rigid body. Higher angular velocities are clamped to this value. Note: The angular velocity is clamped to the set value before the solver, which means that the limit may still be momentarily exceeded. Default: PX_MAX_F32
+
+
+ Retrieves the maximum angular velocity permitted for this actor. The maximum allowed angular velocity for this actor.
+
+
+ Lets you set the maximum angular velocity permitted for this actor. For various internal computations, very quickly rotating actors introduce error into the simulation, which leads to undesired results. With this function, you can set the maximum angular velocity permitted for this rigid body. Higher angular velocities are clamped to this value. Note: The angular velocity is clamped to the set value before the solver, which means that the limit may still be momentarily exceeded. Default: 100.0
+
+
+ Retrieves the maximum angular velocity permitted for this actor. The maximum allowed angular velocity for this actor.
+
+
+ Applies a force (or impulse) defined in the global coordinate frame to the actor at its center of mass. This will not induce a torque . ::PxForceMode determines if the force is to be conventional or impulsive. Each actor has an acceleration and a velocity change accumulator which are directly modified using the modes PxForceMode::eACCELERATION and PxForceMode::eVELOCITY_CHANGE respectively. The modes PxForceMode::eFORCE and PxForceMode::eIMPULSE also modify these same accumulators and are just short hand for multiplying the vector parameter by inverse mass and then using PxForceMode::eACCELERATION and PxForceMode::eVELOCITY_CHANGE respectively. It is invalid to use this method if the actor has not been added to a scene already or if PxActorFlag::eDISABLE_SIMULATION is set. The force modes PxForceMode::eIMPULSE and PxForceMode::eVELOCITY_CHANGE can not be applied to articulation links. if this is called on an articulation link, only the link is updated, not the entire articulation. see [`PxRigidBodyExt::computeVelocityDeltaFromImpulse`] for details of how to compute the change in linear velocity that will arise from the application of an impulsive force, where an impulsive force is applied force multiplied by a timestep. Sleeping: This call wakes the actor if it is sleeping, and the autowake parameter is true (default) or the force is non-zero.
+
+
+ Applies an impulsive torque defined in the global coordinate frame to the actor. ::PxForceMode determines if the torque is to be conventional or impulsive. Each actor has an angular acceleration and an angular velocity change accumulator which are directly modified using the modes PxForceMode::eACCELERATION and PxForceMode::eVELOCITY_CHANGE respectively. The modes PxForceMode::eFORCE and PxForceMode::eIMPULSE also modify these same accumulators and are just short hand for multiplying the vector parameter by inverse inertia and then using PxForceMode::eACCELERATION and PxForceMode::eVELOCITY_CHANGE respectively. It is invalid to use this method if the actor has not been added to a scene already or if PxActorFlag::eDISABLE_SIMULATION is set. The force modes PxForceMode::eIMPULSE and PxForceMode::eVELOCITY_CHANGE can not be applied to articulation links. if this called on an articulation link, only the link is updated, not the entire articulation. see [`PxRigidBodyExt::computeVelocityDeltaFromImpulse`] for details of how to compute the change in angular velocity that will arise from the application of an impulsive torque, where an impulsive torque is an applied torque multiplied by a timestep. Sleeping: This call wakes the actor if it is sleeping, and the autowake parameter is true (default) or the torque is non-zero.
+
+
+ Clears the accumulated forces (sets the accumulated force back to zero). Each actor has an acceleration and a velocity change accumulator which are directly modified using the modes PxForceMode::eACCELERATION and PxForceMode::eVELOCITY_CHANGE respectively. The modes PxForceMode::eFORCE and PxForceMode::eIMPULSE also modify these same accumulators (see PxRigidBody::addForce() for details); therefore the effect of calling clearForce(PxForceMode::eFORCE) is equivalent to calling clearForce(PxForceMode::eACCELERATION), and the effect of calling clearForce(PxForceMode::eIMPULSE) is equivalent to calling clearForce(PxForceMode::eVELOCITY_CHANGE). ::PxForceMode determines if the cleared force is to be conventional or impulsive. The force modes PxForceMode::eIMPULSE and PxForceMode::eVELOCITY_CHANGE can not be applied to articulation links. It is invalid to use this method if the actor has not been added to a scene already or if PxActorFlag::eDISABLE_SIMULATION is set.
+
+
+ Clears the impulsive torque defined in the global coordinate frame to the actor. ::PxForceMode determines if the cleared torque is to be conventional or impulsive. Each actor has an angular acceleration and a velocity change accumulator which are directly modified using the modes PxForceMode::eACCELERATION and PxForceMode::eVELOCITY_CHANGE respectively. The modes PxForceMode::eFORCE and PxForceMode::eIMPULSE also modify these same accumulators (see PxRigidBody::addTorque() for details); therefore the effect of calling clearTorque(PxForceMode::eFORCE) is equivalent to calling clearTorque(PxForceMode::eACCELERATION), and the effect of calling clearTorque(PxForceMode::eIMPULSE) is equivalent to calling clearTorque(PxForceMode::eVELOCITY_CHANGE). The force modes PxForceMode::eIMPULSE and PxForceMode::eVELOCITY_CHANGE can not be applied to articulation links. It is invalid to use this method if the actor has not been added to a scene already or if PxActorFlag::eDISABLE_SIMULATION is set.
+
+
+ Sets the impulsive force and torque defined in the global coordinate frame to the actor. ::PxForceMode determines if the cleared torque is to be conventional or impulsive. The force modes PxForceMode::eIMPULSE and PxForceMode::eVELOCITY_CHANGE can not be applied to articulation links. It is invalid to use this method if the actor has not been added to a scene already or if PxActorFlag::eDISABLE_SIMULATION is set.
+
+
+ Raises or clears a particular rigid body flag. See the list of flags [`PxRigidBodyFlag`] Default: no flags are set Sleeping: Does NOT wake the actor up automatically.
+
+
+ Reads the PxRigidBody flags. See the list of flags [`PxRigidBodyFlag`] The values of the PxRigidBody flags.
+
+
+ Sets the CCD minimum advance coefficient. The CCD minimum advance coefficient is a value in the range [0, 1] that is used to control the minimum amount of time a body is integrated when it has a CCD contact. The actual minimum amount of time that is integrated depends on various properties, including the relative speed and collision shapes of the bodies involved in the contact. From these properties, a numeric value is calculated that determines the maximum distance (and therefore maximum time) which these bodies could be integrated forwards that would ensure that these bodies did not pass through each-other. This value is then scaled by CCD minimum advance coefficient to determine the amount of time that will be consumed in the CCD pass. Things to consider: A large value (approaching 1) ensures that the objects will always advance some time. However, larger values increase the chances of objects gently drifting through each-other in scenes which the constraint solver can't converge, e.g. scenes where an object is being dragged through a wall with a constraint. A value of 0 ensures that the pair of objects stop at the exact time-of-impact and will not gently drift through each-other. However, with very small/thin objects initially in contact, this can lead to a large amount of time being dropped and increases the chances of jamming. Jamming occurs when the an object is persistently in contact with an object such that the time-of-impact is 0, which results in no time being advanced for those objects in that CCD pass. The chances of jamming can be reduced by increasing the number of CCD mass
+
+
+ Gets the CCD minimum advance coefficient. The value of the CCD min advance coefficient.
+
+
+ Sets the maximum depenetration velocity permitted to be introduced by the solver. This value controls how much velocity the solver can introduce to correct for penetrations in contacts.
+
+
+ Returns the maximum depenetration velocity the solver is permitted to introduced. This value controls how much velocity the solver can introduce to correct for penetrations in contacts. The maximum penetration bias applied by the solver.
+
+
+ Sets a limit on the impulse that may be applied at a contact. The maximum impulse at a contact between two dynamic or kinematic bodies will be the minimum of the two limit values. For a collision between a static and a dynamic body, the impulse is limited by the value for the dynamic body.
+
+
+ Returns the maximum impulse that may be applied at a contact. The maximum impulse that may be applied at a contact
+
+
+ Sets a distance scale whereby the angular influence of a contact on the normal constraint in a contact is zeroed if normal.cross(offset) falls below this tolerance. Rather than acting as an absolute value, this tolerance is scaled by the ratio rXn.dot(angVel)/normal.dot(linVel) such that contacts that have relatively larger angular velocity than linear normal velocity (e.g. rolling wheels) achieve larger slop values as the angular velocity increases.
+
+
+ Returns the contact slop coefficient. The contact slop coefficient.
+
+
+ Returns the island node index The island node index.
+
+
+ Releases the link from the articulation. Only a leaf articulation link can be released. Releasing a link is not allowed while the articulation link is in a scene. In order to release a link, remove and then re-add the corresponding articulation to the scene.
+
+
+ Gets the articulation that the link is a part of. The articulation.
+
+
+ Gets the joint which connects this link to its parent. The joint connecting the link to the parent. NULL for the root link.
+
+
+ Gets the number of degrees of freedom of the joint which connects this link to its parent. - The root link DOF-count is defined to be 0 regardless of PxArticulationFlag::eFIX_BASE. - The return value is only valid for articulations that are in a scene. The number of degrees of freedom, or 0xFFFFFFFF if the articulation is not in a scene.
+
+
+ Gets the number of child links. The number of child links.
+
+
+ Gets the low-level link index that may be used to index into members of PxArticulationCache. The return value is only valid for articulations that are in a scene. The low-level index, or 0xFFFFFFFF if the articulation is not in a scene.
+
+
+ Retrieves the child links. The number of articulation links written to the buffer.
+
+
+ Set the constraint-force-mixing scale term. The cfm scale term is a stabilization term that helps avoid instabilities with over-constrained configurations. It should be a small value that is multiplied by 1/mass internally to produce an additional bias added to the unit response term in the solver. Default: 0.025 Range: [0, 1] This call is not allowed while the simulation is running.
+
+
+ Get the constraint-force-mixing scale term. The constraint-force-mixing scale term.
+
+
+ Get the linear velocity of the link. - The linear velocity is with respect to the link's center of mass and not the actor frame origin. - For performance, prefer PxArticulationCache::linkVelocity to get link spatial velocities in a batch query. - When the articulation state is updated via non-cache API, use PxArticulationReducedCoordinate::updateKinematic before querying velocity. The linear velocity of the link. This call is not allowed while the simulation is running except in a split simulation during [`PxScene::collide`]() and up to #PxScene::advance(), and in PxContactModifyCallback or in contact report callbacks.
+
+
+ Get the angular velocity of the link. - For performance, prefer PxArticulationCache::linkVelocity to get link spatial velocities in a batch query. - When the articulation state is updated via non-cache API, use PxArticulationReducedCoordinate::updateKinematic before querying velocity. The angular velocity of the link. This call is not allowed while the simulation is running except in a split simulation during [`PxScene::collide`]() and up to #PxScene::advance(), and in PxContactModifyCallback or in contact report callbacks.
+
+
+ Returns the string name of the dynamic type. The string name.
+
+
+ Releases a PxConstraint instance. This call does not wake up the connected rigid bodies.
+
+
+ Retrieves the scene which this constraint belongs to. Owner Scene. NULL if not part of a scene.
+
+
+ Retrieves the actors for this constraint.
+
+
+ Sets the actors for this constraint.
+
+
+ Notify the scene that the constraint shader data has been updated by the application
+
+
+ Retrieve the flags for this constraint the constraint flags
+
+
+ Set the flags for this constraint default: PxConstraintFlag::eDRIVE_LIMITS_ARE_FORCES
+
+
+ Set a flag for this constraint
+
+
+ Retrieve the constraint force most recently applied to maintain this constraint. It is not allowed to use this method while the simulation is running (except during PxScene::collide(), in PxContactModifyCallback or in contact report callbacks).
+
+
+ whether the constraint is valid. A constraint is valid if it has at least one dynamic rigid body or articulation link. A constraint that is not valid may not be inserted into a scene, and therefore a static actor to which an invalid constraint is attached may not be inserted into a scene. Invalid constraints arise only when an actor to which the constraint is attached has been deleted.
+
+
+ Set the break force and torque thresholds for this constraint. If either the force or torque measured at the constraint exceed these thresholds the constraint will break.
+
+
+ Retrieve the constraint break force and torque thresholds
+
+
+ Set the minimum response threshold for a constraint row When using mass modification for a joint or infinite inertia for a jointed body, very stiff solver constraints can be generated which can destabilize simulation. Setting this value to a small positive value (e.g. 1e-8) will cause constraint rows to be ignored if very large changes in impulses will generate only small changes in velocity. When setting this value, also set PxConstraintFlag::eDISABLE_PREPROCESSING. The solver accuracy for this joint may be reduced.
+
+
+ Retrieve the constraint break force and torque thresholds the minimum response threshold for a constraint row
+
+
+ Fetch external owner of the constraint. Provides a reference to the external owner of a constraint and a unique owner type ID. Reference to the external object which owns the constraint.
+
+
+ Set the constraint functions for this constraint
+
+
+ Constructor
+
+
+ Returns whether there are more patches in this stream. Whether there are more patches in this stream.
+
+
+ Returns the total contact count. Total contact count.
+
+
+ Returns the total patch count. Total patch count.
+
+
+ Advances iterator to next contact patch.
+
+
+ Returns if the current patch has more contacts. If there are more contacts in the current patch.
+
+
+ Advances to the next contact in the patch.
+
+
+ Gets the current contact's normal The current contact's normal.
+
+
+ Gets the inverse mass scale for body 0. The inverse mass scale for body 0.
+
+
+ Gets the inverse mass scale for body 1. The inverse mass scale for body 1.
+
+
+ Gets the inverse inertia scale for body 0. The inverse inertia scale for body 0.
+
+
+ Gets the inverse inertia scale for body 1. The inverse inertia scale for body 1.
+
+
+ Gets the contact's max impulse. The contact's max impulse.
+
+
+ Gets the contact's target velocity. The contact's target velocity.
+
+
+ Gets the contact's contact point. The contact's contact point.
+
+
+ Gets the contact's separation. The contact's separation.
+
+
+ Gets the contact's face index for shape 0. The contact's face index for shape 0.
+
+
+ Gets the contact's face index for shape 1. The contact's face index for shape 1.
+
+
+ Gets the contact's static friction coefficient. The contact's static friction coefficient.
+
+
+ Gets the contact's dynamic friction coefficient. The contact's dynamic friction coefficient.
+
+
+ Gets the contact's restitution coefficient. The contact's restitution coefficient.
+
+
+ Gets the contact's damping value. The contact's damping value.
+
+
+ Gets the contact's material flags. The contact's material flags.
+
+
+ Gets the contact's material index for shape 0. The contact's material index for shape 0.
+
+
+ Gets the contact's material index for shape 1. The contact's material index for shape 1.
+
+
+ Advances the contact stream iterator to a specific contact index. True if advancing was possible
+
+
+ Get the position of a specific contact point in the set. Position to the requested point in world space
+
+
+ Alter the position of a specific contact point in the set.
+
+
+ Get the contact normal of a specific contact point in the set. The requested normal in world space
+
+
+ Alter the contact normal of a specific contact point in the set. Changing the normal can cause contact points to be ignored.
+
+
+ Get the separation distance of a specific contact point in the set. The separation. Negative implies penetration.
+
+
+ Alter the separation of a specific contact point in the set.
+
+
+ Get the target velocity of a specific contact point in the set. The target velocity in world frame
+
+
+ Alter the target velocity of a specific contact point in the set.
+
+
+ Get the face index with respect to the first shape of the pair for a specific contact point in the set. The face index of the first shape At the moment, the first shape is never a tri-mesh, therefore this function always returns PXC_CONTACT_NO_FACE_INDEX
+
+
+ Get the face index with respect to the second shape of the pair for a specific contact point in the set. The face index of the second shape
+
+
+ Get the maximum impulse for a specific contact point in the set. The maximum impulse
+
+
+ Alter the maximum impulse for a specific contact point in the set. Must be nonnegative. If set to zero, the contact point will be ignored
+
+
+ Get the restitution coefficient for a specific contact point in the set. The restitution coefficient
+
+
+ Alter the restitution coefficient for a specific contact point in the set. Valid ranges [0,1]
+
+
+ Get the static friction coefficient for a specific contact point in the set. The friction coefficient (dimensionless)
+
+
+ Alter the static friction coefficient for a specific contact point in the set.
+
+
+ Get the static friction coefficient for a specific contact point in the set. The friction coefficient
+
+
+ Alter the static dynamic coefficient for a specific contact point in the set.
+
+
+ Ignore the contact point. If a contact point is ignored then no force will get applied at this point. This can be used to disable collision in certain areas of a shape, for example.
+
+
+ The number of contact points in the set.
+
+
+ Returns the invMassScale of body 0 A value < 1.0 makes this contact treat the body as if it had larger mass. A value of 0.f makes this contact treat the body as if it had infinite mass. Any value > 1.f makes this contact treat the body as if it had smaller mass.
+
+
+ Returns the invMassScale of body 1 A value < 1.0 makes this contact treat the body as if it had larger mass. A value of 0.f makes this contact treat the body as if it had infinite mass. Any value > 1.f makes this contact treat the body as if it had smaller mass.
+
+
+ Returns the invInertiaScale of body 0 A value < 1.0 makes this contact treat the body as if it had larger inertia. A value of 0.f makes this contact treat the body as if it had infinite inertia. Any value > 1.f makes this contact treat the body as if it had smaller inertia.
+
+
+ Returns the invInertiaScale of body 1 A value < 1.0 makes this contact treat the body as if it had larger inertia. A value of 0.f makes this contact treat the body as if it had infinite inertia. Any value > 1.f makes this contact treat the body as if it had smaller inertia.
+
+
+ Sets the invMassScale of body 0 This can be set to any value in the range [0, PX_MAX_F32). A value < 1.0 makes this contact treat the body as if it had larger mass. A value of 0.f makes this contact treat the body as if it had infinite mass. Any value > 1.f makes this contact treat the body as if it had smaller mass.
+
+
+ Sets the invMassScale of body 1 This can be set to any value in the range [0, PX_MAX_F32). A value < 1.0 makes this contact treat the body as if it had larger mass. A value of 0.f makes this contact treat the body as if it had infinite mass. Any value > 1.f makes this contact treat the body as if it had smaller mass.
+
+
+ Sets the invInertiaScale of body 0 This can be set to any value in the range [0, PX_MAX_F32). A value < 1.0 makes this contact treat the body as if it had larger inertia. A value of 0.f makes this contact treat the body as if it had infinite inertia. Any value > 1.f makes this contact treat the body as if it had smaller inertia.
+
+
+ Sets the invInertiaScale of body 1 This can be set to any value in the range [0, PX_MAX_F32). A value < 1.0 makes this contact treat the body as if it had larger inertia. A value of 0.f makes this contact treat the body as if it had infinite inertia. Any value > 1.f makes this contact treat the body as if it had smaller inertia.
+
+
+ Passes modifiable arrays of contacts to the application. The initial contacts are regenerated from scratch each frame by collision detection. The number of contacts can not be changed, so you cannot add your own contacts. You may however disable contacts using PxContactSet::ignore().
+
+
+ Passes modifiable arrays of contacts to the application. The initial contacts are regenerated from scratch each frame by collision detection. The number of contacts can not be changed, so you cannot add your own contacts. You may however disable contacts using PxContactSet::ignore().
+
+
+ Notification if an object or its memory gets released If release() gets called on a PxBase object, an eUSER_RELEASE event will get fired immediately. The object state can be queried in the callback but it is not allowed to change the state. Furthermore, when reading from the object it is the user's responsibility to make sure that no other thread is writing at the same time to the object (this includes the simulation itself, i.e., [`PxScene::fetchResults`]() must not get called at the same time). Calling release() on a PxBase object does not necessarily trigger its destructor immediately. For example, the object can be shared and might still be referenced by other objects or the simulation might still be running and accessing the object state. In such cases the destructor will be called as soon as it is safe to do so. After the destruction of the object and its memory, an eMEMORY_RELEASE event will get fired. In this case it is not allowed to dereference the object pointer in the callback.
+
+
+ Sets young's modulus which defines the body's stiffness
+
+
+ Retrieves the young's modulus value. The young's modulus value.
+
+
+ Sets the Poisson's ratio which defines the body's volume preservation. Completely incompressible materials have a poisson ratio of 0.5. Its value should not be set to exactly 0.5 because this leads to numerical problems.
+
+
+ Retrieves the Poisson's ratio. The Poisson's ratio.
+
+
+ Sets the dynamic friction value which defines the strength of resistance when two objects slide relative to each other while in contact.
+
+
+ Retrieves the dynamic friction value The dynamic friction value
+
+
+ Default constructor.
+
+
+ Constructor to set filter data initially.
+
+
+ (re)sets the structure to the default.
+
+
+ Extract filter object type from the filter attributes of a collision pair object The type of the collision pair object.
+
+
+ Specifies whether the collision object belongs to a kinematic rigid body True if the object belongs to a kinematic rigid body, else false
+
+
+ Specifies whether the collision object is a trigger shape True if the object is a trigger shape, else false
+
+
+ Filter method to specify how a pair of potentially colliding objects should be processed. This method gets called when the filter flags returned by the filter shader (see [`PxSimulationFilterShader`]) indicate that the filter callback should be invoked ([`PxFilterFlag::eCALLBACK`] or #PxFilterFlag::eNOTIFY set). Return the PxFilterFlag flags and set the PxPairFlag flags to define what the simulation should do with the given collision pair. Filter flags defining whether the pair should be discarded, temporarily ignored or processed and whether the pair should be tracked and send a report on pair deletion through the filter callback
+
+
+ Callback to inform that a tracked collision pair is gone. This method gets called when a collision pair disappears or gets re-filtered. Only applies to collision pairs which have been marked as filter callback pairs ([`PxFilterFlag::eNOTIFY`] set in #pairFound()).
+
+
+ Callback to give the opportunity to change the filter state of a tracked collision pair. This method gets called once per simulation step to let the application change the filter and pair flags of a collision pair that has been reported in [`pairFound`]() and requested callbacks by setting [`PxFilterFlag::eNOTIFY`]. To request a change of filter status, the target pair has to be specified by its ID, the new filter and pair flags have to be provided and the method should return true. If this method changes the filter status of a collision pair and the pair should keep being tracked by the filter callbacks then [`PxFilterFlag::eNOTIFY`] has to be set. The application is responsible to ensure that this method does not get called for pairs that have been reported as lost, see [`pairLost`](). True if the changes should be applied. In this case the method will get called again. False if no more status changes should be done in the current simulation step. In that case the provided flags will be discarded.
+
+
+ Any combination of PxDataAccessFlag::eREADABLE and PxDataAccessFlag::eWRITABLE
+
+
+ Unlocks the bulk data.
+
+
+ virtual destructor
+
+
+ Sets the coefficient of dynamic friction. The coefficient of dynamic friction should be in [0, PX_MAX_F32). If set to greater than staticFriction, the effective value of staticFriction will be increased to match. Sleeping: Does NOT wake any actors which may be affected.
+
+
+ Retrieves the DynamicFriction value. The coefficient of dynamic friction.
+
+
+ Sets the coefficient of static friction The coefficient of static friction should be in the range [0, PX_MAX_F32) Sleeping: Does NOT wake any actors which may be affected.
+
+
+ Retrieves the coefficient of static friction. The coefficient of static friction.
+
+
+ Sets the coefficient of restitution A coefficient of 0 makes the object bounce as little as possible, higher values up to 1.0 result in more bounce. This property is overloaded when PxMaterialFlag::eCOMPLIANT_CONTACT flag is enabled. This permits negative values for restitution to be provided. The negative values are converted into spring stiffness terms for an implicit spring simulated at the contact site, with the spring positional error defined by the contact separation value. Higher stiffness terms produce stiffer springs that behave more like a rigid contact. Sleeping: Does NOT wake any actors which may be affected.
+
+
+ Retrieves the coefficient of restitution. See [`setRestitution`]. The coefficient of restitution.
+
+
+ Sets the coefficient of damping This property only affects the simulation if PxMaterialFlag::eCOMPLIANT_CONTACT is raised. Damping works together with spring stiffness (set through a negative restitution value). Spring stiffness corrects positional error while damping resists relative velocity. Setting a high damping coefficient can produce spongy contacts. Sleeping: Does NOT wake any actors which may be affected.
+
+
+ Retrieves the coefficient of damping. See [`setDamping`]. The coefficient of damping.
+
+
+ Raises or clears a particular material flag. See the list of flags [`PxMaterialFlag`] Default: eIMPROVED_PATCH_FRICTION Sleeping: Does NOT wake any actors which may be affected.
+
+
+ sets all the material flags. See the list of flags [`PxMaterialFlag`] Default: eIMPROVED_PATCH_FRICTION Sleeping: Does NOT wake any actors which may be affected.
+
+
+ Retrieves the flags. See [`PxMaterialFlag`]. The material flags.
+
+
+ Sets the friction combine mode. See the enum ::PxCombineMode . Default: PxCombineMode::eAVERAGE Sleeping: Does NOT wake any actors which may be affected.
+
+
+ Retrieves the friction combine mode. See [`setFrictionCombineMode`]. The friction combine mode for this material.
+
+
+ Sets the restitution combine mode. See the enum ::PxCombineMode . Default: PxCombineMode::eAVERAGE Sleeping: Does NOT wake any actors which may be affected.
+
+
+ Retrieves the restitution combine mode. See [`setRestitutionCombineMode`]. The coefficient of restitution combine mode for this material.
+
+
+ Construct parameters with default values.
+
+
+ (re)sets the structure to the default.
+
+
+ Sets friction
+
+
+ Retrieves the friction value. The friction value.
+
+
+ Sets velocity damping term
+
+
+ Retrieves the velocity damping term The velocity damping term.
+
+
+ Sets adhesion term
+
+
+ Retrieves the adhesion term The adhesion term.
+
+
+ Sets gravity scale term
+
+
+ Retrieves the gravity scale term The gravity scale term.
+
+
+ Sets material adhesion radius scale. This is multiplied by the particle rest offset to compute the fall-off distance at which point adhesion ceases to operate.
+
+
+ Retrieves the adhesion radius scale. The adhesion radius scale.
+
+
+ Destroys the instance it is called on. Use this release method to destroy an instance of this class. Be sure to not keep a reference to this object after calling release. Avoid release calls while a scene is simulating (in between simulate() and fetchResults() calls). Note that this must be called once for each prior call to PxCreatePhysics, as there is a reference counter. Also note that you mustn't destroy the PxFoundation instance (holding the allocator, error callback etc.) until after the reference count reaches 0 and the SDK is actually removed. Releasing an SDK will also release any objects created through it (scenes, triangle meshes, convex meshes, heightfields, shapes etc.), provided the user hasn't already done so. Releasing the PxPhysics instance is a prerequisite to releasing the PxFoundation instance.
+
+
+ Retrieves the Foundation instance. A reference to the Foundation object.
+
+
+ Creates an aggregate with the specified maximum size and filtering hint. The previous API used \"bool enableSelfCollision\" which should now silently evaluates to a PxAggregateType::eGENERIC aggregate with its self-collision bit. Use PxAggregateType::eSTATIC or PxAggregateType::eKINEMATIC for aggregates that will only contain static or kinematic actors. This provides faster filtering when used in combination with PxPairFilteringMode. The new aggregate.
+
+
+ Returns the simulation tolerance parameters. The current simulation tolerance parameters.
+
+
+ Creates a triangle mesh object. This can then be instanced into [`PxShape`] objects. The new triangle mesh.
+
+
+ Return the number of triangle meshes that currently exist. Number of triangle meshes.
+
+
+ Writes the array of triangle mesh pointers to a user buffer. Returns the number of pointers written. The ordering of the triangle meshes in the array is not specified. The number of triangle mesh pointers written to userBuffer, this should be less or equal to bufferSize.
+
+
+ Creates a tetrahedron mesh object. This can then be instanced into [`PxShape`] objects. The new tetrahedron mesh.
+
+
+ Creates a softbody mesh object. The new softbody mesh.
+
+
+ Return the number of tetrahedron meshes that currently exist. Number of tetrahedron meshes.
+
+
+ Writes the array of tetrahedron mesh pointers to a user buffer. Returns the number of pointers written. The ordering of the tetrahedron meshes in the array is not specified. The number of tetrahedron mesh pointers written to userBuffer, this should be less or equal to bufferSize.
+
+
+ Creates a heightfield object from previously cooked stream. This can then be instanced into [`PxShape`] objects. The new heightfield.
+
+
+ Return the number of heightfields that currently exist. Number of heightfields.
+
+
+ Writes the array of heightfield pointers to a user buffer. Returns the number of pointers written. The ordering of the heightfields in the array is not specified. The number of heightfield pointers written to userBuffer, this should be less or equal to bufferSize.
+
+
+ Creates a convex mesh object. This can then be instanced into [`PxShape`] objects. The new convex mesh.
+
+
+ Return the number of convex meshes that currently exist. Number of convex meshes.
+
+
+ Writes the array of convex mesh pointers to a user buffer. Returns the number of pointers written. The ordering of the convex meshes in the array is not specified. The number of convex mesh pointers written to userBuffer, this should be less or equal to bufferSize.
+
+
+ Creates a bounding volume hierarchy. The new BVH.
+
+
+ Return the number of bounding volume hierarchies that currently exist. Number of bounding volume hierarchies.
+
+
+ Writes the array of bounding volume hierarchy pointers to a user buffer. Returns the number of pointers written. The ordering of the BVHs in the array is not specified. The number of BVH pointers written to userBuffer, this should be less or equal to bufferSize.
+
+
+ Creates a scene. Every scene uses a Thread Local Storage slot. This imposes a platform specific limit on the number of scenes that can be created. The new scene object.
+
+
+ Gets number of created scenes. The number of scenes created.
+
+
+ Writes the array of scene pointers to a user buffer. Returns the number of pointers written. The ordering of the scene pointers in the array is not specified. The number of scene pointers written to userBuffer, this should be less or equal to bufferSize.
+
+
+ Creates a static rigid actor with the specified pose and all other fields initialized to their default values.
+
+
+ Creates a dynamic rigid actor with the specified pose and all other fields initialized to their default values.
+
+
+ Creates a pruning structure from actors. Every provided actor needs at least one shape with the eSCENE_QUERY_SHAPE flag set. Both static and dynamic actors can be provided. It is not allowed to pass in actors which are already part of a scene. Articulation links cannot be provided. Pruning structure created from given actors, or NULL if any of the actors did not comply with the above requirements.
+
+
+ Creates a shape which may be attached to multiple actors The shape will be created with a reference count of 1. The shape Shared shapes are not mutable when they are attached to an actor
+
+
+ Creates a shape which may be attached to multiple actors The shape will be created with a reference count of 1. The shape Shared shapes are not mutable when they are attached to an actor Shapes created from *SDF* triangle-mesh geometries do not support more than one material.
+
+
+ Return the number of shapes that currently exist. Number of shapes.
+
+
+ Writes the array of shape pointers to a user buffer. Returns the number of pointers written. The ordering of the shapes in the array is not specified. The number of shape pointers written to userBuffer, this should be less or equal to bufferSize.
+
+
+ Creates a constraint shader. A constraint shader will get added automatically to the scene the two linked actors belong to. Either, but not both, of actor0 and actor1 may be NULL to denote attachment to the world. The new constraint shader.
+
+
+ Creates a reduced-coordinate articulation with all fields initialized to their default values. the new articulation
+
+
+ Creates a new rigid body material with certain default properties. The new rigid body material.
+
+
+ Return the number of rigid body materials that currently exist. Number of rigid body materials.
+
+
+ Writes the array of rigid body material pointers to a user buffer. Returns the number of pointers written. The ordering of the materials in the array is not specified. The number of material pointers written to userBuffer, this should be less or equal to bufferSize.
+
+
+ Register a deletion listener. Listeners will be called whenever an object is deleted. It is illegal to register or unregister a deletion listener while deletions are being processed. By default a registered listener will receive events from all objects. Set the restrictedObjectSet parameter to true on registration and use [`registerDeletionListenerObjects`] to restrict the received events to specific objects. The deletion events are only supported on core PhysX objects. In general, objects in extension modules do not provide this functionality, however, in the case of PxJoint objects, the underlying PxConstraint will send the events.
+
+
+ Unregister a deletion listener. It is illegal to register or unregister a deletion listener while deletions are being processed.
+
+
+ Register specific objects for deletion events. This method allows for a deletion listener to limit deletion events to specific objects only. It is illegal to register or unregister objects while deletions are being processed. The deletion listener has to be registered through [`registerDeletionListener`]() and configured to support restricted object sets prior to this method being used.
+
+
+ Unregister specific objects for deletion events. This method allows to clear previously registered objects for a deletion listener (see [`registerDeletionListenerObjects`]()). It is illegal to register or unregister objects while deletions are being processed. The deletion listener has to be registered through [`registerDeletionListener`]() and configured to support restricted object sets prior to this method being used.
+
+
+ Gets PxPhysics object insertion interface. The insertion interface is needed for PxCreateTriangleMesh, PxCooking::createTriangleMesh etc., this allows runtime mesh creation.
+
+
+ Creates an instance of the physics SDK. Creates an instance of this class. May not be a class member to avoid name mangling. Pass the constant [`PX_PHYSICS_VERSION`] as the argument. There may be only one instance of this class per process. Calling this method after an instance has been created already will result in an error message and NULL will be returned. Calling this will register all optional code modules (Articulations and HeightFields), preparing them for use. If you do not need some of these modules, consider calling PxCreateBasePhysics() instead and registering needed modules manually. PxPhysics instance on success, NULL if operation failed
+
+
+ constructor sets to default
+
+
+ constructor to set properties
+
+
+ default constructor
+
+
+ constructor to set both filter data and filter flags
+
+
+ constructor to set filter flags only
+
+
+ This filter callback is executed before the exact intersection test if PxQueryFlag::ePREFILTER flag was set. the updated type for this hit (see [`PxQueryHitType`])
+
+
+ This filter callback is executed if the exact intersection test returned true and PxQueryFlag::ePOSTFILTER flag was set. the updated hit type for this hit (see [`PxQueryHitType`])
+
+
+ virtual destructor
+
+
+ Moves kinematically controlled dynamic actors through the game world. You set a dynamic actor to be kinematic using the PxRigidBodyFlag::eKINEMATIC flag with setRigidBodyFlag(). The move command will result in a velocity that will move the body into the desired pose. After the move is carried out during a single time step, the velocity is returned to zero. Thus, you must continuously call this in every time step for kinematic actors so that they move along a path. This function simply stores the move destination until the next simulation step is processed, so consecutive calls will simply overwrite the stored target variable. The motion is always fully carried out. It is invalid to use this method if the actor has not been added to a scene already or if PxActorFlag::eDISABLE_SIMULATION is set. Sleeping: This call wakes the actor if it is sleeping and will set the wake counter to [`PxSceneDesc::wakeCounterResetValue`].
+
+
+ Get target pose of a kinematically controlled dynamic actor. True if the actor is a kinematically controlled dynamic and the target has been set, else False.
+
+
+ Returns true if this body is sleeping. When an actor does not move for a period of time, it is no longer simulated in order to save time. This state is called sleeping. However, because the object automatically wakes up when it is either touched by an awake object, or one of its properties is changed by the user, the entire sleep mechanism should be transparent to the user. In general, a dynamic rigid actor is guaranteed to be awake if at least one of the following holds: The wake counter is positive (see [`setWakeCounter`]()). The linear or angular velocity is non-zero. A non-zero force or torque has been applied. If a dynamic rigid actor is sleeping, the following state is guaranteed: The wake counter is zero. The linear and angular velocity is zero. There is no force update pending. When an actor gets inserted into a scene, it will be considered asleep if all the points above hold, else it will be treated as awake. If an actor is asleep after the call to PxScene::fetchResults() returns, it is guaranteed that the pose of the actor was not changed. You can use this information to avoid updating the transforms of associated objects. A kinematic actor is asleep unless a target pose has been set (in which case it will stay awake until two consecutive simulation steps without a target pose being set have passed). The wake counter will get set to zero or to the reset value [`PxSceneDesc::wakeCounterResetValue`] in the case where a target pose has been set to be consistent with the definitions above. It is invalid to use this method if the actor has not been added to a scene already. It is not allowed to use this method while the simulation is running. True if the actor is sleeping.
+
+
+ Sets the mass-normalized kinetic energy threshold below which an actor may go to sleep. Actors whose kinetic energy divided by their mass is below this threshold will be candidates for sleeping. Default: 5e-5f * PxTolerancesScale::speed * PxTolerancesScale::speed
+
+
+ Returns the mass-normalized kinetic energy below which an actor may go to sleep. The energy threshold for sleeping.
+
+
+ Sets the mass-normalized kinetic energy threshold below which an actor may participate in stabilization. Actors whose kinetic energy divided by their mass is above this threshold will not participate in stabilization. This value has no effect if PxSceneFlag::eENABLE_STABILIZATION was not enabled on the PxSceneDesc. Default: 1e-5f * PxTolerancesScale::speed * PxTolerancesScale::speed
+
+
+ Returns the mass-normalized kinetic energy below which an actor may participate in stabilization. Actors whose kinetic energy divided by their mass is above this threshold will not participate in stabilization. The energy threshold for participating in stabilization.
+
+
+ Reads the PxRigidDynamic lock flags. See the list of flags [`PxRigidDynamicLockFlag`] The values of the PxRigidDynamicLock flags.
+
+
+ Raises or clears a particular rigid dynamic lock flag. See the list of flags [`PxRigidDynamicLockFlag`] Default: no flags are set
+
+
+ Retrieves the linear velocity of an actor. It is not allowed to use this method while the simulation is running (except during PxScene::collide(), in PxContactModifyCallback or in contact report callbacks). The linear velocity of the actor.
+
+
+ Sets the linear velocity of the actor. Note that if you continuously set the velocity of an actor yourself, forces such as gravity or friction will not be able to manifest themselves, because forces directly influence only the velocity/momentum of an actor. Default: (0.0, 0.0, 0.0) Sleeping: This call wakes the actor if it is sleeping, and the autowake parameter is true (default) or the new velocity is non-zero. It is invalid to use this method if PxActorFlag::eDISABLE_SIMULATION is set.
+
+
+ Retrieves the angular velocity of the actor. It is not allowed to use this method while the simulation is running (except during PxScene::collide(), in PxContactModifyCallback or in contact report callbacks). The angular velocity of the actor.
+
+
+ Sets the angular velocity of the actor. Note that if you continuously set the angular velocity of an actor yourself, forces such as friction will not be able to rotate the actor, because forces directly influence only the velocity/momentum. Default: (0.0, 0.0, 0.0) Sleeping: This call wakes the actor if it is sleeping, and the autowake parameter is true (default) or the new velocity is non-zero. It is invalid to use this method if PxActorFlag::eDISABLE_SIMULATION is set.
+
+
+ Sets the wake counter for the actor. The wake counter value determines the minimum amount of time until the body can be put to sleep. Please note that a body will not be put to sleep if the energy is above the specified threshold (see [`setSleepThreshold`]()) or if other awake bodies are touching it. Passing in a positive value will wake the actor up automatically. It is invalid to use this method for kinematic actors since the wake counter for kinematics is defined based on whether a target pose has been set (see the comment in [`isSleeping`]()). It is invalid to use this method if PxActorFlag::eDISABLE_SIMULATION is set. Default: 0.4 (which corresponds to 20 frames for a time step of 0.02)
+
+
+ Returns the wake counter of the actor. It is not allowed to use this method while the simulation is running. The wake counter of the actor.
+
+
+ Wakes up the actor if it is sleeping. The actor will get woken up and might cause other touching actors to wake up as well during the next simulation step. This will set the wake counter of the actor to the value specified in [`PxSceneDesc::wakeCounterResetValue`]. It is invalid to use this method if the actor has not been added to a scene already or if PxActorFlag::eDISABLE_SIMULATION is set. It is invalid to use this method for kinematic actors since the sleep state for kinematics is defined based on whether a target pose has been set (see the comment in [`isSleeping`]()).
+
+
+ Forces the actor to sleep. The actor will stay asleep during the next simulation step if not touched by another non-sleeping actor. Any applied force will be cleared and the velocity and the wake counter of the actor will be set to 0. It is invalid to use this method if the actor has not been added to a scene already or if PxActorFlag::eDISABLE_SIMULATION is set. It is invalid to use this method for kinematic actors since the sleep state for kinematics is defined based on whether a target pose has been set (see the comment in [`isSleeping`]()).
+
+
+ Sets the solver iteration counts for the body. The solver iteration count determines how accurately joints and contacts are resolved. If you are having trouble with jointed bodies oscillating and behaving erratically, then setting a higher position iteration count may improve their stability. If intersecting bodies are being depenetrated too violently, increase the number of velocity iterations. More velocity iterations will drive the relative exit velocity of the intersecting objects closer to the correct value given the restitution. Default: 4 position iterations, 1 velocity iteration
+
+
+ Retrieves the solver iteration counts.
+
+
+ Retrieves the force threshold for contact reports. The contact report threshold is a force threshold. If the force between two actors exceeds this threshold for either of the two actors, a contact report will be generated according to the contact report threshold flags provided by the filter shader/callback. See [`PxPairFlag`]. The threshold used for a collision between a dynamic actor and the static environment is the threshold of the dynamic actor, and all contacts with static actors are summed to find the total normal force. Default: PX_MAX_F32 Force threshold for contact reports.
+
+
+ Sets the force threshold for contact reports. See [`getContactReportThreshold`]().
+
+
+ constructor sets to default.
+
+
+ (re)sets the structure to the default.
+
+
+ Returns true if the descriptor is valid. true if the current settings are valid.
+
+
+ Sets the rebuild rate of the dynamic tree pruning structures.
+
+
+ Retrieves the rebuild rate of the dynamic tree pruning structures. The rebuild rate of the dynamic tree pruning structures.
+
+
+ Forces dynamic trees to be immediately rebuilt. PxScene will call this function with the PX_SCENE_PRUNER_STATIC or PX_SCENE_PRUNER_DYNAMIC value.
+
+
+ Sets scene query update mode
+
+
+ Gets scene query update mode Current scene query update mode.
+
+
+ Retrieves the system's internal scene query timestamp, increased each time a change to the static scene query structure is performed. scene query static timestamp
+
+
+ Flushes any changes to the scene query representation. This method updates the state of the scene query representation to match changes in the scene state. By default, these changes are buffered until the next query is submitted. Calling this function will not change the results from scene queries, but can be used to ensure that a query will not perform update work in the course of its execution. A thread performing updates will hold a write lock on the query structure, and thus stall other querying threads. In multithread scenarios it can be useful to explicitly schedule the period where this lock may be held for a significant period, so that subsequent queries issued from multiple threads will not block.
+
+
+ Performs a raycast against objects in the scene, returns results in a PxRaycastBuffer object or via a custom user callback implementation inheriting from PxRaycastCallback. Touching hits are not ordered. Shooting a ray from within an object leads to different results depending on the shape type. Please check the details in user guide article SceneQuery. User can ignore such objects by employing one of the provided filter mechanisms. True if any touching or blocking hits were found or any hit was found in case PxQueryFlag::eANY_HIT was specified.
+
+
+ Performs a sweep test against objects in the scene, returns results in a PxSweepBuffer object or via a custom user callback implementation inheriting from PxSweepCallback. Touching hits are not ordered. If a shape from the scene is already overlapping with the query shape in its starting position, the hit is returned unless eASSUME_NO_INITIAL_OVERLAP was specified. True if any touching or blocking hits were found or any hit was found in case PxQueryFlag::eANY_HIT was specified.
+
+
+ Performs an overlap test of a given geometry against objects in the scene, returns results in a PxOverlapBuffer object or via a custom user callback implementation inheriting from PxOverlapCallback. Filtering: returning eBLOCK from user filter for overlap queries will cause a warning (see [`PxQueryHitType`]). True if any touching or blocking hits were found or any hit was found in case PxQueryFlag::eANY_HIT was specified. eBLOCK should not be returned from user filters for overlap(). Doing so will result in undefined behavior, and a warning will be issued. If the PxQueryFlag::eNO_BLOCK flag is set, the eBLOCK will instead be automatically converted to an eTOUCH and the warning suppressed.
+
+
+ Sets scene query update mode
+
+
+ Gets scene query update mode Current scene query update mode.
+
+
+ Retrieves the scene's internal scene query timestamp, increased each time a change to the static scene query structure is performed. scene query static timestamp
+
+
+ Flushes any changes to the scene query representation.
+
+
+ Forces dynamic trees to be immediately rebuilt.
+
+
+ Return the value of PxSceneQueryDesc::staticStructure that was set when creating the scene with PxPhysics::createScene
+
+
+ Return the value of PxSceneQueryDesc::dynamicStructure that was set when creating the scene with PxPhysics::createScene
+
+
+ Executes scene queries update tasks. This function will refit dirty shapes within the pruner and will execute a task to build a new AABB tree, which is build on a different thread. The new AABB tree is built based on the dynamic tree rebuild hint rate. Once the new tree is ready it will be commited in next fetchQueries call, which must be called after. This function is equivalent to the following PxSceneQuerySystem calls: Synchronous calls: - PxSceneQuerySystemBase::flushUpdates() - handle0 = PxSceneQuerySystem::prepareSceneQueryBuildStep(PX_SCENE_PRUNER_STATIC) - handle1 = PxSceneQuerySystem::prepareSceneQueryBuildStep(PX_SCENE_PRUNER_DYNAMIC) Asynchronous calls: - PxSceneQuerySystem::sceneQueryBuildStep(handle0); - PxSceneQuerySystem::sceneQueryBuildStep(handle1); This function is part of the PxSceneSQSystem interface because it uses the PxScene task system under the hood. But it calls PxSceneQuerySystem functions, which are independent from this system and could be called in a similar fashion by a separate, possibly user-defined task manager. If PxSceneQueryUpdateMode::eBUILD_DISABLED_COMMIT_DISABLED is used, it is required to update the scene queries using this function.
+
+
+ This checks to see if the scene queries update has completed. This does not cause the data available for reading to be updated with the results of the scene queries update, it is simply a status check. The bool will allow it to either return immediately or block waiting for the condition to be met so that it can return true True if the results are available.
+
+
+ This method must be called after sceneQueriesUpdate. It will wait for the scene queries update to finish. If the user makes an illegal scene queries update call, the SDK will issue an error message. If a new AABB tree build finished, then during fetchQueries the current tree within the pruning structure is swapped with the new tree.
+
+
+ Decrements the reference count of the object and releases it if the new reference count is zero.
+
+
+ Acquires a counted reference to this object. This method increases the reference count of the object by 1. Decrement the reference count by calling release()
+
+
+ Preallocates internal arrays to minimize the amount of reallocations. The system does not prevent more allocations than given numbers. It is legal to not call this function at all, or to add more shapes to the system than the preallocated amounts.
+
+
+ Frees internal memory that may not be in-use anymore. This is an entry point for reclaiming transient memory allocated at some point by the SQ system, but which wasn't been immediately freed for performance reason. Calling this function might free some memory, but it might also produce a new set of allocations in the next frame.
+
+
+ Adds a shape to the SQ system. The same function is used to add either a regular shape, or a SQ compound shape.
+
+
+ Removes a shape from the SQ system. The same function is used to remove either a regular shape, or a SQ compound shape.
+
+
+ Updates a shape in the SQ system. The same function is used to update either a regular shape, or a SQ compound shape. The transforms are eager-evaluated, but the bounds are lazy-evaluated. This means that the updated transform has to be passed to the update function, while the bounds are automatically recomputed by the system whenever needed.
+
+
+ Adds a compound to the SQ system. SQ compound handle
+
+
+ Removes a compound from the SQ system.
+
+
+ Updates a compound in the SQ system. The compound structures are immediately updated when the call occurs.
+
+
+ Shift the data structures' origin by the specified vector. Please refer to the notes of the similar function in PxScene.
+
+
+ Merges a pruning structure with the SQ system's internal pruners.
+
+
+ Shape to SQ-pruner-handle mapping function. This function finds and returns the SQ pruner handle associated with a given (actor/shape) couple that was previously added to the system. This is needed for the sync function. Associated SQ pruner handle.
+
+
+ Synchronizes the scene-query system with another system that references the same objects. This function is used when the scene-query objects also exist in another system that can also update them. For example the scene-query objects (used for raycast, overlap or sweep queries) might be driven by equivalent objects in an external rigid-body simulation engine. In this case the rigid-body simulation engine computes the new poses and transforms, and passes them to the scene-query system using this function. It is more efficient than calling updateSQShape on each object individually, since updateSQShape would end up recomputing the bounds already available in the rigid-body engine.
+
+
+ Finalizes updates made to the SQ system. This function should be called after updates have been made to the SQ system, to fully reflect the changes inside the internal pruners. In particular it should be called: - after calls to updateSQShape - after calls to sync This function: - recomputes bounds of manually updated shapes (i.e. either regular or SQ compound shapes modified by updateSQShape) - updates dynamic pruners (refit operations) - incrementally rebuilds AABB-trees The amount of work performed in this function depends on PxSceneQueryUpdateMode.
+
+
+ Prepares asynchronous build step. This is directly called (synchronously) by PxSceneSQSystem::sceneQueriesUpdate(). See the comments there. This function is called to let the system execute any necessary synchronous operation before the asynchronous sceneQueryBuildStep() function is called. If there is any work to do for the specific pruner, the function returns a pruner-specific handle that will be passed to the corresponding, asynchronous sceneQueryBuildStep function. A pruner-specific handle that will be sent to sceneQueryBuildStep if there is any work to do, i.e. to execute the corresponding sceneQueryBuildStep() call. Null if there is no work to do, otherwise a pruner-specific handle.
+
+
+ Executes asynchronous build step. This is directly called (asynchronously) by PxSceneSQSystem::sceneQueriesUpdate(). See the comments there. This function incrementally builds the internal trees/pruners. It is called asynchronously, i.e. this can be called from different threads for building multiple trees at the same time.
+
+
+ Retrieves the filter group for static objects. Mark static objects with this group when adding them to the broadphase. Overlaps between static objects will not be detected. All static objects should have the same group. Filter group for static objects.
+
+
+ Retrieves a filter group for dynamic objects. Mark dynamic objects with this group when adding them to the broadphase. Each dynamic object must have an ID, and overlaps between dynamic objects that have the same ID will not be detected. This is useful to dismiss overlaps between shapes of the same (compound) actor directly within the broadphase. Filter group for the object.
+
+
+ Retrieves a filter group for kinematic objects. Mark kinematic objects with this group when adding them to the broadphase. Each kinematic object must have an ID, and overlaps between kinematic objects that have the same ID will not be detected. Filter group for the object.
+
+
+ Returns number of regions currently registered in the broad-phase. Number of regions
+
+
+ Gets broad-phase regions. Number of written out regions.
+
+
+ Adds a new broad-phase region. The total number of regions is limited to PxBroadPhaseCaps::mMaxNbRegions. If that number is exceeded, the call is ignored. The newly added region will be automatically populated with already existing objects that touch it, if the 'populateRegion' parameter is set to true. Otherwise the newly added region will be empty, and it will only be populated with objects when those objects are added to the simulation, or updated if they already exist. Using 'populateRegion=true' has a cost, so it is best to avoid it if possible. In particular it is more efficient to create the empty regions first (with populateRegion=false) and then add the objects afterwards (rather than the opposite). Objects automatically move from one region to another during their lifetime. The system keeps tracks of what regions a given object is in. It is legal for an object to be in an arbitrary number of regions. However if an object leaves all regions, or is created outside of all regions, several things happen: - collisions get disabled for this object - the object appears in the getOutOfBoundsObjects() array If an out-of-bounds object, whose collisions are disabled, re-enters a valid broadphase region, then collisions are re-enabled for that object. Handle for newly created region, or 0xffffffff in case of failure.
+
+
+ Removes a broad-phase region. If the region still contains objects, and if those objects do not overlap any region any more, they are not automatically removed from the simulation. Instead, the PxBroadPhaseCallback::onObjectOutOfBounds notification is used for each object. Users are responsible for removing the objects from the simulation if this is the desired behavior. If the handle is invalid, or if a valid handle is removed twice, an error message is sent to the error stream. True if success
+
+
+ Gets the broadphase type. Broadphase type.
+
+
+ Gets broad-phase caps.
+
+
+ Retrieves the regions API if applicable. For broadphases that do not use explicit user-defined regions, this call returns NULL. Region API, or NULL.
+
+
+ Retrieves the broadphase allocator. User-provided buffers should ideally be allocated with this allocator, for best performance. This is especially true for the GPU broadphases, whose buffers need to be allocated in CUDA host memory. The broadphase allocator.
+
+
+ Retrieves the profiler's context ID. The context ID.
+
+
+ Sets a scratch buffer Some broadphases might take advantage of a scratch buffer to limit runtime allocations. All broadphases still work without providing a scratch buffer, this is an optional function that can potentially reduce runtime allocations.
+
+
+ Updates the broadphase and computes the lists of created/deleted pairs. The provided update data describes changes to objects since the last broadphase update. To benefit from potentially multithreaded implementations, it is necessary to provide a continuation task to the function. It is legal to pass NULL there, but the underlying (CPU) implementations will then run single-threaded.
+
+
+ Retrieves the broadphase results after an update. This should be called once after each update call to retrieve the results of the broadphase. The results are incremental, i.e. the system only returns new and lost pairs, not all current pairs.
+
+
+ Helper for single-threaded updates. This short helper function performs a single-theaded update and reports the results in a single call.
+
+
+ Broadphase factory function. Use this function to create a new standalone broadphase. Newly created broadphase, or NULL
+
+
+ Retrieves the underlying broadphase. The managed broadphase.
+
+
+ Retrieves the managed bounds. This is needed as input parameters to functions like PxBroadPhaseRegions::addRegion. The managed object bounds.
+
+
+ Retrieves the managed distances. This is needed as input parameters to functions like PxBroadPhaseRegions::addRegion. The managed object distances.
+
+
+ Retrieves the managed filter groups. The managed object groups.
+
+
+ Retrieves the managed buffers' capacity. Bounds, distances and groups buffers have the same capacity. The managed buffers' capacity.
+
+
+ Adds an object to the manager. Objects' indices are externally managed, i.e. they must be provided by users (as opposed to handles that could be returned by this manager). The design allows users to identify an object by a single ID, and use the same ID in multiple sub-systems.
+
+
+ Removes an object from the manager.
+
+
+ Updates an object in the manager. This call can update an object's bounds, distance, or both. It is not possible to update an object's filter group.
+
+
+ Updates the broadphase and computes the lists of created/deleted pairs. The data necessary for updating the broadphase is internally computed by the AABB manager. To benefit from potentially multithreaded implementations, it is necessary to provide a continuation task to the function. It is legal to pass NULL there, but the underlying (CPU) implementations will then run single-threaded.
+
+
+ Retrieves the broadphase results after an update. This should be called once after each update call to retrieve the results of the broadphase. The results are incremental, i.e. the system only returns new and lost pairs, not all current pairs.
+
+
+ Helper for single-threaded updates. This short helper function performs a single-theaded update and reports the results in a single call.
+
+
+ AABB manager factory function. Use this function to create a new standalone high-level broadphase. Newly created AABB manager, or NULL
+
+
+ constructor sets to default
+
+
+ (re)sets the structure to the default
+
+
+ Returns true if the descriptor is valid. true if the current settings are valid.
+
+
+ constructor sets to default.
+
+
+ (re)sets the structure to the default.
+
+
+ Returns true if the descriptor is valid. true if the current settings are valid.
+
+
+ Get number of broadphase volumes added for the current simulation step. Number of broadphase volumes added.
+
+
+ Get number of broadphase volumes removed for the current simulation step. Number of broadphase volumes removed.
+
+
+ Get number of shape collision pairs of a certain type processed for the current simulation step. There is an entry for each geometry pair type. entry[i][j] = entry[j][i], hence, if you want the sum of all pair types, you need to discard the symmetric entries Number of processed pairs of the specified geometry types.
+
+
+ Sets the PVD flag. See PxPvdSceneFlag.
+
+
+ Sets the PVD flags. See PxPvdSceneFlags.
+
+
+ Retrieves the PVD flags. See PxPvdSceneFlags.
+
+
+ update camera on PVD application's render window
+
+
+ draw points on PVD application's render window
+
+
+ draw lines on PVD application's render window
+
+
+ draw triangles on PVD application's render window
+
+
+ draw text on PVD application's render window
+
+
+ Out-of-bounds notification. This function is called when an object leaves the broad-phase.
+
+
+ Out-of-bounds notification. This function is called when an aggregate leaves the broad-phase.
+
+
+ Deletes the scene. Removes any actors and constraint shaders from this scene (if the user hasn't already done so). Be sure to not keep a reference to this object after calling release. Avoid release calls while the scene is simulating (in between simulate() and fetchResults() calls).
+
+
+ Sets a scene flag. You can only set one flag at a time. Not all flags are mutable and changing some will result in an error. Please check [`PxSceneFlag`] to see which flags can be changed.
+
+
+ Get the scene flags. The scene flags. See [`PxSceneFlag`]
+
+
+ Set new scene limits. Increase the maximum capacity of various data structures in the scene. The new capacities will be at least as large as required to deal with the objects currently in the scene. Further, these values are for preallocation and do not represent hard limits.
+
+
+ Get current scene limits. Current scene limits.
+
+
+ Call this method to retrieve the Physics SDK. The physics SDK this scene is associated with.
+
+
+ Retrieves the scene's internal timestamp, increased each time a simulation step is completed. scene timestamp
+
+
+ Adds an articulation to this scene. If the articulation is already assigned to a scene (see [`PxArticulationReducedCoordinate::getScene`]), the call is ignored and an error is issued. True if success
+
+
+ Removes an articulation from this scene. If the articulation is not part of this scene (see [`PxArticulationReducedCoordinate::getScene`]), the call is ignored and an error is issued. If the articulation is in an aggregate it will be removed from the aggregate.
+
+
+ Adds an actor to this scene. If the actor is already assigned to a scene (see [`PxActor::getScene`]), the call is ignored and an error is issued. If the actor has an invalid constraint, in checked builds the call is ignored and an error is issued. You can not add individual articulation links (see [`PxArticulationLink`]) to the scene. Use #addArticulation() instead. If the actor is a PxRigidActor then each assigned PxConstraint object will get added to the scene automatically if it connects to another actor that is part of the scene already. When a BVH is provided the actor shapes are grouped together. The scene query pruning structure inside PhysX SDK will store/update one bound per actor. The scene queries against such an actor will query actor bounds and then make a local space query against the provided BVH, which is in actor's local space. True if success
+
+
+ Adds actors to this scene. Only supports actors of type PxRigidStatic and PxRigidDynamic. This method only supports actors of type PxRigidStatic and PxRigidDynamic. For other actors, use addActor() instead. For articulation links, use addArticulation(). If one of the actors is already assigned to a scene (see [`PxActor::getScene`]), the call is ignored and an error is issued. If an actor in the array contains an invalid constraint, in checked builds the call is ignored and an error is issued. If an actor in the array is a PxRigidActor then each assigned PxConstraint object will get added to the scene automatically if it connects to another actor that is part of the scene already. this method is optimized for high performance. True if success
+
+
+ Adds a pruning structure together with its actors to this scene. Only supports actors of type PxRigidStatic and PxRigidDynamic. This method only supports actors of type PxRigidStatic and PxRigidDynamic. For other actors, use addActor() instead. For articulation links, use addArticulation(). If an actor in the pruning structure contains an invalid constraint, in checked builds the call is ignored and an error is issued. For all actors in the pruning structure each assigned PxConstraint object will get added to the scene automatically if it connects to another actor that is part of the scene already. This method is optimized for high performance. Merging a PxPruningStructure into an active scene query optimization AABB tree might unbalance the tree. A typical use case for PxPruningStructure is a large world scenario where blocks of closely positioned actors get streamed in. The merge process finds the best node in the active scene query optimization AABB tree and inserts the PxPruningStructure. Therefore using PxPruningStructure for actors scattered throughout the world will result in an unbalanced tree. True if success
+
+
+ Removes an actor from this scene. If the actor is not part of this scene (see [`PxActor::getScene`]), the call is ignored and an error is issued. You can not remove individual articulation links (see [`PxArticulationLink`]) from the scene. Use #removeArticulation() instead. If the actor is a PxRigidActor then all assigned PxConstraint objects will get removed from the scene automatically. If the actor is in an aggregate it will be removed from the aggregate.
+
+
+ Removes actors from this scene. Only supports actors of type PxRigidStatic and PxRigidDynamic. This method only supports actors of type PxRigidStatic and PxRigidDynamic. For other actors, use removeActor() instead. For articulation links, use removeArticulation(). If some actor is not part of this scene (see [`PxActor::getScene`]), the actor remove is ignored and an error is issued. You can not remove individual articulation links (see [`PxArticulationLink`]) from the scene. Use #removeArticulation() instead. If the actor is a PxRigidActor then all assigned PxConstraint objects will get removed from the scene automatically.
+
+
+ Adds an aggregate to this scene. If the aggregate is already assigned to a scene (see [`PxAggregate::getScene`]), the call is ignored and an error is issued. If the aggregate contains an actor with an invalid constraint, in checked builds the call is ignored and an error is issued. If the aggregate already contains actors, those actors are added to the scene as well. True if success
+
+
+ Removes an aggregate from this scene. If the aggregate is not part of this scene (see [`PxAggregate::getScene`]), the call is ignored and an error is issued. If the aggregate contains actors, those actors are removed from the scene as well.
+
+
+ Adds objects in the collection to this scene. This function adds the following types of objects to this scene: PxRigidActor (except PxArticulationLink), PxAggregate, PxArticulationReducedCoordinate. This method is typically used after deserializing the collection in order to populate the scene with deserialized objects. If the collection contains an actor with an invalid constraint, in checked builds the call is ignored and an error is issued. True if success
+
+
+ Retrieve the number of actors of certain types in the scene. For supported types, see PxActorTypeFlags. the number of actors.
+
+
+ Retrieve an array of all the actors of certain types in the scene. For supported types, see PxActorTypeFlags. Number of actors written to the buffer.
+
+
+ Queries the PxScene for a list of the PxActors whose transforms have been updated during the previous simulation step. Only includes actors of type PxRigidDynamic and PxArticulationLink. PxSceneFlag::eENABLE_ACTIVE_ACTORS must be set. Do not use this method while the simulation is running. Calls to this method while the simulation is running will be ignored and NULL will be returned. A pointer to the list of active PxActors generated during the last call to fetchResults().
+
+
+ Returns the number of articulations in the scene. the number of articulations in this scene.
+
+
+ Retrieve all the articulations in the scene. Number of articulations written to the buffer.
+
+
+ Returns the number of constraint shaders in the scene. the number of constraint shaders in this scene.
+
+
+ Retrieve all the constraint shaders in the scene. Number of constraint shaders written to the buffer.
+
+
+ Returns the number of aggregates in the scene. the number of aggregates in this scene.
+
+
+ Retrieve all the aggregates in the scene. Number of aggregates written to the buffer.
+
+
+ Specifies the dominance behavior of contacts between two actors with two certain dominance groups. It is possible to assign each actor to a dominance groups using [`PxActor::setDominanceGroup`](). With dominance groups one can have all contacts created between actors act in one direction only. This is useful, for example, if you want an object to push debris out of its way and be unaffected,while still responding physically to forces and collisions with non-debris objects. Whenever a contact between two actors (a0, a1) needs to be solved, the groups (g0, g1) of both actors are retrieved. Then the PxDominanceGroupPair setting for this group pair is retrieved with getDominanceGroupPair(g0, g1). In the contact, PxDominanceGroupPair::dominance0 becomes the dominance setting for a0, and PxDominanceGroupPair::dominance1 becomes the dominance setting for a1. A dominanceN setting of 1.0f, the default, will permit aN to be pushed or pulled by a(1-N) through the contact. A dominanceN setting of 0.0f, will however prevent aN to be pushed by a(1-N) via the contact. Thus, a PxDominanceGroupPair of (1.0f, 0.0f) makes the interaction one-way. The matrix sampled by getDominanceGroupPair(g1, g2) is initialised by default such that: if g1 == g2, then (1.0f, 1.0f) is returned if g1 < g2, then (0.0f, 1.0f) is returned if g1 > g2, then (1.0f, 0.0f) is returned In other words, we permit actors in higher groups to be pushed around by actors in lower groups by default. These settings should cover most applications, and in fact not overriding these settings may likely result in higher performance. It is not possible to make the matrix asymetric, or to change the diagonal. In other words: it is not possible to change (g1, g2) if (g1==g2) if you set (g1, g2) to X, then (g2, g1) will implicitly and automatically be set to ~X, where: ~(1.0f, 1.0f) is (1.0f, 1.0f) ~(0.0f, 1.0f) is (1.0f, 0.0f) ~(1.0f, 0.0f) is (0.0f, 1.0f) These two restrictions are to make sure that contacts between two actors will always evaluate to the same dominance setting, regardless of the order of the actors. Dominance settings are currently specified as floats 0.0f or 1.0f because in the future we may permit arbitrary fractional settings to express 'partly-one-way' interactions. Sleeping: Does NOT wake actors up automatically.
+
+
+ Samples the dominance matrix.
+
+
+ Return the cpu dispatcher that was set in PxSceneDesc::cpuDispatcher when creating the scene with PxPhysics::createScene
+
+
+ Reserves a new client ID. PX_DEFAULT_CLIENT is always available as the default clientID. Additional clients are returned by this function. Clients cannot be released once created. An error is reported when more than a supported number of clients (currently 128) are created.
+
+
+ Sets a user notify object which receives special simulation events when they occur. Do not set the callback while the simulation is running. Calls to this method while the simulation is running will be ignored.
+
+
+ Retrieves the simulationEventCallback pointer set with setSimulationEventCallback(). The current user notify pointer. See [`PxSimulationEventCallback`].
+
+
+ Sets a user callback object, which receives callbacks on all contacts generated for specified actors. Do not set the callback while the simulation is running. Calls to this method while the simulation is running will be ignored.
+
+
+ Sets a user callback object, which receives callbacks on all CCD contacts generated for specified actors. Do not set the callback while the simulation is running. Calls to this method while the simulation is running will be ignored.
+
+
+ Retrieves the PxContactModifyCallback pointer set with setContactModifyCallback(). The current user contact modify callback pointer. See [`PxContactModifyCallback`].
+
+
+ Retrieves the PxCCDContactModifyCallback pointer set with setContactModifyCallback(). The current user contact modify callback pointer. See [`PxContactModifyCallback`].
+
+
+ Sets a broad-phase user callback object. Do not set the callback while the simulation is running. Calls to this method while the simulation is running will be ignored.
+
+
+ Retrieves the PxBroadPhaseCallback pointer set with setBroadPhaseCallback(). The current broad-phase callback pointer. See [`PxBroadPhaseCallback`].
+
+
+ Sets the shared global filter data which will get passed into the filter shader. It is the user's responsibility to ensure that changing the shared global filter data does not change the filter output value for existing pairs. If the filter output for existing pairs does change nonetheless then such a change will not take effect until the pair gets refiltered. resetFiltering() can be used to explicitly refilter the pairs of specific objects. The provided data will get copied to internal buffers and this copy will be used for filtering calls. Do not use this method while the simulation is running. Calls to this method while the simulation is running will be ignored.
+
+
+ Gets the shared global filter data in use for this scene. The reference points to a copy of the original filter data specified in [`PxSceneDesc`].filterShaderData or provided by #setFilterShaderData(). Shared filter data for filter shader.
+
+
+ Gets the size of the shared global filter data ([`PxSceneDesc`].filterShaderData) Size of shared filter data [bytes].
+
+
+ Marks the object to reset interactions and re-run collision filters in the next simulation step. This call forces the object to remove all existing collision interactions, to search anew for existing contact pairs and to run the collision filters again for found collision pairs. The operation is supported for PxRigidActor objects only. All persistent state of existing interactions will be lost and can not be retrieved even if the same collison pair is found again in the next step. This will mean, for example, that you will not get notified about persistent contact for such an interaction (see [`PxPairFlag::eNOTIFY_TOUCH_PERSISTS`]), the contact pair will be interpreted as newly found instead. Lost touch contact reports will be sent for every collision pair which includes this shape, if they have been requested through [`PxPairFlag::eNOTIFY_TOUCH_LOST`] or #PxPairFlag::eNOTIFY_THRESHOLD_FORCE_LOST. This is an expensive operation, don't use it if you don't have to. Can be used to retrieve collision pairs that were killed by the collision filters (see [`PxFilterFlag::eKILL`]) It is invalid to use this method if the actor has not been added to a scene already. It is invalid to use this method if PxActorFlag::eDISABLE_SIMULATION is set. Do not use this method while the simulation is running. Sleeping: Does wake up the actor. True if success
+
+
+ Marks the object to reset interactions and re-run collision filters for specified shapes in the next simulation step. This is a specialization of the resetFiltering(PxActor & actor) method and allows to reset interactions for specific shapes of a PxRigidActor. Do not use this method while the simulation is running. Sleeping: Does wake up the actor.
+
+
+ Gets the pair filtering mode for kinematic-kinematic pairs. Filtering mode for kinematic-kinematic pairs.
+
+
+ Gets the pair filtering mode for static-kinematic pairs. Filtering mode for static-kinematic pairs.
+
+
+ Advances the simulation by an elapsedTime time. Large elapsedTime values can lead to instabilities. In such cases elapsedTime should be subdivided into smaller time intervals and simulate() should be called multiple times for each interval. Calls to simulate() should pair with calls to fetchResults(): Each fetchResults() invocation corresponds to exactly one simulate() invocation; calling simulate() twice without an intervening fetchResults() or fetchResults() twice without an intervening simulate() causes an error condition. scene->simulate(); ...do some processing until physics is computed... scene->fetchResults(); ...now results of run may be retrieved. True if success
+
+
+ Performs dynamics phase of the simulation pipeline. Calls to advance() should follow calls to fetchCollision(). An error message will be issued if this sequence is not followed. True if success
+
+
+ Performs collision detection for the scene over elapsedTime Calls to collide() should be the first method called to simulate a frame. True if success
+
+
+ This checks to see if the simulation run has completed. This does not cause the data available for reading to be updated with the results of the simulation, it is simply a status check. The bool will allow it to either return immediately or block waiting for the condition to be met so that it can return true True if the results are available.
+
+
+ This method must be called after collide() and before advance(). It will wait for the collision phase to finish. If the user makes an illegal simulation call, the SDK will issue an error message.
+
+
+ This is the big brother to checkResults() it basically does the following: True if the results have been fetched.
+
+
+ This call performs the first section of fetchResults, and returns a pointer to the contact streams output by the simulation. It can be used to process contact pairs in parallel, which is often a limiting factor for fetchResults() performance. After calling this function and processing the contact streams, call fetchResultsFinish(). Note that writes to the simulation are not permitted between the start of fetchResultsStart() and the end of fetchResultsFinish(). True if the results have been fetched.
+
+
+ This call processes all event callbacks in parallel. It takes a continuation task, which will be executed once all callbacks have been processed. This is a utility function to make it easier to process callbacks in parallel using the PhysX task system. It can only be used in conjunction with fetchResultsStart(...) and fetchResultsFinish(...)
+
+
+ This call performs the second section of fetchResults. It must be called after fetchResultsStart() returns and contact reports have been processed. Note that once fetchResultsFinish() has been called, the contact streams returned in fetchResultsStart() will be invalid.
+
+
+ This call performs the synchronization of particle system data copies.
+
+
+ Clear internal buffers and free memory. This method can be used to clear buffers and free internal memory without having to destroy the scene. Can be useful if the physics data gets streamed in and a checkpoint with a clean state should be created. It is not allowed to call this method while the simulation is running. The call will fail.
+
+
+ Sets a constant gravity for the entire scene. Do not use this method while the simulation is running. Sleeping: Does NOT wake the actor up automatically.
+
+
+ Retrieves the current gravity setting. The current gravity for the scene.
+
+
+ Set the bounce threshold velocity. Collision speeds below this threshold will not cause a bounce. Do not use this method while the simulation is running.
+
+
+ Return the bounce threshold velocity.
+
+
+ Sets the maximum number of CCD passes Do not use this method while the simulation is running.
+
+
+ Gets the maximum number of CCD passes. The maximum number of CCD passes.
+
+
+ Set the maximum CCD separation. Do not use this method while the simulation is running.
+
+
+ Gets the maximum CCD separation. The maximum CCD separation.
+
+
+ Set the CCD threshold. Do not use this method while the simulation is running.
+
+
+ Gets the CCD threshold. The CCD threshold.
+
+
+ Set the max bias coefficient. Do not use this method while the simulation is running.
+
+
+ Gets the max bias coefficient. The max bias coefficient.
+
+
+ Set the friction offset threshold. Do not use this method while the simulation is running.
+
+
+ Gets the friction offset threshold.
+
+
+ Set the friction correlation distance. Do not use this method while the simulation is running.
+
+
+ Gets the friction correlation distance.
+
+
+ Return the friction model.
+
+
+ Return the solver model.
+
+
+ Function that lets you set debug visualization parameters. Returns false if the value passed is out of range for usage specified by the enum. Do not use this method while the simulation is running. False if the parameter is out of range.
+
+
+ Function that lets you query debug visualization parameters. The value of the parameter.
+
+
+ Defines a box in world space to which visualization geometry will be (conservatively) culled. Use a non-empty culling box to enable the feature, and an empty culling box to disable it. Do not use this method while the simulation is running.
+
+
+ Retrieves the visualization culling box. the box to which the geometry will be culled.
+
+
+ Retrieves the render buffer. This will contain the results of any active visualization for this scene. Do not use this method while the simulation is running. Calls to this method while the simulation is running will result in undefined behaviour. The render buffer.
+
+
+ Call this method to retrieve statistics for the current simulation step. Do not use this method while the simulation is running. Calls to this method while the simulation is running will be ignored.
+
+
+ Returns broad-phase type. Broad-phase type
+
+
+ Gets broad-phase caps. True if success
+
+
+ Returns number of regions currently registered in the broad-phase. Number of regions
+
+
+ Gets broad-phase regions. Number of written out regions
+
+
+ Adds a new broad-phase region. The bounds for the new region must be non-empty, otherwise an error occurs and the call is ignored. Note that by default, objects already existing in the SDK that might touch this region will not be automatically added to the region. In other words the newly created region will be empty, and will only be populated with new objects when they are added to the simulation, or with already existing objects when they are updated. It is nonetheless possible to override this default behavior and let the SDK populate the new region automatically with already existing objects overlapping the incoming region. This has a cost though, and it should only be used when the game can not guarantee that all objects within the new region will be added to the simulation after the region itself. Objects automatically move from one region to another during their lifetime. The system keeps tracks of what regions a given object is in. It is legal for an object to be in an arbitrary number of regions. However if an object leaves all regions, or is created outside of all regions, several things happen: - collisions get disabled for this object - if a PxBroadPhaseCallback object is provided, an \"out-of-bounds\" event is generated via that callback - if a PxBroadPhaseCallback object is not provided, a warning/error message is sent to the error stream If an object goes out-of-bounds and user deletes it during the same frame, neither the out-of-bounds event nor the error message is generated. Handle for newly created region, or 0xffffffff in case of failure.
+
+
+ Removes a new broad-phase region. If the region still contains objects, and if those objects do not overlap any region any more, they are not automatically removed from the simulation. Instead, the PxBroadPhaseCallback::onObjectOutOfBounds notification is used for each object. Users are responsible for removing the objects from the simulation if this is the desired behavior. If the handle is invalid, or if a valid handle is removed twice, an error message is sent to the error stream. True if success
+
+
+ Get the task manager associated with this scene the task manager associated with the scene
+
+
+ Lock the scene for reading from the calling thread. When the PxSceneFlag::eREQUIRE_RW_LOCK flag is enabled lockRead() must be called before any read calls are made on the scene. Multiple threads may read at the same time, no threads may read while a thread is writing. If a call to lockRead() is made while another thread is holding a write lock then the calling thread will be blocked until the writing thread calls unlockWrite(). Lock upgrading is *not* supported, that means it is an error to call lockRead() followed by lockWrite(). Recursive locking is supported but each lockRead() call must be paired with an unlockRead().
+
+
+ Unlock the scene from reading. Each unlockRead() must be paired with a lockRead() from the same thread.
+
+
+ Lock the scene for writing from this thread. When the PxSceneFlag::eREQUIRE_RW_LOCK flag is enabled lockWrite() must be called before any write calls are made on the scene. Only one thread may write at a time and no threads may read while a thread is writing. If a call to lockWrite() is made and there are other threads reading then the calling thread will be blocked until the readers complete. Writers have priority. If a thread is blocked waiting to write then subsequent calls to lockRead() from other threads will be blocked until the writer completes. If multiple threads are waiting to write then the thread that is first granted access depends on OS scheduling. Recursive locking is supported but each lockWrite() call must be paired with an unlockWrite(). If a thread has already locked the scene for writing then it may call lockRead().
+
+
+ Unlock the scene from writing. Each unlockWrite() must be paired with a lockWrite() from the same thread.
+
+
+ set the cache blocks that can be used during simulate(). Each frame the simulation requires memory to store contact, friction, and contact cache data. This memory is used in blocks of 16K. Each frame the blocks used by the previous frame are freed, and may be retrieved by the application using PxScene::flushSimulation() This call will force allocation of cache blocks if the numBlocks parameter is greater than the currently allocated number of blocks, and less than the max16KContactDataBlocks parameter specified at scene creation time. Do not use this method while the simulation is running.
+
+
+ get the number of cache blocks currently used by the scene This function may not be called while the scene is simulating the number of cache blocks currently used by the scene
+
+
+ get the maximum number of cache blocks used by the scene This function may not be called while the scene is simulating the maximum number of cache blocks everused by the scene
+
+
+ Return the value of PxSceneDesc::contactReportStreamBufferSize that was set when creating the scene with PxPhysics::createScene
+
+
+ Sets the number of actors required to spawn a separate rigid body solver thread. Do not use this method while the simulation is running.
+
+
+ Retrieves the number of actors required to spawn a separate rigid body solver thread. Current number of actors required to spawn a separate rigid body solver thread.
+
+
+ Sets the number of articulations required to spawn a separate rigid body solver thread. Do not use this method while the simulation is running.
+
+
+ Retrieves the number of articulations required to spawn a separate rigid body solver thread. Current number of articulations required to spawn a separate rigid body solver thread.
+
+
+ Returns the wake counter reset value. Wake counter reset value
+
+
+ Shift the scene origin by the specified vector. The poses of all objects in the scene and the corresponding data structures will get adjusted to reflect the new origin location (the shift vector will get subtracted from all object positions). It is the user's responsibility to keep track of the summed total origin shift and adjust all input/output to/from PhysX accordingly. Do not use this method while the simulation is running. Calls to this method while the simulation is running will be ignored. Make sure to propagate the origin shift to other dependent modules (for example, the character controller module etc.). This is an expensive operation and we recommend to use it only in the case where distance related precision issues may arise in areas far from the origin.
+
+
+ Returns the Pvd client associated with the scene. the client, NULL if no PVD supported.
+
+
+ Copy GPU articulation data from the internal GPU buffer to a user-provided device buffer.
+
+
+ Apply GPU articulation data from a user-provided device buffer to the internal GPU buffer.
+
+
+ Copy GPU softbody data from the internal GPU buffer to a user-provided device buffer.
+
+
+ Apply user-provided data to the internal softbody system.
+
+
+ Copy contact data from the internal GPU buffer to a user-provided device buffer. The contact data contains pointers to internal state and is only valid until the next call to simulate().
+
+
+ Copy GPU rigid body data from the internal GPU buffer to a user-provided device buffer.
+
+
+ Apply user-provided data to rigid body.
+
+
+ Compute dense Jacobian matrices for specified articulations on the GPU. The size of Jacobians can vary by articulation, since it depends on the number of links, degrees-of-freedom, and whether the base is fixed. The size is determined using these formulas: nCols = (fixedBase ? 0 : 6) + dofCount nRows = (fixedBase ? 0 : 6) + (linkCount - 1) * 6; The user must ensure that adequate space is provided for each Jacobian matrix.
+
+
+ Compute the joint-space inertia matrices that maps joint accelerations to joint forces: forces = M * accelerations on the GPU. The size of matrices can vary by articulation, since it depends on the number of links and degrees-of-freedom. The size is determined using this formula: sizeof(float) * dofCount * dofCount The user must ensure that adequate space is provided for each mass matrix.
+
+
+ Computes the joint DOF forces required to counteract gravitational forces for the given articulation pose. The size of the result can vary by articulation, since it depends on the number of links and degrees-of-freedom. The size is determined using this formula: sizeof(float) * dofCount The user must ensure that adequate space is provided for each articulation.
+
+
+ Computes the joint DOF forces required to counteract coriolis and centrifugal forces for the given articulation pose. The size of the result can vary by articulation, since it depends on the number of links and degrees-of-freedom. The size is determined using this formula: sizeof(float) * dofCount The user must ensure that adequate space is provided for each articulation.
+
+
+ Apply user-provided data to particle buffers. This function should be used if the particle buffer flags are already on the device. Otherwise, use PxParticleBuffer::raiseFlags() from the CPU. This assumes the data has been changed directly in the PxParticleBuffer.
+
+
+ Constructor
+
+
+ Constructor
+
+
+ Constructor
+
+
+ Advances the iterator to next set of extra data items. The contact pair extra data stream contains sets of items as requested by the corresponding [`PxPairFlag`] flags [`PxPairFlag::ePRE_SOLVER_VELOCITY`], #PxPairFlag::ePOST_SOLVER_VELOCITY, #PxPairFlag::eCONTACT_EVENT_POSE. A set can contain one item of each plus the PxContactPairIndex item. This method parses the stream and points the iterator member variables to the corresponding items of the current set, if they are available. If CCD is not enabled, you should only get one set of items. If CCD with multiple passes is enabled, you might get more than one item set. Even though contact pair extra data is requested per shape pair, you will not get an item set per shape pair but one per actor pair. If, for example, an actor has two shapes and both collide with another actor, then there will only be one item set (since it applies to both shape pairs). True if there was another set of extra data items in the stream, else false.
+
+
+ Extracts the contact points from the stream and stores them in a convenient format. Number of contact points written to the buffer.
+
+
+ Helper method to clone the contact pair and copy the contact data stream into a user buffer. The contact data stream is only accessible during the contact report callback. This helper function provides copy functionality to buffer the contact stream information such that it can get accessed at a later stage.
+
+
+ This is called when a breakable constraint breaks. The user should not release the constraint shader inside this call! No event will get reported if the constraint breaks but gets deleted while the time step is still being simulated.
+
+
+ This is called with the actors which have just been woken up. Only supported by rigid bodies yet. Only called on actors for which the PxActorFlag eSEND_SLEEP_NOTIFIES has been set. Only the latest sleep state transition happening between fetchResults() of the previous frame and fetchResults() of the current frame will get reported. For example, let us assume actor A is awake, then A->putToSleep() gets called, then later A->wakeUp() gets called. At the next simulate/fetchResults() step only an onWake() event will get triggered because that was the last transition. If an actor gets newly added to a scene with properties such that it is awake and the sleep state does not get changed by the user or simulation, then an onWake() event will get sent at the next simulate/fetchResults() step.
+
+
+ This is called with the actors which have just been put to sleep. Only supported by rigid bodies yet. Only called on actors for which the PxActorFlag eSEND_SLEEP_NOTIFIES has been set. Only the latest sleep state transition happening between fetchResults() of the previous frame and fetchResults() of the current frame will get reported. For example, let us assume actor A is asleep, then A->wakeUp() gets called, then later A->putToSleep() gets called. At the next simulate/fetchResults() step only an onSleep() event will get triggered because that was the last transition (assuming the simulation does not wake the actor up). If an actor gets newly added to a scene with properties such that it is asleep and the sleep state does not get changed by the user or simulation, then an onSleep() event will get sent at the next simulate/fetchResults() step.
+
+
+ This is called when certain contact events occur. The method will be called for a pair of actors if one of the colliding shape pairs requested contact notification. You request which events are reported using the filter shader/callback mechanism (see [`PxSimulationFilterShader`], [`PxSimulationFilterCallback`], #PxPairFlag). Do not keep references to the passed objects, as they will be invalid after this function returns.
+
+
+ This is called with the current trigger pair events. Shapes which have been marked as triggers using PxShapeFlag::eTRIGGER_SHAPE will send events according to the pair flag specification in the filter shader (see [`PxPairFlag`], #PxSimulationFilterShader). Trigger shapes will no longer send notification events for interactions with other trigger shapes.
+
+
+ Provides early access to the new pose of moving rigid bodies. When this call occurs, rigid bodies having the [`PxRigidBodyFlag::eENABLE_POSE_INTEGRATION_PREVIEW`] flag set, were moved by the simulation and their new poses can be accessed through the provided buffers. The provided buffers are valid and can be read until the next call to [`PxScene::simulate`]() or #PxScene::collide(). This callback gets triggered while the simulation is running. If the provided rigid body references are used to read properties of the object, then the callback has to guarantee no other thread is writing to the same body at the same time. The code in this callback should be lightweight as it can block the simulation, that is, the [`PxScene::fetchResults`]() call.
+
+
+ Release this object.
+
+
+ Retrieve rigid actors in the pruning structure. You can retrieve the number of rigid actor pointers by calling [`getNbRigidActors`]() Number of rigid actor pointers written to the buffer.
+
+
+ Returns the number of rigid actors in the pruning structure. You can use [`getRigidActors`]() to retrieve the rigid actor pointers. Number of rigid actors in the pruning structure.
+
+
+ Gets the merge data for static actors This is mainly called by the PxSceneQuerySystem::merge() function to merge a PxPruningStructure with the internal data-structures of the scene-query system. Implementation-dependent merge data for static actors.
+
+
+ Gets the merge data for dynamic actors This is mainly called by the PxSceneQuerySystem::merge() function to merge a PxPruningStructure with the internal data-structures of the scene-query system. Implementation-dependent merge data for dynamic actors.
+
+
+ Releases the context.
+
+
+ Retrieves the controller manager associated with this context. The associated controller manager
+
+
+ Adds an obstacle to the context. Handle for newly-added obstacle
+
+
+ Removes an obstacle from the context. True if success
+
+
+ Updates data for an existing obstacle. True if success
+
+
+ Retrieves number of obstacles in the context. Number of obstacles in the context
+
+
+ Retrieves desired obstacle. Desired obstacle
+
+
+ Retrieves desired obstacle by given handle. Desired obstacle
+
+
+ Called when current controller hits a shape. This is called when the CCT moves and hits a shape. This will not be called when a moving shape hits a non-moving CCT.
+
+
+ Called when current controller hits another controller.
+
+
+ Called when current controller hits a user-defined obstacle.
+
+
+ Filtering method for CCT-vs-CCT. true to keep the pair, false to filter it out
+
+
+ returns true if the current settings are valid True if the descriptor is valid.
+
+
+ Returns the character controller type The controllers type.
+
+
+ Return the type of controller
+
+
+ Releases the controller.
+
+
+ Moves the character using a \"collide-and-slide\" algorithm. Collision flags, collection of ::PxControllerCollisionFlags
+
+
+ Sets controller's position. The position controlled by this function is the center of the collision shape. This is a 'teleport' function, it doesn't check for collisions. The character's position must be such that it does not overlap the static geometry. To move the character under normal conditions use the [`move`]() function. Currently always returns true.
+
+
+ Retrieve the raw position of the controller. The position retrieved by this function is the center of the collision shape. To retrieve the bottom position of the shape, a.k.a. the foot position, use the getFootPosition() function. The position is updated by calls to move(). Calling this method without calling move() will return the last position or the initial position of the controller. The controller's center position
+
+
+ Set controller's foot position. The position controlled by this function is the bottom of the collision shape, a.k.a. the foot position. The foot position takes the contact offset into account This is a 'teleport' function, it doesn't check for collisions. To move the character under normal conditions use the [`move`]() function. Currently always returns true.
+
+
+ Retrieve the \"foot\" position of the controller, i.e. the position of the bottom of the CCT's shape. The foot position takes the contact offset into account The controller's foot position
+
+
+ Get the rigid body actor associated with this controller (see PhysX documentation). The behavior upon manually altering this actor is undefined, you should primarily use it for reading const properties. the actor associated with the controller.
+
+
+ The step height.
+
+
+ Retrieve the step height. The step offset for the controller.
+
+
+ Sets the non-walkable mode for the CCT.
+
+
+ Retrieves the non-walkable mode for the CCT. The current non-walkable mode.
+
+
+ Retrieve the contact offset. The contact offset for the controller.
+
+
+ Sets the contact offset.
+
+
+ Retrieve the 'up' direction. The up direction for the controller.
+
+
+ Sets the 'up' direction.
+
+
+ Retrieve the slope limit. The slope limit for the controller.
+
+
+ Sets the slope limit. This feature can not be enabled at runtime, i.e. if the slope limit is zero when creating the CCT (which disables the feature) then changing the slope limit at runtime will not have any effect, and the call will be ignored.
+
+
+ Flushes internal geometry cache. The character controller uses caching in order to speed up collision testing. The cache is automatically flushed when a change to static objects is detected in the scene. For example when a static shape is added, updated, or removed from the scene, the cache is automatically invalidated. However there may be situations that cannot be automatically detected, and those require manual invalidation of the cache. Currently the user must call this when the filtering behavior changes (the PxControllerFilters parameter of the PxController::move call). While the controller in principle could detect a change in these parameters, it cannot detect a change in the behavior of the filtering function.
+
+
+ Retrieve the scene associated with the controller. The physics scene
+
+
+ Returns the user data associated with this controller. The user pointer associated with the controller.
+
+
+ Sets the user data associated with this controller.
+
+
+ Returns information about the controller's internal state.
+
+
+ Returns the controller's internal statistics.
+
+
+ Resizes the controller. This function attempts to resize the controller to a given size, while making sure the bottom position of the controller remains constant. In other words the function modifies both the height and the (center) position of the controller. This is a helper function that can be used to implement a 'crouch' functionality for example.
+
+
+ constructor sets to default.
+
+
+ (re)sets the structure to the default.
+
+
+ returns true if the current settings are valid True if the descriptor is valid.
+
+
+ Gets controller's half height. The half height of the controller.
+
+
+ Gets controller's half side extent. The half side extent of the controller.
+
+
+ Gets controller's half forward extent. The half forward extent of the controller.
+
+
+ Sets controller's half height. this doesn't check for collisions. Currently always true.
+
+
+ Sets controller's half side extent. this doesn't check for collisions. Currently always true.
+
+
+ Sets controller's half forward extent. this doesn't check for collisions. Currently always true.
+
+
+ constructor sets to default.
+
+
+ (re)sets the structure to the default.
+
+
+ returns true if the current settings are valid True if the descriptor is valid.
+
+
+ Gets controller's radius. The radius of the controller.
+
+
+ Sets controller's radius. this doesn't check for collisions. Currently always true.
+
+
+ Gets controller's height. The height of the capsule controller.
+
+
+ Resets controller's height. this doesn't check for collisions. Currently always true.
+
+
+ Gets controller's climbing mode. The capsule controller's climbing mode.
+
+
+ Sets controller's climbing mode.
+
+
+ Retrieve behavior flags for a shape. When the CCT touches a shape, the CCT's behavior w.r.t. this shape can be customized by users. This function retrieves the desired PxControllerBehaviorFlag flags capturing the desired behavior. See comments about deprecated functions at the start of this class Desired behavior flags for the given shape
+
+
+ Retrieve behavior flags for a controller. When the CCT touches a controller, the CCT's behavior w.r.t. this controller can be customized by users. This function retrieves the desired PxControllerBehaviorFlag flags capturing the desired behavior. The flag PxControllerBehaviorFlag::eCCT_CAN_RIDE_ON_OBJECT is not supported. See comments about deprecated functions at the start of this class Desired behavior flags for the given controller
+
+
+ Retrieve behavior flags for an obstacle. When the CCT touches an obstacle, the CCT's behavior w.r.t. this obstacle can be customized by users. This function retrieves the desired PxControllerBehaviorFlag flags capturing the desired behavior. See comments about deprecated functions at the start of this class Desired behavior flags for the given obstacle
+
+
+ Releases the controller manager. This will release all associated controllers and obstacle contexts. This function is required to be called to release foundation usage.
+
+
+ Returns the scene the manager is adding the controllers to. The associated physics scene.
+
+
+ Returns the number of controllers that are being managed. The number of controllers.
+
+
+ Retrieve one of the controllers in the manager. The controller with the specified index.
+
+
+ Creates a new character controller. The new controller
+
+
+ Releases all the controllers that are being managed.
+
+
+ Retrieves debug data. The render buffer filled with debug-render data
+
+
+ Sets debug rendering flags
+
+
+ Returns the number of obstacle contexts that are being managed. The number of obstacle contexts.
+
+
+ Retrieve one of the obstacle contexts in the manager. The obstacle context with the specified index.
+
+
+ Creates an obstacle context. New obstacle context
+
+
+ Computes character-character interactions. This function is an optional helper to properly resolve interactions between characters, in case they overlap (which can happen for gameplay reasons, etc). You should call this once per frame, before your PxController::move() calls. The function will not move the characters directly, but it will compute overlap information for each character that will be used in the next move() call. You need to provide a proper time value here so that interactions are resolved in a way that do not depend on the framerate. If you only have one character in the scene, or if you can guarantee your characters will never overlap, then you do not need to call this function. Releasing the manager will automatically release all the associated obstacle contexts.
+
+
+ Enables or disables runtime tessellation. Large triangles can create accuracy issues in the sweep code, which in turn can lead to characters not sliding smoothly against geometries, or even penetrating them. This feature allows one to reduce those issues by tessellating large triangles at runtime, before performing sweeps against them. The amount of tessellation is controlled by the 'maxEdgeLength' parameter. Any triangle with at least one edge length greater than the maxEdgeLength will get recursively tessellated, until resulting triangles are small enough. This features only applies to triangle meshes, convex meshes, heightfields and boxes.
+
+
+ Enables or disables the overlap recovery module. The overlap recovery module can be used to depenetrate CCTs from static objects when an overlap is detected. This can happen in three main cases: - when the CCT is directly spawned or teleported in another object - when the CCT algorithm fails due to limited FPU accuracy - when the \"up vector\" is modified, making the rotated CCT shape overlap surrounding objects When activated, the CCT module will automatically try to resolve the penetration, and move the CCT to a safe place where it does not overlap other objects anymore. This only concerns static objects, dynamic objects are ignored by the recovery module. When the recovery module is not activated, it is possible for the CCTs to go through static objects. By default, the recovery module is enabled. The recovery module currently works with all geometries except heightfields.
+
+
+ Enables or disables the precise sweeps. Precise sweeps are more accurate, but also potentially slower than regular sweeps. By default, precise sweeps are enabled.
+
+
+ Enables or disables vertical sliding against ceilings. Geometry is seen as \"ceilings\" when the following condition is met: dot product(contact normal, up direction) < 0.0f This flag controls whether characters should slide vertically along the geometry in that case. By default, sliding is allowed.
+
+
+ Shift the origin of the character controllers and obstacle objects by the specified vector. The positions of all character controllers, obstacle objects and the corresponding data structures will get adjusted to reflect the shifted origin location (the shift vector will get subtracted from all character controller and obstacle object positions). It is the user's responsibility to keep track of the summed total origin shift and adjust all input/output to/from PhysXCharacterKinematic accordingly. This call will not automatically shift the PhysX scene and its objects. You need to call PxScene::shiftOrigin() seperately to keep the systems in sync.
+
+
+ Creates the controller manager. The character controller is informed by [`PxDeletionListener::onRelease`]() when actors or shapes are released, and updates its internal caches accordingly. If character controller movement or a call to [`PxControllerManager::shiftOrigin`]() may overlap with actor/shape releases, internal data structures must be guarded against concurrent access. Locking guarantees thread safety in such scenarios. locking may result in significant slowdown for release of actors or shapes. By default, locking is disabled.
+
+
+ Constructor
+
+
+ Returns true if the descriptor is valid. true if the current settings are valid
+
+
+ constructor sets to default.
+
+
+ (re)sets the structure to the default.
+
+
+ Returns true if the descriptor is valid. True if the current settings are valid
+
+
+ Constructor sets to default.
+
+
+ (re)sets the structure to the default.
+
+
+ Returns true if the descriptor is valid. true if the current settings are valid
+
+
+ Constructor to build an empty tetmesh description
+
+
+ Constructor to build an empty simulation description
+
+
+ Desc initialization to default value.
+
+
+ Returns true if the descriptor is valid. true if the current settings are valid.
+
+
+ Returns type of midphase mesh structure. PxMeshMidPhase::Enum
+
+
+ Initialize the midphase mesh structure descriptor
+
+
+ Returns true if the descriptor is valid. true if the current settings are valid.
+
+
+ Initialize the BVH descriptor
+
+
+ Returns true if the descriptor is valid. true if the current settings are valid.
+
+
+ Cooks a bounding volume hierarchy. The results are written to the stream. PxCookBVH() allows a BVH description to be cooked into a binary stream suitable for loading and performing BVH detection at runtime. true on success.
+
+
+ Cooks and creates a bounding volume hierarchy without going through a stream. This method does the same as cookBVH, but the produced BVH is not stored into a stream but is either directly inserted in PxPhysics, or created as a standalone object. Use this method if you are unable to cook offline. PxInsertionCallback can be obtained through PxPhysics::getPhysicsInsertionCallback() or PxCooking::getStandaloneInsertionCallback(). PxBVH pointer on success
+
+
+ Cooks a heightfield. The results are written to the stream. To create a heightfield object there is an option to precompute some of calculations done while loading the heightfield data. cookHeightField() allows a heightfield description to be cooked into a binary stream suitable for loading and performing collision detection at runtime. true on success
+
+
+ Cooks and creates a heightfield mesh and inserts it into PxPhysics. PxHeightField pointer on success
+
+
+ Cooks a convex mesh. The results are written to the stream. To create a triangle mesh object it is necessary to first 'cook' the mesh data into a form which allows the SDK to perform efficient collision detection. cookConvexMesh() allows a mesh description to be cooked into a binary stream suitable for loading and performing collision detection at runtime. The number of vertices and the number of convex polygons in a cooked convex mesh is limited to 255. If those limits are exceeded in either the user-provided data or the final cooked mesh, an error is reported. true on success.
+
+
+ Cooks and creates a convex mesh without going through a stream. This method does the same as cookConvexMesh, but the produced mesh is not stored into a stream but is either directly inserted in PxPhysics, or created as a standalone object. Use this method if you are unable to cook offline. PxInsertionCallback can be obtained through PxPhysics::getPhysicsInsertionCallback() or PxCooking::getStandaloneInsertionCallback(). PxConvexMesh pointer on success
+
+
+ Verifies if the convex mesh is valid. Prints an error message for each inconsistency found. The convex mesh descriptor must contain an already created convex mesh - the vertices, indices and polygons must be provided. This function should be used if PxConvexFlag::eDISABLE_MESH_VALIDATION is planned to be used in release builds. true if all the validity conditions hold, false otherwise.
+
+
+ Computed hull polygons from given vertices and triangles. Polygons are needed for PxConvexMeshDesc rather than triangles. Please note that the resulting polygons may have different number of vertices. Some vertices may be removed. The output vertices, indices and polygons must be used to construct a hull. The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those array's. true on success
+
+
+ Verifies if the triangle mesh is valid. Prints an error message for each inconsistency found. The following conditions are true for a valid triangle mesh: 1. There are no duplicate vertices (within specified vertexWeldTolerance. See PxCookingParams::meshWeldTolerance) 2. There are no large triangles (within specified PxTolerancesScale.) true if all the validity conditions hold, false otherwise.
+
+
+ Cooks and creates a triangle mesh without going through a stream. This method does the same as cookTriangleMesh, but the produced mesh is not stored into a stream but is either directly inserted in PxPhysics, or created as a standalone object. Use this method if you are unable to cook offline. PxInsertionCallback can be obtained through PxPhysics::getPhysicsInsertionCallback() or PxCooking::getStandaloneInsertionCallback(). PxTriangleMesh pointer on success.
+
+
+ Cooks a triangle mesh. The results are written to the stream. To create a triangle mesh object it is necessary to first 'cook' the mesh data into a form which allows the SDK to perform efficient collision detection. PxCookTriangleMesh() allows a mesh description to be cooked into a binary stream suitable for loading and performing collision detection at runtime. true on success
+
+
+ Set the actors for this joint. An actor may be NULL to indicate the world frame. At most one of the actors may be NULL.
+
+
+ Get the actors for this joint.
+
+
+ Set the joint local pose for an actor. This is the relative pose which locates the joint frame relative to the actor.
+
+
+ get the joint local pose for an actor. return the local pose for this joint
+
+
+ get the relative pose for this joint This function returns the pose of the joint frame of actor1 relative to actor0
+
+
+ get the relative linear velocity of the joint This function returns the linear velocity of the origin of the constraint frame of actor1, relative to the origin of the constraint frame of actor0. The value is returned in the constraint frame of actor0
+
+
+ get the relative angular velocity of the joint This function returns the angular velocity of actor1 relative to actor0. The value is returned in the constraint frame of actor0
+
+
+ set the break force for this joint. if the constraint force or torque on the joint exceeds the specified values, the joint will break, at which point it will not constrain the two actors and the flag PxConstraintFlag::eBROKEN will be set. The force and torque are measured in the joint frame of the first actor
+
+
+ get the break force for this joint.
+
+
+ set the constraint flags for this joint.
+
+
+ set a constraint flags for this joint to a specified value.
+
+
+ get the constraint flags for this joint. the constraint flags
+
+
+ set the inverse mass scale for actor0.
+
+
+ get the inverse mass scale for actor0. inverse mass scale for actor0
+
+
+ set the inverse inertia scale for actor0.
+
+
+ get the inverse inertia scale for actor0. inverse inertia scale for actor0
+
+
+ set the inverse mass scale for actor1.
+
+
+ get the inverse mass scale for actor1. inverse mass scale for actor1
+
+
+ set the inverse inertia scale for actor1.
+
+
+ get the inverse inertia scale for actor1. inverse inertia scale for actor1
+
+
+ Retrieves the PxConstraint corresponding to this joint. This can be used to determine, among other things, the force applied at the joint. the constraint
+
+
+ Sets a name string for the object that can be retrieved with getName(). This is for debugging and is not used by the SDK. The string is not copied by the SDK, only the pointer is stored.
+
+
+ Retrieves the name string set with setName(). Name string associated with object.
+
+
+ Deletes the joint. This call does not wake up the connected rigid bodies.
+
+
+ Retrieves the scene which this joint belongs to. Owner Scene. NULL if not part of a scene.
+
+
+ Put class meta data in stream, used for serialization
+
+
+ Helper function to setup a joint's global frame This replaces the following functions from previous SDK versions: void NxJointDesc::setGlobalAnchor(const NxVec3 & wsAnchor); void NxJointDesc::setGlobalAxis(const NxVec3 & wsAxis); The function sets the joint's localPose using world-space input parameters.
+
+
+ Create a distance Joint.
+
+
+ Return the current distance of the joint
+
+
+ Set the allowed minimum distance for the joint. The minimum distance must be no more than the maximum distance Default 0.0f Range [0, PX_MAX_F32)
+
+
+ Get the allowed minimum distance for the joint. the allowed minimum distance
+
+
+ Set the allowed maximum distance for the joint. The maximum distance must be no less than the minimum distance. Default 0.0f Range [0, PX_MAX_F32)
+
+
+ Get the allowed maximum distance for the joint. the allowed maximum distance
+
+
+ Set the error tolerance of the joint.
+
+
+ Get the error tolerance of the joint. the distance beyond the joint's [min, max] range before the joint becomes active. Default 0.25f * PxTolerancesScale::length Range (0, PX_MAX_F32) This value should be used to ensure that if the minimum distance is zero and the spring function is in use, the rest length of the spring is non-zero.
+
+
+ Set the strength of the joint spring. The spring is used if enabled, and the distance exceeds the range [min-error, max+error]. Default 0.0f Range [0, PX_MAX_F32)
+
+
+ Get the strength of the joint spring. stiffness the spring strength of the joint
+
+
+ Set the damping of the joint spring. The spring is used if enabled, and the distance exceeds the range [min-error, max+error]. Default 0.0f Range [0, PX_MAX_F32)
+
+
+ Get the damping of the joint spring. the degree of damping of the joint spring of the joint
+
+
+ Set the contact distance for the min & max distance limits. This is similar to the PxJointLimitParameters::contactDistance parameter for regular limits. The two most common values are 0 and infinite. Infinite means the internal constraints are always created, resulting in the best simulation quality but slower performance. Zero means the internal constraints are only created when the limits are violated, resulting in best performance but worse simulation quality. Default 0.0f Range [0, PX_MAX_F32)
+
+
+ Get the contact distance. the contact distance
+
+
+ Set the flags specific to the Distance Joint. Default PxDistanceJointFlag::eMAX_DISTANCE_ENABLED
+
+
+ Set a single flag specific to a Distance Joint to true or false.
+
+
+ Get the flags specific to the Distance Joint. the joint flags
+
+
+ Returns string name of PxDistanceJoint, used for serialization
+
+
+ Create a distance Joint.
+
+
+ Set the current contact of the joint
+
+
+ Set the current contact normal of the joint
+
+
+ Set the current penetration of the joint
+
+
+ Return the current contact of the joint
+
+
+ Return the current contact normal of the joint
+
+
+ Return the current penetration value of the joint
+
+
+ Returns string name of PxContactJoint, used for serialization
+
+
+ Create a fixed joint.
+
+
+ Returns string name of PxFixedJoint, used for serialization
+
+
+ Returns true if the current settings are valid. true if the current settings are valid
+
+
+ construct a linear hard limit
+
+
+ construct a linear soft limit
+
+
+ Returns true if the limit is valid true if the current settings are valid
+
+
+ Construct a linear hard limit pair. The lower distance value must be less than the upper distance value.
+
+
+ construct a linear soft limit pair
+
+
+ Returns true if the limit is valid. true if the current settings are valid
+
+
+ construct an angular hard limit pair. The lower value must be less than the upper value.
+
+
+ construct an angular soft limit pair. The lower value must be less than the upper value.
+
+
+ Returns true if the limit is valid. true if the current settings are valid
+
+
+ Construct a cone hard limit.
+
+
+ Construct a cone soft limit.
+
+
+ Returns true if the limit is valid. true if the current settings are valid
+
+
+ Construct a pyramid hard limit.
+
+
+ Construct a pyramid soft limit.
+
+
+ Returns true if the limit is valid. true if the current settings are valid
+
+
+ Create a prismatic joint.
+
+
+ returns the displacement of the joint along its axis.
+
+
+ returns the velocity of the joint along its axis
+
+
+ sets the joint limit parameters. The limit range is [-PX_MAX_F32, PX_MAX_F32], but note that the width of the limit (upper-lower) must also be a valid float.
+
+
+ gets the joint limit parameters.
+
+
+ Set the flags specific to the Prismatic Joint. Default PxPrismaticJointFlags(0)
+
+
+ Set a single flag specific to a Prismatic Joint to true or false.
+
+
+ Get the flags specific to the Prismatic Joint. the joint flags
+
+
+ Returns string name of PxPrismaticJoint, used for serialization
+
+
+ Create a revolute joint.
+
+
+ return the angle of the joint, in the range (-2*Pi, 2*Pi]
+
+
+ return the velocity of the joint
+
+
+ set the joint limit parameters. The limit is activated using the flag PxRevoluteJointFlag::eLIMIT_ENABLED The limit angle range is (-2*Pi, 2*Pi).
+
+
+ get the joint limit parameters. the joint limit parameters
+
+
+ set the target velocity for the drive model. The motor will only be able to reach this velocity if the maxForce is sufficiently large. If the joint is spinning faster than this velocity, the motor will actually try to brake (see PxRevoluteJointFlag::eDRIVE_FREESPIN.) The sign of this variable determines the rotation direction, with positive values going the same way as positive joint angles. Setting a very large target velocity may cause undesirable results. Range: (-PX_MAX_F32, PX_MAX_F32) Default: 0.0
+
+
+ gets the target velocity for the drive model. the drive target velocity
+
+
+ sets the maximum torque the drive can exert. The value set here may be used either as an impulse limit or a force limit, depending on the flag PxConstraintFlag::eDRIVE_LIMITS_ARE_FORCES Range: [0, PX_MAX_F32) Default: PX_MAX_F32
+
+
+ gets the maximum torque the drive can exert. the torque limit
+
+
+ sets the gear ratio for the drive. When setting up the drive constraint, the velocity of the first actor is scaled by this value, and its response to drive torque is scaled down. So if the drive target velocity is zero, the second actor will be driven to the velocity of the first scaled by the gear ratio Range: [0, PX_MAX_F32) Default: 1.0
+
+
+ gets the gear ratio. the drive gear ratio
+
+
+ sets the flags specific to the Revolute Joint. Default PxRevoluteJointFlags(0)
+
+
+ sets a single flag specific to a Revolute Joint.
+
+
+ gets the flags specific to the Revolute Joint. the joint flags
+
+
+ Returns string name of PxRevoluteJoint, used for serialization
+
+
+ Create a spherical joint.
+
+
+ Set the limit cone. If enabled, the limit cone will constrain the angular movement of the joint to lie within an elliptical cone. the limit cone
+
+
+ Get the limit cone.
+
+
+ get the swing angle of the joint from the Y axis
+
+
+ get the swing angle of the joint from the Z axis
+
+
+ Set the flags specific to the Spherical Joint. Default PxSphericalJointFlags(0)
+
+
+ Set a single flag specific to a Spherical Joint to true or false.
+
+
+ Get the flags specific to the Spherical Joint. the joint flags
+
+
+ Returns string name of PxSphericalJoint, used for serialization
+
+
+ Create a D6 joint.
+
+
+ default constructor for PxD6JointDrive.
+
+
+ constructor a PxD6JointDrive.
+
+
+ returns true if the drive is valid
+
+
+ Set the motion type around the specified axis. Each axis may independently specify that the degree of freedom is locked (blocking relative movement along or around this axis), limited by the corresponding limit, or free. Default: all degrees of freedom are locked
+
+
+ Get the motion type around the specified axis. the motion type around the specified axis
+
+
+ get the twist angle of the joint, in the range (-2*Pi, 2*Pi]
+
+
+ get the swing angle of the joint from the Y axis
+
+
+ get the swing angle of the joint from the Z axis
+
+
+ Set the distance limit for the joint. A single limit constraints all linear limited degrees of freedom, forming a linear, circular or spherical constraint on motion depending on the number of limited degrees. This is similar to a distance limit.
+
+
+ Get the distance limit for the joint. the distance limit structure
+
+
+ Set the linear limit for a given linear axis. This function extends the previous setDistanceLimit call with the following features: - there can be a different limit for each linear axis - each limit is defined by two values, i.e. it can now be asymmetric This can be used to create prismatic joints similar to PxPrismaticJoint, or point-in-quad joints, or point-in-box joints.
+
+
+ Get the linear limit for a given linear axis. the linear limit pair structure from desired axis
+
+
+ Set the twist limit for the joint. The twist limit controls the range of motion around the twist axis. The limit angle range is (-2*Pi, 2*Pi).
+
+
+ Get the twist limit for the joint. the twist limit structure
+
+
+ Set the swing cone limit for the joint. The cone limit is used if either or both swing axes are limited. The extents are symmetrical and measured in the frame of the parent. If only one swing degree of freedom is limited, the corresponding value from the cone limit defines the limit range.
+
+
+ Get the cone limit for the joint. the swing limit structure
+
+
+ Set a pyramidal swing limit for the joint. The pyramid limits will only be used in the following cases: - both swing Y and Z are limited. The limit shape is then a pyramid. - Y is limited and Z is locked, or vice versa. The limit shape is an asymmetric angular section, similar to what is supported for the twist axis. The remaining cases (Y limited and Z is free, or vice versa) are not supported.
+
+
+ Get the pyramidal swing limit for the joint. the swing limit structure
+
+
+ Set the drive parameters for the specified drive type. Default The default drive spring and damping values are zero, the force limit is zero, and no flags are set.
+
+
+ Get the drive parameters for the specified drive type.
+
+
+ Set the drive goal pose The goal is relative to the constraint frame of actor[0] Default the identity transform
+
+
+ Get the drive goal pose.
+
+
+ Set the target goal velocity for drive. The velocity is measured in the constraint frame of actor[0]
+
+
+ Get the target goal velocity for joint drive.
+
+
+ Set the linear tolerance threshold for projection. Projection is enabled if PxConstraintFlag::ePROJECTION is set for the joint. If the joint separates by more than this distance along its locked degrees of freedom, the solver will move the bodies to close the distance. Setting a very small tolerance may result in simulation jitter or other artifacts. Sometimes it is not possible to project (for example when the joints form a cycle). Range: [0, PX_MAX_F32) Default: 1e10f
+
+
+ Get the linear tolerance threshold for projection. the linear tolerance threshold
+
+
+ Set the angular tolerance threshold for projection. Projection is enabled if PxConstraintFlag::ePROJECTION is set for the joint. If the joint deviates by more than this angle around its locked angular degrees of freedom, the solver will move the bodies to close the angle. Setting a very small tolerance may result in simulation jitter or other artifacts. Sometimes it is not possible to project (for example when the joints form a cycle). Range: [0,Pi] Default: Pi Angular projection is implemented only for the case of two or three locked angular degrees of freedom.
+
+
+ Get the angular tolerance threshold for projection. tolerance the angular tolerance threshold in radians
+
+
+ Returns string name of PxD6Joint, used for serialization
+
+
+ Create a gear Joint.
+
+
+ Set the hinge/revolute joints connected by the gear joint. The passed joints can be either PxRevoluteJoint, PxD6Joint or PxArticulationJointReducedCoordinate. The joints must define degrees of freedom around the twist axis. They cannot be null. Note that these joints are only used to compute the positional error correction term, used to adjust potential drift between jointed actors. The gear joint can run without calling this function, but in that case some visible overlap may develop over time between the teeth of the gear meshes. Calling this function resets the internal positional error correction term. true if success
+
+
+ Set the desired gear ratio. For two gears with n0 and n1 teeth respectively, the gear ratio is n0/n1. You may need to use a negative gear ratio if the joint frames of involved actors are not oriented in the same direction. Calling this function resets the internal positional error correction term.
+
+
+ Get the gear ratio. Current ratio
+
+
+ Create a rack & pinion Joint.
+
+
+ Set the hinge & prismatic joints connected by the rack & pinion joint. The passed hinge joint can be either PxRevoluteJoint, PxD6Joint or PxArticulationJointReducedCoordinate. It cannot be null. The passed prismatic joint can be either PxPrismaticJoint or PxD6Joint. It cannot be null. Note that these joints are only used to compute the positional error correction term, used to adjust potential drift between jointed actors. The rack & pinion joint can run without calling this function, but in that case some visible overlap may develop over time between the teeth of the rack & pinion meshes. Calling this function resets the internal positional error correction term. true if success
+
+
+ Set the desired ratio directly. You may need to use a negative gear ratio if the joint frames of involved actors are not oriented in the same direction. Calling this function resets the internal positional error correction term.
+
+
+ Get the ratio. Current ratio
+
+
+ Set the desired ratio indirectly. This is a simple helper function that computes the ratio from passed data: ratio = (PI*2*nbRackTeeth)/(rackLength*nbPinionTeeth) Calling this function resets the internal positional error correction term. true if success
+
+
+ Implementation of a simple filter shader that emulates PhysX 2.8.x filtering This shader provides the following logic: If one of the two filter objects is a trigger, the pair is acccepted and [`PxPairFlag::eTRIGGER_DEFAULT`] will be used for trigger reports Else, if the filter mask logic (see further below) discards the pair it will be suppressed ([`PxFilterFlag::eSUPPRESS`]) Else, the pair gets accepted and collision response gets enabled ([`PxPairFlag::eCONTACT_DEFAULT`]) Filter mask logic: Given the two [`PxFilterData`] structures fd0 and fd1 of two collision objects, the pair passes the filter if the following conditions are met: 1) Collision groups of the pair are enabled 2) Collision filtering equation is satisfied
+
+
+ Determines if collision detection is performed between a pair of groups Collision group is an integer between 0 and 31. True if the groups could collide
+
+
+ Specifies if collision should be performed by a pair of groups Collision group is an integer between 0 and 31.
+
+
+ Retrieves the value set with PxSetGroup() Collision group is an integer between 0 and 31. The collision group this actor belongs to
+
+
+ Sets which collision group this actor is part of Collision group is an integer between 0 and 31.
+
+
+ Retrieves filtering operation. See comments for PxGroupsMask
+
+
+ Setups filtering operations. See comments for PxGroupsMask
+
+
+ Retrieves filtering's boolean value. See comments for PxGroupsMask flag Boolean value for filter.
+
+
+ Setups filtering's boolean value. See comments for PxGroupsMask
+
+
+ Gets filtering constant K0 and K1. See comments for PxGroupsMask
+
+
+ Setups filtering's K0 and K1 value. See comments for PxGroupsMask
+
+
+ Gets 64-bit mask used for collision filtering. See comments for PxGroupsMask The group mask for the actor.
+
+
+ Sets 64-bit mask used for collision filtering. See comments for PxGroupsMask
+
+
+ Creates a new shape with default properties and a list of materials and adds it to the list of shapes of this actor. This is equivalent to the following ```cpp // reference count is 1 PxShape* shape(...) = PxGetPhysics().createShape(...); // increments reference count actor->attachShape(shape); // releases user reference, leaving reference count at 1 shape->release(); ``` As a consequence, detachShape() will result in the release of the last reference, and the shape will be deleted. The default shape flags to be set are: eVISUALIZATION, eSIMULATION_SHAPE, eSCENE_QUERY_SHAPE (see [`PxShapeFlag`]). Triangle mesh, heightfield or plane geometry shapes configured as eSIMULATION_SHAPE are not supported for non-kinematic PxRigidDynamic instances. Creating compounds with a very large number of shapes may adversely affect performance and stability. Sleeping: Does NOT wake the actor up automatically. The newly created shape.
+
+
+ Creates a new shape with default properties and a single material adds it to the list of shapes of this actor. This is equivalent to the following ```cpp // reference count is 1 PxShape* shape(...) = PxGetPhysics().createShape(...); // increments reference count actor->attachShape(shape); // releases user reference, leaving reference count at 1 shape->release(); ``` As a consequence, detachShape() will result in the release of the last reference, and the shape will be deleted. The default shape flags to be set are: eVISUALIZATION, eSIMULATION_SHAPE, eSCENE_QUERY_SHAPE (see [`PxShapeFlag`]). Triangle mesh, heightfield or plane geometry shapes configured as eSIMULATION_SHAPE are not supported for non-kinematic PxRigidDynamic instances. Creating compounds with a very large number of shapes may adversely affect performance and stability. Sleeping: Does NOT wake the actor up automatically. The newly created shape.
+
+
+ Gets a list of bounds based on shapes in rigid actor. This list can be used to cook/create bounding volume hierarchy though PxCooking API.
+
+
+ Convenience function to create a PxBVH object from a PxRigidActor. The computed PxBVH can then be used in PxScene::addActor() or PxAggregate::addActor(). After adding the actor & BVH to the scene/aggregate, release the PxBVH object by calling PxBVH::release(). The PxBVH for this actor.
+
+
+ Default constructor.
+
+
+ Construct from individual elements.
+
+
+ Compute mass properties based on a provided geometry structure. This constructor assumes the geometry has a density of 1. Mass and inertia tensor scale linearly with density.
+
+
+ Translate the center of mass by a given vector and adjust the inertia tensor accordingly.
+
+
+ Get the entries of the diagonalized inertia tensor and the corresponding reference rotation. The entries of the diagonalized inertia tensor.
+
+
+ Translate an inertia tensor using the parallel axis theorem The translated inertia tensor.
+
+
+ Rotate an inertia tensor around the center of mass The rotated inertia tensor.
+
+
+ Non-uniform scaling of the inertia tensor The scaled inertia tensor.
+
+
+ Sum up individual mass properties. The summed up mass properties.
+
+
+ Computation of mass properties for a rigid body actor To simulate a dynamic rigid actor, the SDK needs a mass and an inertia tensor. This method offers functionality to compute the necessary mass and inertia properties based on the shapes declared in the PxRigidBody descriptor and some additionally specified parameters. For each shape, the shape geometry, the shape positioning within the actor and the specified shape density are used to compute the body's mass and inertia properties. Shapes without PxShapeFlag::eSIMULATION_SHAPE set are ignored unless includeNonSimShapes is true. Shapes with plane, triangle mesh or heightfield geometry and PxShapeFlag::eSIMULATION_SHAPE set are not allowed for PxRigidBody collision. This method will set the mass, center of mass, and inertia tensor if no collision shapes are found, the inertia tensor is set to (1,1,1) and the mass to 1 if massLocalPose is non-NULL, the rigid body's center of mass parameter will be set to the user provided value (massLocalPose) and the inertia tensor will be resolved at that point. If all shapes of the actor have the same density then the overloaded method updateMassAndInertia() with a single density parameter can be used instead. Boolean. True on success else false.
+
+
+ Computation of mass properties for a rigid body actor See previous method for details. Boolean. True on success else false.
+
+
+ Computation of mass properties for a rigid body actor This method sets the mass, inertia and center of mass of a rigid body. The mass is set to the sum of all user-supplied shape mass values, and the inertia and center of mass are computed according to the rigid body's shapes and the per shape mass input values. If no collision shapes are found, the inertia tensor is set to (1,1,1) If a single mass value should be used for the actor as a whole then the overloaded method setMassAndUpdateInertia() with a single mass parameter can be used instead. Boolean. True on success else false.
+
+
+ Computation of mass properties for a rigid body actor This method sets the mass, inertia and center of mass of a rigid body. The mass is set to the user-supplied value, and the inertia and center of mass are computed according to the rigid body's shapes and the input mass. If no collision shapes are found, the inertia tensor is set to (1,1,1) Boolean. True on success else false.
+
+
+ Compute the mass, inertia tensor and center of mass from a list of shapes. The mass properties from the combined shapes.
+
+
+ Applies a force (or impulse) defined in the global coordinate frame, acting at a particular point in global coordinates, to the actor. Note that if the force does not act along the center of mass of the actor, this will also add the corresponding torque. Because forces are reset at the end of every timestep, you can maintain a total external force on an object by calling this once every frame. if this call is used to apply a force or impulse to an articulation link, only the link is updated, not the entire articulation ::PxForceMode determines if the force is to be conventional or impulsive. Only eFORCE and eIMPULSE are supported, as the force required to produce a given velocity change or acceleration is underdetermined given only the desired change at a given point. Sleeping: This call wakes the actor if it is sleeping and the wakeup parameter is true (default).
+
+
+ Applies a force (or impulse) defined in the global coordinate frame, acting at a particular point in local coordinates, to the actor. Note that if the force does not act along the center of mass of the actor, this will also add the corresponding torque. Because forces are reset at the end of every timestep, you can maintain a total external force on an object by calling this once every frame. if this call is used to apply a force or impulse to an articulation link, only the link is updated, not the entire articulation ::PxForceMode determines if the force is to be conventional or impulsive. Only eFORCE and eIMPULSE are supported, as the force required to produce a given velocity change or acceleration is underdetermined given only the desired change at a given point. Sleeping: This call wakes the actor if it is sleeping and the wakeup parameter is true (default).
+
+
+ Applies a force (or impulse) defined in the actor local coordinate frame, acting at a particular point in global coordinates, to the actor. Note that if the force does not act along the center of mass of the actor, this will also add the corresponding torque. Because forces are reset at the end of every timestep, you can maintain a total external force on an object by calling this once every frame. if this call is used to apply a force or impulse to an articulation link, only the link is updated, not the entire articulation ::PxForceMode determines if the force is to be conventional or impulsive. Only eFORCE and eIMPULSE are supported, as the force required to produce a given velocity change or acceleration is underdetermined given only the desired change at a given point. Sleeping: This call wakes the actor if it is sleeping and the wakeup parameter is true (default).
+
+
+ Applies a force (or impulse) defined in the actor local coordinate frame, acting at a particular point in local coordinates, to the actor. Note that if the force does not act along the center of mass of the actor, this will also add the corresponding torque. Because forces are reset at the end of every timestep, you can maintain a total external force on an object by calling this once every frame. if this call is used to apply a force or impulse to an articulation link, only the link is updated, not the entire articulation ::PxForceMode determines if the force is to be conventional or impulsive. Only eFORCE and eIMPULSE are supported, as the force required to produce a given velocity change or acceleration is underdetermined given only the desired change at a given point. Sleeping: This call wakes the actor if it is sleeping and the wakeup parameter is true (default).
+
+
+ Computes the velocity of a point given in world coordinates if it were attached to the specified body and moving with it. The velocity of point in the global frame.
+
+
+ Computes the velocity of a point given in local coordinates if it were attached to the specified body and moving with it. The velocity of point in the local frame.
+
+
+ Computes the velocity of a point (offset from the origin of the body) given in world coordinates if it were attached to the specified body and moving with it. The velocity of point (offset from the origin of the body) in the global frame.
+
+
+ Compute the change to linear and angular velocity that would occur if an impulsive force and torque were to be applied to a specified rigid body. The rigid body is left unaffected unless a subsequent independent call is executed that actually applies the computed changes to velocity and angular velocity. if this call is used to determine the velocity delta for an articulation link, only the mass properties of the link are taken into account.
+
+
+ Computes the linear and angular velocity change vectors for a given impulse at a world space position taking a mass and inertia scale into account This function is useful for extracting the respective linear and angular velocity changes from a contact or joint when the mass/inertia ratios have been adjusted. if this call is used to determine the velocity delta for an articulation link, only the mass properties of the link are taken into account.
+
+
+ Computes the linear and angular impulse vectors for a given impulse at a world space position taking a mass and inertia scale into account This function is useful for extracting the respective linear and angular impulses from a contact or joint when the mass/inertia ratios have been adjusted.
+
+
+ Performs a linear sweep through space with the body's geometry objects. Supported geometries are: box, sphere, capsule, convex. Other geometry types will be ignored. If eTOUCH is returned from the filter callback, it will trigger an error and the hit will be discarded. The function sweeps all shapes attached to a given rigid body through space and reports the nearest object in the scene which intersects any of of the shapes swept paths. Information about the closest intersection is written to a [`PxSweepHit`] structure. True if a blocking hit was found.
+
+
+ Performs a linear sweep through space with the body's geometry objects, returning all overlaps. Supported geometries are: box, sphere, capsule, convex. Other geometry types will be ignored. This function sweeps all shapes attached to a given rigid body through space and reports all objects in the scene that intersect any of the shapes' swept paths until there are no more objects to report or a blocking hit is encountered. the number of touching hits. If overflow is set to true, the results are incomplete. In case of overflow there are also no guarantees that all touching hits returned are closer than the blocking hit.
+
+
+ Retrieves the world space pose of the shape. Global pose of shape.
+
+
+ Raycast test against the shape. Number of hits between the ray and the shape
+
+
+ Test overlap between the shape and a geometry object True if the shape overlaps the geometry object
+
+
+ Sweep a geometry object against the shape. Currently only box, sphere, capsule and convex mesh shapes are supported, i.e. the swept geometry object must be one of those types. True if the swept geometry object hits the shape
+
+
+ Retrieves the axis aligned bounding box enclosing the shape. The shape's bounding box.
+
+
+ Find the mesh triangles which touch the specified geometry object. Number of overlaps found. Triangle indices can then be accessed through the [`getResults`]() function.
+
+
+ Find the height field triangles which touch the specified geometry object. Number of overlaps found. Triangle indices can then be accessed through the [`getResults`]() function.
+
+
+ Retrieves array of triangle indices after a findOverlap call. Indices of touched triangles
+
+
+ Retrieves number of triangle indices after a findOverlap call. Number of touched triangles
+
+
+ Computes an approximate minimum translational distance (MTD) between a geometry object and a mesh. This iterative function computes an approximate vector that can be used to depenetrate a geom object from a triangle mesh. Returned depenetration vector should be applied to 'geom', to get out of the mesh. The function works best when the amount of overlap between the geom object and the mesh is small. If the geom object's center goes inside the mesh, backface culling usually kicks in, no overlap is detected, and the function does not compute an MTD vector. The function early exits if no overlap is detected after a depenetration attempt. This means that if maxIter = N, the code will attempt at most N iterations but it might exit earlier if depenetration has been successful. Usually N = 4 gives good results. True if the MTD has successfully been computed, i.e. if objects do overlap.
+
+
+ Computes an approximate minimum translational distance (MTD) between a geometry object and a heightfield. This iterative function computes an approximate vector that can be used to depenetrate a geom object from a heightfield. Returned depenetration vector should be applied to 'geom', to get out of the heightfield. The function works best when the amount of overlap between the geom object and the mesh is small. If the geom object's center goes inside the heightfield, backface culling usually kicks in, no overlap is detected, and the function does not compute an MTD vector. The function early exits if no overlap is detected after a depenetration attempt. This means that if maxIter = N, the code will attempt at most N iterations but it might exit earlier if depenetration has been successful. Usually N = 4 gives good results. True if the MTD has successfully been computed, i.e. if objects do overlap.
+
+
+ Returns whether the collection is serializable with the externalReferences collection. Some definitions to explain whether a collection can be serialized or not: For definitions of requires and complete see [`PxSerialization::complete`] A serializable object is subordinate if it cannot be serialized on its own The following objects are subordinate: - articulation links - articulation joints - joints A collection C can be serialized with external references collection D iff - C is complete relative to D (no dangling references) - Every object in D required by an object in C has a valid ID (no unnamed references) - Every subordinate object in C is required by another object in C (no orphans) Whether the collection is serializable
+
+
+ Adds to a collection all objects such that it can be successfully serialized. A collection C is complete relative to an other collection D if every object required by C is either in C or D. This function adds objects to a collection, such that it becomes complete with respect to the exceptFor collection. Completeness is needed for serialization. See [`PxSerialization::serializeCollectionToBinary`], [`PxSerialization::serializeCollectionToXml`]. Sdk objects require other sdk object according to the following rules: - joints require their actors and constraint - rigid actors require their shapes - shapes require their material(s) and mesh (triangle mesh, convex mesh or height field), if any - articulations require their links and joints - aggregates require their actors If followJoints is specified another rule is added: - actors require their joints Specifying followJoints will make whole jointed actor chains being added to the collection. Following chains is interrupted whenever a object in exceptFor is encountered.
+
+
+ Creates PxSerialObjectId values for unnamed objects in a collection. Creates PxSerialObjectId names for unnamed objects in a collection starting at a base value and incrementing, skipping values that are already assigned to objects in the collection.
+
+
+ Creates a PxCollection from XML data. a pointer to a PxCollection if successful or NULL if it failed.
+
+
+ Deserializes a PxCollection from memory. Creates a collection from memory. If the collection has external dependencies another collection can be provided to resolve these. The memory block provided has to be 128 bytes aligned and contain a contiguous serialized collection as written by PxSerialization::serializeCollectionToBinary. The contained binary data needs to be compatible with the current binary format version which is defined by \"PX_PHYSICS_VERSION_MAJOR.PX_PHYSICS_VERSION_MINOR.PX_PHYSICS_VERSION_BUGFIX-PX_BINARY_SERIAL_VERSION\". For a list of compatible sdk releases refer to the documentation of PX_BINARY_SERIAL_VERSION.
+
+
+ Serializes a physics collection to an XML output stream. The collection to be serialized needs to be complete Serialization of objects in a scene that is simultaneously being simulated is not supported and leads to undefined behavior. true if the collection is successfully serialized.
+
+
+ Serializes a collection to a binary stream. Serializes a collection to a stream. In order to resolve external dependencies the externalReferences collection has to be provided. Optionally names of objects that where set for example with [`PxActor::setName`] are serialized along with the objects. The collection can be successfully serialized if isSerializable(collection) returns true. See [`isSerializable`]. The implementation of the output stream needs to fulfill the requirements on the memory block input taken by PxSerialization::createCollectionFromBinary. Serialization of objects in a scene that is simultaneously being simulated is not supported and leads to undefined behavior. Whether serialization was successful
+
+
+ Creates an application managed registry for serialization. PxSerializationRegistry instance.
+
+
+ Deletes the dispatcher. Do not keep a reference to the deleted instance.
+
+
+ Enables profiling at task level. By default enabled only in profiling builds.
+
+
+ Checks if profiling is enabled at task level. True if tasks should be profiled.
+
+
+ Create default dispatcher, extensions SDK needs to be initialized first. numThreads may be zero in which case no worker thread are initialized and simulation tasks will be executed on the thread that calls PxScene::simulate() yieldProcessorCount must be greater than zero if eYIELD_PROCESSOR is the chosen mode and equal to zero for all other modes. eYIELD_THREAD and eYIELD_PROCESSOR modes will use compute resources even if the simulation is not running. It is left to users to keep threads inactive, if so desired, when no simulation is running.
+
+
+ Builds smooth vertex normals over a mesh. - \"smooth\" because smoothing groups are not supported here - takes angles into account for correct cube normals computation To use 32bit indices pass a pointer in dFaces and set wFaces to zero. Alternatively pass a pointer to wFaces and set dFaces to zero. True on success.
+
+
+ simple method to create a PxRigidDynamic actor with a single PxShape. a new dynamic actor with the PxRigidBodyFlag, or NULL if it could not be constructed
+
+
+ simple method to create a PxRigidDynamic actor with a single PxShape. a new dynamic actor with the PxRigidBodyFlag, or NULL if it could not be constructed
+
+
+ simple method to create a kinematic PxRigidDynamic actor with a single PxShape. unlike PxCreateDynamic, the geometry is not restricted to box, capsule, sphere or convex. However, kinematics of other geometry types may not participate in simulation collision and may be used only for triggers or scene queries of moving objects under animation control. In this case the density parameter will be ignored and the created shape will be set up as a scene query only shape (see [`PxShapeFlag::eSCENE_QUERY_SHAPE`]) a new dynamic actor with the PxRigidBodyFlag::eKINEMATIC set, or NULL if it could not be constructed
+
+
+ simple method to create a kinematic PxRigidDynamic actor with a single PxShape. unlike PxCreateDynamic, the geometry is not restricted to box, capsule, sphere or convex. However, kinematics of other geometry types may not participate in simulation collision and may be used only for triggers or scene queries of moving objects under animation control. In this case the density parameter will be ignored and the created shape will be set up as a scene query only shape (see [`PxShapeFlag::eSCENE_QUERY_SHAPE`]) a new dynamic actor with the PxRigidBodyFlag::eKINEMATIC set, or NULL if it could not be constructed
+
+
+ simple method to create a PxRigidStatic actor with a single PxShape. a new static actor, or NULL if it could not be constructed
+
+
+ simple method to create a PxRigidStatic actor with a single PxShape. a new static actor, or NULL if it could not be constructed
+
+
+ create a shape by copying attributes from another shape The function clones a PxShape. The following properties are copied: - geometry - flags - materials - actor-local pose - contact offset - rest offset - simulation filter data - query filter data - torsional patch radius - minimum torsional patch radius The following are not copied and retain their default values: - name - user data the newly-created rigid static
+
+
+ create a static body by copying attributes from another rigid actor The function clones a PxRigidDynamic or PxRigidStatic as a PxRigidStatic. A uniform scale is applied. The following properties are copied: - shapes - actor flags - owner client and client behavior bits - dominance group The following are not copied and retain their default values: - name - joints or observers - aggregate or scene membership - user data Transforms are not copied with bit-exact accuracy. the newly-created rigid static
+
+
+ create a dynamic body by copying attributes from an existing body The following properties are copied: - shapes - actor flags, rigidDynamic flags and rigidDynamic lock flags - mass, moment of inertia, and center of mass frame - linear and angular velocity - linear and angular damping - maximum linear velocity - maximum angular velocity - position and velocity solver iterations - maximum depenetration velocity - sleep threshold - contact report threshold - dominance group - owner client and client behavior bits - name pointer - kinematic target The following are not copied and retain their default values: - name - joints or observers - aggregate or scene membership - sleep timer - user data Transforms are not copied with bit-exact accuracy. the newly-created rigid static
+
+
+ create a plane actor. The plane equation is n.x + d = 0 a new static actor, or NULL if it could not be constructed
+
+
+ scale a rigid actor by a uniform scale The geometry and relative positions of the actor are multiplied by the given scale value. If the actor is a rigid body or an articulation link and the scaleMassProps value is true, the mass properties are scaled assuming the density is constant: the center of mass is linearly scaled, the mass is multiplied by the cube of the scale, and the inertia tensor by the fifth power of the scale.
+
+
+ Creates regions for PxSceneDesc, from a global box. This helper simply subdivides the given global box into a 2D grid of smaller boxes. Each one of those smaller boxes is a region of interest for the broadphase. There are nbSubdiv*nbSubdiv regions in the 2D grid. The function does not subdivide along the given up axis. This is the simplest setup one can use with PxBroadPhaseType::eMBP. A more sophisticated setup would try to cover the game world with a non-uniform set of regions (i.e. not just a grid). number of regions written out to the 'regions' array
+
+
+ Raycast returning any blocking hit, not necessarily the closest. Returns whether any rigid actor is hit along the ray. Shooting a ray from within an object leads to different results depending on the shape type. Please check the details in article SceneQuery. User can ignore such objects by using one of the provided filter mechanisms. True if a blocking hit was found.
+
+
+ Raycast returning a single result. Returns the first rigid actor that is hit along the ray. Data for a blocking hit will be returned as specified by the outputFlags field. Touching hits will be ignored. Shooting a ray from within an object leads to different results depending on the shape type. Please check the details in article SceneQuery. User can ignore such objects by using one of the provided filter mechanisms. True if a blocking hit was found.
+
+
+ Raycast returning multiple results. Find all rigid actors that get hit along the ray. Each result contains data as specified by the outputFlags field. Touching hits are not ordered. Shooting a ray from within an object leads to different results depending on the shape type. Please check the details in article SceneQuery. User can ignore such objects by using one of the provided filter mechanisms. Number of hits in the buffer, or -1 if the buffer overflowed.
+
+
+ Sweep returning any blocking hit, not necessarily the closest. Returns whether any rigid actor is hit along the sweep path. If a shape from the scene is already overlapping with the query shape in its starting position, behavior is controlled by the PxSceneQueryFlag::eINITIAL_OVERLAP flag. True if a blocking hit was found.
+
+
+ Sweep returning a single result. Returns the first rigid actor that is hit along the ray. Data for a blocking hit will be returned as specified by the outputFlags field. Touching hits will be ignored. If a shape from the scene is already overlapping with the query shape in its starting position, behavior is controlled by the PxSceneQueryFlag::eINITIAL_OVERLAP flag. True if a blocking hit was found.
+
+
+ Sweep returning multiple results. Find all rigid actors that get hit along the sweep. Each result contains data as specified by the outputFlags field. Touching hits are not ordered. If a shape from the scene is already overlapping with the query shape in its starting position, behavior is controlled by the PxSceneQueryFlag::eINITIAL_OVERLAP flag. Number of hits in the buffer, or -1 if the buffer overflowed.
+
+
+ Test overlap between a geometry and objects in the scene. Filtering: Overlap tests do not distinguish between touching and blocking hit types. Both get written to the hit buffer. PxHitFlag::eMESH_MULTIPLE and PxHitFlag::eMESH_BOTH_SIDES have no effect in this case Number of hits in the buffer, or -1 if the buffer overflowed.
+
+
+ Test returning, for a given geometry, any overlapping object in the scene. Filtering: Overlap tests do not distinguish between touching and blocking hit types. Both trigger a hit. PxHitFlag::eMESH_MULTIPLE and PxHitFlag::eMESH_BOTH_SIDES have no effect in this case True if an overlap was found.
+
+
+ Performs a raycast against objects in the scene. Touching hits are not ordered. Shooting a ray from within an object leads to different results depending on the shape type. Please check the details in article SceneQuery. User can ignore such objects by using one of the provided filter mechanisms. This query call writes to a list associated with the query object and is NOT thread safe (for performance reasons there is no lock and overlapping writes from different threads may result in undefined behavior). Returns a PxRaycastBuffer pointer that will store the result of the query after execute() is completed. This will point either to an element of the buffer allocated on construction or to a user buffer passed to the constructor.
+
+
+ Performs a sweep test against objects in the scene. Touching hits are not ordered. If a shape from the scene is already overlapping with the query shape in its starting position, the hit is returned unless eASSUME_NO_INITIAL_OVERLAP was specified. This query call writes to a list associated with the query object and is NOT thread safe (for performance reasons there is no lock and overlapping writes from different threads may result in undefined behavior). Returns a PxSweepBuffer pointer that will store the result of the query after execute() is completed. This will point either to an element of the buffer allocated on construction or to a user buffer passed to the constructor.
+
+
+ Performs an overlap test of a given geometry against objects in the scene. Filtering: returning eBLOCK from user filter for overlap queries will cause a warning (see [`PxQueryHitType`]). eBLOCK should not be returned from user filters for overlap(). Doing so will result in undefined behavior, and a warning will be issued. If the PxQueryFlag::eNO_BLOCK flag is set, the eBLOCK will instead be automatically converted to an eTOUCH and the warning suppressed. This query call writes to a list associated with the query object and is NOT thread safe (for performance reasons there is no lock and overlapping writes from different threads may result in undefined behavior). Returns a PxOverlapBuffer pointer that will store the result of the query after execute() is completed. This will point either to an element of the buffer allocated on construction or to a user buffer passed to the constructor.
+
+
+ Create a PxBatchQueryExt without the need for pre-allocated result or touch buffers. Returns a PxBatchQueryExt instance. A NULL pointer will be returned if the subsequent allocations fail or if any of the arguments are illegal. In the event that a NULL pointer is returned a corresponding error will be issued to the error stream.
+
+
+ Create a PxBatchQueryExt with user-supplied result and touch buffers. Returns a PxBatchQueryExt instance. A NULL pointer will be returned if the subsequent allocations fail or if any of the arguments are illegal. In the event that a NULL pointer is returned a corresponding error will be issued to the error stream.
+
+
+ Creates an external scene query system. An external SQ system is the part of a PxScene that deals with scene queries (SQ). This is usually taken care of by an internal implementation inside PxScene, but it is also possible to re-route all SQ calls to an external implementation, potentially opening the door to some customizations in behavior and features for advanced users. The following external SQ system is an example of how an implementation would look like. It re-uses much of the same code as the internal version, but it could be re-implemented in a completely different way to match users' specific needs. An external SQ system instance
+
+
+ Adds a pruner to the system. The internal PhysX scene-query system uses two regular pruners (one for static shapes, one for dynamic shapes) and an optional compound pruner. Our custom scene query system supports an arbitrary number of regular pruners. This can be useful to reduce the load on each pruner, in particular during updates, when internal trees are rebuilt in the background. On the other hand this implementation simply iterates over all created pruners to perform queries, so their cost might increase if a large number of pruners is used. In any case this serves as an example of how the PxSceneQuerySystem API can be used to customize scene queries. A pruner index
+
+
+ Start custom build-steps for all pruners This function is used in combination with customBuildstep() and finishCustomBuildstep() to let users take control of the pruners' build-step & commit calls - basically the pruners' update functions. These functions should be used with the PxSceneQueryUpdateMode::eBUILD_DISABLED_COMMIT_DISABLED update mode, otherwise the build-steps will happen automatically in fetchResults. For N pruners it can be more efficient to use these custom build-step functions to perform the updates in parallel: - call startCustomBuildstep() first (one synchronous call) - for each pruner, call customBuildstep() (asynchronous calls from multiple threads) - once it is done, call finishCustomBuildstep() to finish the update (synchronous call) The multi-threaded update is more efficient here than what it is in PxScene, because the \"flushShapes()\" call is also multi-threaded (while it is not in PxScene). Note that users are responsible for locks here, and these calls should not overlap with other SQ calls. In particular one should not add new objects to the SQ system or perform queries while these calls are happening. The number of pruners in the system.
+
+
+ Perform a custom build-step for a given pruner.
+
+
+ Finish custom build-steps Call this function once after all the customBuildstep() calls are done.
+
+
+ Gets a pruner index for an actor/shape. This user-defined function tells the system in which pruner a given actor/shape should go. The returned index must be valid, i.e. it must have been previously returned to users by PxCustomSceneQuerySystem::addPruner. A pruner index for this actor/shape.
+
+
+ Pruner filtering callback. This will be called for each query to validate whether it should process a given pruner. True to process the pruner, false to skip it entirely
+
+
+ Creates a custom scene query system. This is similar to PxCreateExternalSceneQuerySystem, except this function creates a PxCustomSceneQuerySystem object. It can be plugged to PxScene the same way, via PxSceneDesc::sceneQuerySystem. A custom SQ system instance
+
+
+ Computes closest polygon of the convex hull geometry for a given impact point and impact direction. When doing sweeps against a scene, one might want to delay the rather expensive computation of the hit face index for convexes until it is clear the information is really needed and then use this method to get the corresponding face index. Closest face index of the convex geometry.
+
+
+ Sets the sampling radius Returns true if the sampling was successful and false if there was a problem. Usually an internal overflow is the problem for very big meshes or very small sampling radii.
+
+
+ Adds new Poisson Samples inside the sphere specified
+
+
+ Adds new Poisson Samples inside the box specified
+
+
+ Creates a shape sampler Returns the sampler
+
+
+ Checks whether a point is inside the triangle mesh Returns true if the point is inside the triangle mesh
+
+
+ Creates a triangle mesh sampler Returns the sampler
+
+
+ Returns the index of the tetrahedron that contains a point The index of the tetrahedon containing the point, -1 if not tetrahedron contains the opoint
+
+
+ Returns the index of the tetrahedron closest to a point The index of the tetrahedon closest to the point
+
+
+ Initialize the PhysXExtensions library. This should be called before calling any functions or methods in extensions which may require allocation. This function does not need to be called before creating a PxDefaultAllocator object.
+
+
+ Shut down the PhysXExtensions library. This function should be called to cleanly shut down the PhysXExtensions library before application exit. This function is required to be called to release foundation usage.
+
+
+ The type this Serializer is meant to operate on.
+
+
+ Convert from a RepX object to a key-value pair hierarchy
+
+
+ Convert from a descriptor to a live object. Must be an object of this Serializer type. The new live object. It can be an invalid object if the instantiation cannot take place.
+
+
+ Connects the SDK to the PhysX Visual Debugger application.
+
+
+ Disconnects the SDK from the PhysX Visual Debugger application. If we are still connected, this will kill the entire debugger connection.
+
+
+ Return if connection to PVD is created.
+
+
+ returns the PVD data transport returns NULL if no transport is present.
+
+
+ Retrieves the PVD flags. See PxPvdInstrumentationFlags.
+
+
+ Releases the pvd instance.
+
+
+ Create a pvd instance.
+
+
+ Connects to the Visual Debugger application. return True if success
+
+
+ Disconnects from the Visual Debugger application. If we are still connected, this will kill the entire debugger connection.
+
+
+ Return if connection to PVD is created.
+
+
+ write bytes to the other endpoint of the connection. should lock before witre. If an error occurs this connection will assume to be dead.
+
+
+ send any data and block until we know it is at least on the wire.
+
+
+ Return size of written data.
+
+
+ Create a default socket transport.
+
+
+ Create a default file transport.
+
+
+ Destroys the instance it is called on. The operation will fail, if there are still modules referencing the foundation object. Release all dependent modules prior to calling this method.
+
+
+ retrieves error callback
+
+
+ Sets mask of errors to report.
+
+
+ Retrieves mask of errors to be reported.
+
+
+ Retrieves the allocator this object was created with.
+
+
+ Retrieves if allocation names are being passed to allocator callback.
+
+
+ Set if allocation names are being passed to allocator callback. Enabled by default in debug and checked build, disabled by default in profile and release build.
+
+
+ Create a pvd instance.
+
+
+ Destroy the returned callback object using PxQueryFilterCallback_delete.
+
+
+ Deletes the rigid actor object. Also releases any shapes associated with the actor. Releasing an actor will affect any objects that are connected to the actor (constraint shaders like joints etc.). Such connected objects will be deleted upon scene deletion, or explicitly by the user by calling release() on these objects. It is recommended to always remove all objects that reference actors before the actors themselves are removed. It is not possible to retrieve list of dead connected objects. Sleeping: This call will awaken any sleeping actors contacting the deleted actor (directly or indirectly). Calls [`PxActor::release`]() so you might want to check the documentation of that method as well.
+
+
+ Returns the internal actor index. This is only defined for actors that have been added to a scene. The internal actor index, or 0xffffffff if the actor is not part of a scene.
+
+
+ Retrieves the actors world space transform. The getGlobalPose() method retrieves the actor's current actor space to world space transformation. It is not allowed to use this method while the simulation is running (except during PxScene::collide(), in PxContactModifyCallback or in contact report callbacks). Global pose of object.
+
+
+ Method for setting an actor's pose in the world. This method instantaneously changes the actor space to world space transformation. This method is mainly for dynamic rigid bodies (see [`PxRigidDynamic`]). Calling this method on static actors is likely to result in a performance penalty, since internal optimization structures for static actors may need to be recomputed. In addition, moving static actors will not interact correctly with dynamic actors or joints. To directly control an actor's position and have it correctly interact with dynamic bodies and joints, create a dynamic body with the PxRigidBodyFlag::eKINEMATIC flag, then use the setKinematicTarget() commands to define its path. Even when moving dynamic actors, exercise restraint in making use of this method. Where possible, avoid: moving actors into other actors, thus causing overlap (an invalid physical state) moving an actor that is connected by a joint to another away from the other (thus causing joint error) Sleeping: This call wakes dynamic actors if they are sleeping and the autowake parameter is true (default).
+
+
+ Attach a shape to an actor This call will increment the reference count of the shape. Mass properties of dynamic rigid actors will not automatically be recomputed to reflect the new mass distribution implied by the shape. Follow this call with a call to the PhysX extensions method [`PxRigidBodyExt::updateMassAndInertia`]() to do that. Attaching a triangle mesh, heightfield or plane geometry shape configured as eSIMULATION_SHAPE is not supported for non-kinematic PxRigidDynamic instances. Sleeping: Does NOT wake the actor up automatically. True if success.
+
+
+ Detach a shape from an actor. This will also decrement the reference count of the PxShape, and if the reference count is zero, will cause it to be deleted. Sleeping: Does NOT wake the actor up automatically.
+
+
+ Returns the number of shapes assigned to the actor. You can use [`getShapes`]() to retrieve the shape pointers. Number of shapes associated with this actor.
+
+
+ Retrieve all the shape pointers belonging to the actor. These are the shapes used by the actor for collision detection. You can retrieve the number of shape pointers by calling [`getNbShapes`]() Note: Removing shapes with [`PxShape::release`]() will invalidate the pointer of the released shape. Number of shape pointers written to the buffer.
+
+
+ Returns the number of constraint shaders attached to the actor. You can use [`getConstraints`]() to retrieve the constraint shader pointers. Number of constraint shaders attached to this actor.
+
+
+ Retrieve all the constraint shader pointers belonging to the actor. You can retrieve the number of constraint shader pointers by calling [`getNbConstraints`]() Note: Removing constraint shaders with [`PxConstraint::release`]() will invalidate the pointer of the released constraint. Number of constraint shader pointers written to the buffer.
+
+
+ Creates a new shape with default properties and a list of materials and adds it to the list of shapes of this actor. This is equivalent to the following ```cpp // reference count is 1 PxShape* shape(...) = PxGetPhysics().createShape(...); // increments reference count actor->attachShape(shape); // releases user reference, leaving reference count at 1 shape->release(); ``` As a consequence, detachShape() will result in the release of the last reference, and the shape will be deleted. The default shape flags to be set are: eVISUALIZATION, eSIMULATION_SHAPE, eSCENE_QUERY_SHAPE (see [`PxShapeFlag`]). Triangle mesh, heightfield or plane geometry shapes configured as eSIMULATION_SHAPE are not supported for non-kinematic PxRigidDynamic instances. Creating compounds with a very large number of shapes may adversely affect performance and stability. Sleeping: Does NOT wake the actor up automatically. The newly created shape.
+
+
+ Creates a new shape with default properties and a single material adds it to the list of shapes of this actor. This is equivalent to the following ```cpp // reference count is 1 PxShape* shape(...) = PxGetPhysics().createShape(...); // increments reference count actor->attachShape(shape); // releases user reference, leaving reference count at 1 shape->release(); ``` As a consequence, detachShape() will result in the release of the last reference, and the shape will be deleted. The default shape flags to be set are: eVISUALIZATION, eSIMULATION_SHAPE, eSCENE_QUERY_SHAPE (see [`PxShapeFlag`]). Triangle mesh, heightfield or plane geometry shapes configured as eSIMULATION_SHAPE are not supported for non-kinematic PxRigidDynamic instances. Creating compounds with a very large number of shapes may adversely affect performance and stability. Sleeping: Does NOT wake the actor up automatically. The newly created shape.
+
+
+ Gets a list of bounds based on shapes in rigid actor. This list can be used to cook/create bounding volume hierarchy though PxCooking API.
+
+
+ scale a rigid actor by a uniform scale The geometry and relative positions of the actor are multiplied by the given scale value. If the actor is a rigid body or an articulation link and the scaleMassProps value is true, the mass properties are scaled assuming the density is constant: the center of mass is linearly scaled, the mass is multiplied by the cube of the scale, and the inertia tensor by the fifth power of the scale.
+
+
+ Allocates size bytes of memory, which must be 16-byte aligned. This method should never return NULL. If you run out of memory, then you should terminate the app or take some other appropriate action. Threading: This function should be thread safe as it can be called in the context of the user thread and physics processing thread(s). The allocated block of memory.
+
+
+ Frees memory previously allocated by allocate(). Threading: This function should be thread safe as it can be called in the context of the user thread and physics processing thread(s).
+
+
+ The default constructor.
+
+
+ New interface to handle simulation events, replacing create_contact_callback.
+
+
+ This is called when a breakable constraint breaks. The user should not release the constraint shader inside this call! No event will get reported if the constraint breaks but gets deleted while the time step is still being simulated.
+
+
+ This is called with the actors which have just been woken up. Only supported by rigid bodies yet. Only called on actors for which the PxActorFlag eSEND_SLEEP_NOTIFIES has been set. Only the latest sleep state transition happening between fetchResults() of the previous frame and fetchResults() of the current frame will get reported. For example, let us assume actor A is awake, then A->putToSleep() gets called, then later A->wakeUp() gets called. At the next simulate/fetchResults() step only an onWake() event will get triggered because that was the last transition. If an actor gets newly added to a scene with properties such that it is awake and the sleep state does not get changed by the user or simulation, then an onWake() event will get sent at the next simulate/fetchResults() step.
+
+
+ This is called with the actors which have just been put to sleep. Only supported by rigid bodies yet. Only called on actors for which the PxActorFlag eSEND_SLEEP_NOTIFIES has been set. Only the latest sleep state transition happening between fetchResults() of the previous frame and fetchResults() of the current frame will get reported. For example, let us assume actor A is asleep, then A->wakeUp() gets called, then later A->putToSleep() gets called. At the next simulate/fetchResults() step only an onSleep() event will get triggered because that was the last transition (assuming the simulation does not wake the actor up). If an actor gets newly added to a scene with properties such that it is asleep and the sleep state does not get changed by the user or simulation, then an onSleep() event will get sent at the next simulate/fetchResults() step.
+
+
+ This is called when certain contact events occur. The method will be called for a pair of actors if one of the colliding shape pairs requested contact notification. You request which events are reported using the filter shader/callback mechanism (see [`PxSimulationFilterShader`], [`PxSimulationFilterCallback`], #PxPairFlag). Do not keep references to the passed objects, as they will be invalid after this function returns.
+
+
+ This is called with the current trigger pair events. Shapes which have been marked as triggers using PxShapeFlag::eTRIGGER_SHAPE will send events according to the pair flag specification in the filter shader (see [`PxPairFlag`], #PxSimulationFilterShader). Trigger shapes will no longer send notification events for interactions with other trigger shapes.
+
+
+ Provides early access to the new pose of moving rigid bodies. When this call occurs, rigid bodies having the [`PxRigidBodyFlag::eENABLE_POSE_INTEGRATION_PREVIEW`] flag set, were moved by the simulation and their new poses can be accessed through the provided buffers. The provided buffers are valid and can be read until the next call to [`PxScene::simulate`]() or #PxScene::collide(). This callback gets triggered while the simulation is running. If the provided rigid body references are used to read properties of the object, then the callback has to guarantee no other thread is writing to the same body at the same time. The code in this callback should be lightweight as it can block the simulation, that is, the [`PxScene::fetchResults`]() call.
+
+
+ Override the default filter shader in the scene with a custom function. If call_default_filter_shader_first is set to true, this will first call the built-in PhysX filter (that matches Physx 2.8 behavior) before your callback.
+
+
+ (re)sets the structure to the default.
+
+
+ Returns true if the descriptor is valid. true if the current settings are valid.
+
+
+ (hidden) Should only be used in testing etc! This isn't generated as we don't generate op functions.
+
+
+ Set the callback that will be used for all profiling.
+
+
+ Mark the beginning of a nested profile block Returns implementation-specific profiler data for this event
+
+
+ Mark the end of a nested profile block eventName plus contextId can be used to uniquely match up start and end of a zone.
+
+
+ tests for exact zero vector
+
+
+ returns true if all 3 elems of the vector are finite (not NAN or INF, etc.)
+
+
+ is normalized - used by API parameter validation
+
+
+ returns the squared magnitude Avoids calling PxSqrt()!
+
+
+ returns the magnitude
+
+
+ returns the scalar product of this and other.
+
+
+ cross product
+
+
+ returns a unit vector
+
+
+ normalizes the vector in place
+
+
+ normalizes the vector in place. Does nothing if vector magnitude is under PX_NORMALIZATION_EPSILON. Returns vector magnitude if >= PX_NORMALIZATION_EPSILON and 0.0f otherwise.
+
+
+ normalizes the vector in place. Asserts if vector magnitude is under PX_NORMALIZATION_EPSILON. returns vector magnitude.
+
+
+ a[i] * b[i], for all i.
+
+
+ element-wise minimum
+
+
+ returns MIN(x, y, z);
+
+
+ element-wise maximum
+
+
+ returns MAX(x, y, z);
+
+
+ returns absolute values of components;
+
+
+ Construct from three base vectors
+
+
+ Construct from diagonal, off-diagonals are zero.
+
+
+ Computes the outer product of two vectors
+
+
+ Construct from two bounding points
+
+
+ returns the AABB containing v0 and v1.
+
+
+ returns the AABB from center and extents vectors.
+
+
+ Construct from center, extent, and (not necessarily orthogonal) basis
+
+
+ Initializes from 3 scalar parameters.
+
+
+ Construct from three base vectors and a translation
+
+
+ Constructor from a normal and a distance
+
+
+ Constructor from a point on the plane and a normal
+
+
+ Constructor from three points
+
+
+ finds the shortest rotation between two vectors. a rotation about an axis normal to the two vectors which takes one to the other via the shortest path
+
+
+ creates a transform from the endpoints of a segment, suitable for an actor transform for a PxCapsuleGeometry A PxTransform which will transform the vector (1,0,0) to the capsule axis shrunk by the halfHeight
+
+
+ Compute the exponent of a PxVec3
+
+
+ return Returns 0 if v.x is largest element of v, 1 if v.y is largest element, 2 if v.z is largest element.
+
+
+ Compute the closest point on an 2d ellipse to a given 2d point. Returns the 2d position on the surface of the ellipse that is closest to point.
+
+
+ Compute the angle between two non-unit vectors Returns the angle (in radians) between the two vector v0 and v1.
+
+
+ Compute two normalized vectors (right and up) that are perpendicular to an input normalized vector (dir).
+
+
+ Compute three normalized vectors (dir, right and up) that are parallel to (dir) and perpendicular to (right, up) the normalized direction vector (p1 - p0)/||p1 - p0||.
+
+
+ Constructor to initialize to arbitrary scale and identity scale rotation.
+
+
+ Constructor to initialize to arbitrary scaling.
+
+
+ Raycast test against a geometry object. All geometry types are supported except PxParticleSystemGeometry, PxTetrahedronMeshGeometry and PxHairSystemGeometry. Number of hits between the ray and the geometry object
+
+
+ Sweep a specified geometry object in space and test for collision with a given object. The following combinations are supported. PxSphereGeometry vs. {PxSphereGeometry, PxPlaneGeometry, PxCapsuleGeometry, PxBoxGeometry, PxConvexMeshGeometry, PxTriangleMeshGeometry, PxHeightFieldGeometry} PxCapsuleGeometry vs. {PxSphereGeometry, PxPlaneGeometry, PxCapsuleGeometry, PxBoxGeometry, PxConvexMeshGeometry, PxTriangleMeshGeometry, PxHeightFieldGeometry} PxBoxGeometry vs. {PxSphereGeometry, PxPlaneGeometry, PxCapsuleGeometry, PxBoxGeometry, PxConvexMeshGeometry, PxTriangleMeshGeometry, PxHeightFieldGeometry} PxConvexMeshGeometry vs. {PxSphereGeometry, PxPlaneGeometry, PxCapsuleGeometry, PxBoxGeometry, PxConvexMeshGeometry, PxTriangleMeshGeometry, PxHeightFieldGeometry} True if the swept geometry object geom0 hits the object geom1
+
+
+ Compute minimum translational distance (MTD) between two geometry objects. All combinations of geom objects are supported except: - plane/plane - plane/mesh - plane/heightfield - mesh/mesh - mesh/heightfield - heightfield/heightfield - anything involving PxParticleSystemGeometry, PxTetrahedronMeshGeometry or PxHairSystemGeometry The function returns a unit vector ('direction') and a penetration depth ('depth'). The depenetration vector D = direction * depth should be applied to the first object, to get out of the second object. Returned depth should always be positive or null. If objects do not overlap, the function can not compute the MTD and returns false. True if the MTD has successfully been computed, i.e. if objects do overlap.
+
+
+ Computes distance between a point and a geometry object. Currently supported geometry objects: box, sphere, capsule, convex, mesh. For meshes, only the BVH34 midphase data-structure is supported. Square distance between the point and the geom object, or 0.0 if the point is inside the object, or -1.0 if an error occured (geometry type is not supported, or invalid pose)
+
+
+ Sweep a specified geometry object in space and test for collision with a set of given triangles. This function simply sweeps input geometry against each input triangle, in the order they are given. This is an O(N) operation with N = number of input triangles. It does not use any particular acceleration structure. True if the swept geometry object hits the specified triangles Only the following geometry types are currently supported: PxSphereGeometry, PxCapsuleGeometry, PxBoxGeometry If a shape from the scene is already overlapping with the query shape in its starting position, the hit is returned unless eASSUME_NO_INITIAL_OVERLAP was specified. This function returns a single closest hit across all the input triangles. Multiple hits are not supported. Supported hitFlags are PxHitFlag::eDEFAULT, PxHitFlag::eASSUME_NO_INITIAL_OVERLAP, PxHitFlag::ePRECISE_SWEEP, PxHitFlag::eMESH_BOTH_SIDES, PxHitFlag::eMESH_ANY. ePOSITION is only defined when there is no initial overlap (sweepHit.hadInitialOverlap() == false) The returned normal for initially overlapping sweeps is set to -unitDir. Otherwise the returned normal is the front normal of the triangle even if PxHitFlag::eMESH_BOTH_SIDES is set. The returned PxGeomSweepHit::faceIndex parameter will hold the index of the hit triangle in input array, i.e. the range is [0; triangleCount). For initially overlapping sweeps, this is the index of overlapping triangle. The inflation parameter is not compatible with PxHitFlag::ePRECISE_SWEEP.
+
+
+ Constructor
+
+
+ Constructor
+
+
+ Computes an approximate minimum translational distance (MTD) between a geometry object and a mesh. This iterative function computes an approximate vector that can be used to depenetrate a geom object from a triangle mesh. Returned depenetration vector should be applied to 'geom', to get out of the mesh. The function works best when the amount of overlap between the geom object and the mesh is small. If the geom object's center goes inside the mesh, backface culling usually kicks in, no overlap is detected, and the function does not compute an MTD vector. The function early exits if no overlap is detected after a depenetration attempt. This means that if maxIter = N, the code will attempt at most N iterations but it might exit earlier if depenetration has been successful. Usually N = 4 gives good results. True if the MTD has successfully been computed, i.e. if objects do overlap.
+
+
+ Computes an approximate minimum translational distance (MTD) between a geometry object and a heightfield. This iterative function computes an approximate vector that can be used to depenetrate a geom object from a heightfield. Returned depenetration vector should be applied to 'geom', to get out of the heightfield. The function works best when the amount of overlap between the geom object and the mesh is small. If the geom object's center goes inside the heightfield, backface culling usually kicks in, no overlap is detected, and the function does not compute an MTD vector. The function early exits if no overlap is detected after a depenetration attempt. This means that if maxIter = N, the code will attempt at most N iterations but it might exit earlier if depenetration has been successful. Usually N = 4 gives good results. True if the MTD has successfully been computed, i.e. if objects do overlap.
+
+
+ Creates from orientation matrix.
+
+
+ Get transposed matrix
+
+
+ Get the real inverse
+
+
+ Get determinant
+
+
+ Transform vector by matrix, equal to v' = M*v
+
+
+ Transform vector by matrix transpose, v' = M^t*v
+
+
+ gets the transformed bounds of the passed AABB (resulting in a bigger AABB). This version is safe to call for empty bounds.
+
+
+ gets the transformed bounds of the passed AABB (resulting in a bigger AABB). Calling this method for empty bounds leads to undefined behavior. Use [`transformSafe`]() instead.
+
+
+ Construct from Mat33 and a translation
+
+
+ computes a oriented bounding box around the scaled basis. Bounding box extent.
+
+
+ Get the entries of the diagonalized inertia tensor and the corresponding reference rotation. The entries of the diagonalized inertia tensor.
+
+
+ Translate an inertia tensor using the parallel axis theorem The translated inertia tensor.
+
+
+ Rotate an inertia tensor around the center of mass The rotated inertia tensor.
+
+
+ Non-uniform scaling of the inertia tensor The scaled inertia tensor.
+
+
+ returns true if quat is identity
+
+
+ returns true if all elements are finite (not NAN or INF, etc.)
+
+
+ returns true if finite and magnitude is close to unit
+
+
+ returns true if finite and magnitude is reasonably close to unit to allow for some accumulation of error vs isValid
+
+
+ converts this quaternion to angle-axis representation
+
+
+ Gets the angle between this quat and the identity quaternion. Unit: Radians
+
+
+ Gets the angle between this quat and the argument Unit: Radians
+
+
+ This is the squared 4D vector length, should be 1 for unit quaternions.
+
+
+ returns the scalar product of this and other.
+
+
+ maps to the closest unit quaternion.
+
+
+ brief computes rotation of x-axis
+
+
+ brief computes rotation of y-axis
+
+
+ brief computes rotation of z-axis
+
+
+ rotates passed vec by this (assumed unitary)
+
+
+ inverse rotates passed vec by this (assumed unitary)
+
+
+ Construct from a quaternion
+
+
+ Construct from a quaternion
+
+
+ return Returns the log of a PxQuat
+
+
+ Compute from an input quaternion q a pair of quaternions (swing, twist) such that q = swing * twist with the caveats that swing.x = twist.y = twist.z = 0.
+
+
+ Get transposed matrix
+
+
+ Transform vector by matrix, equal to v' = M*v
+
+
+ Transform vector by matrix, equal to v' = M*v
+
+
+ Rotate vector by matrix, equal to v' = M*v
+
+
+ Rotate vector by matrix, equal to v' = M*v
+
+
+ Transform transform to parent (returns compound transform: first src, then *this)
+
+
+ returns true if finite and q is a unit quaternion
+
+
+ returns true if finite and quat magnitude is reasonably close to unit to allow for some accumulation of error vs isValid
+
+
+ returns true if all elems are finite (not NAN or INF, etc.)
+
+
+ Transform transform from parent (returns compound transform: first src, then this->inverse)
+
+
+ return a normalized transform (i.e. one in which the quaternion has unit magnitude)
+
+
+ Construct from pose and extent
+
+
+ gets the transformed bounds of the passed AABB (resulting in a bigger AABB). This version is safe to call for empty bounds.
+
+
+ gets the transformed bounds of the passed AABB (resulting in a bigger AABB). Calling this method for empty bounds leads to undefined behavior. Use [`transformSafe`]() instead.
+
+
+ creates a plane equation from a transform, such as the actor transform for a PxPlaneGeometry the plane
+
+
+ integrate transform.
+
+
+ Sets empty to true
+
+
+ Sets the bounds to maximum size [-PX_MAX_BOUNDS_EXTENTS, PX_MAX_BOUNDS_EXTENTS].
+
+
+ expands the volume to include v
+
+
+ expands the volume to include b.
+
+
+ indicates whether the intersection of this and b is empty or not.
+
+
+ computes the 1D-intersection between two AABBs, on a given axis.
+
+
+ indicates if these bounds contain v.
+
+
+ checks a box is inside another box.
+
+
+ returns the center of this axis aligned box.
+
+
+ get component of the box's center along a given axis
+
+
+ get component of the box's extents along a given axis
+
+
+ returns the dimensions (width/height/depth) of this axis aligned box.
+
+
+ returns the extents, which are half of the width/height/depth.
+
+
+ scales the AABB. This version is safe to call for empty bounds.
+
+
+ scales the AABB. Calling this method for empty bounds leads to undefined behavior. Use [`scaleSafe`]() instead.
+
+
+ fattens the AABB in all 3 dimensions by the given distance. This version is safe to call for empty bounds.
+
+
+ fattens the AABB in all 3 dimensions by the given distance. Calling this method for empty bounds leads to undefined behavior. Use [`fattenSafe`]() instead.
+
+
+ checks that the AABB values are not NaN
+
+
+ checks that the AABB values describe a valid configuration.
+
+
+ Finds the closest point in the box to the point p. If p is contained, this will be p, otherwise it will be the closest point on the surface of the box.
+
+
+ computes the bounds for a geometry object
+
+
+ Creates regions for PxSceneDesc, from a global box. This helper simply subdivides the given global box into a 2D grid of smaller boxes. Each one of those smaller boxes is a region of interest for the broadphase. There are nbSubdiv*nbSubdiv regions in the 2D grid. The function does not subdivide along the given up axis. This is the simplest setup one can use with PxBroadPhaseType::eMBP. A more sophisticated setup would try to cover the game world with a non-uniform set of regions (i.e. not just a grid). number of regions written out to the 'regions' array
+
+
+ Reports an error code.
+
+
+ The default constructor.
+
+
+ Construct a new PxTaskManager instance with the given [optional] dispatchers
+
+
+ callback when memory is allocated.
+
+
+ callback when memory is deallocated.
+
+
+ The default constructor.
+
+
+ Allocates size bytes of memory, which must be 16-byte aligned. This method should never return NULL. If you run out of memory, then you should terminate the app or take some other appropriate action. Threading: This function should be thread safe as it can be called in the context of the user thread and physics processing thread(s). The allocated block of memory.
+
+
+ Frees memory previously allocated by allocate(). Threading: This function should be thread safe as it can be called in the context of the user thread and physics processing thread(s).
+
+
+ The default destructor.
+
+
+ Reports an error code.
+
+
+ read from the stream. The number of bytes read may be less than the number requested. the number of bytes read from the stream.
+
+
+ return the length of the input data size in bytes of the input data
+
+
+ seek to the given offset from the start of the data.
+
+
+ return the current offset from the start of the data the offset to seek to.
+
+
+ Creates a PxCollection from XML data. a pointer to a PxCollection if successful or NULL if it failed.
+
+
+ write to the stream. The number of bytes written may be less than the number sent. the number of bytes written to the stream by this call.
+
+
+ Put class meta data in stream, used for serialization
+
+
+ Serializes a physics collection to an XML output stream. The collection to be serialized needs to be complete Serialization of objects in a scene that is simultaneously being simulated is not supported and leads to undefined behavior. true if the collection is successfully serialized.
+
+
+ Serializes a collection to a binary stream. Serializes a collection to a stream. In order to resolve external dependencies the externalReferences collection has to be provided. Optionally names of objects that where set for example with [`PxActor::setName`] are serialized along with the objects. The collection can be successfully serialized if isSerializable(collection) returns true. See [`isSerializable`]. The implementation of the output stream needs to fulfill the requirements on the memory block input taken by PxSerialization::createCollectionFromBinary. Serialization of objects in a scene that is simultaneously being simulated is not supported and leads to undefined behavior. Whether serialization was successful
+
+
+ tests for exact zero vector
+
+
+ returns true if all 3 elems of the vector are finite (not NAN or INF, etc.)
+
+
+ is normalized - used by API parameter validation
+
+
+ returns the squared magnitude Avoids calling PxSqrt()!
+
+
+ returns the magnitude
+
+
+ returns the scalar product of this and other.
+
+
+ returns a unit vector
+
+
+ normalizes the vector in place
+
+
+ a[i] * b[i], for all i.
+
+
+ element-wise minimum
+
+
+ element-wise maximum
+
+
+ Construct from four 4-vectors
+
+
+ Construct from a diagonal vector
+
+
+ projects p into the plane
+
+
+ find an arbitrary point in the plane
+
+
+ equivalent plane with unit normal
+
+
+ transform plane
+
+
+ inverse-transform plane
+
+
+ creates a transform from a plane equation, suitable for an actor transform for a PxPlaneGeometry a PxTransform which will transform the plane PxPlane(1,0,0,0) to the specified plane
+
+
+ The destructor for Mutex deletes the mutex.
+
+
+ Acquire (lock) the mutex. If the mutex is already locked by another thread, this method blocks until the mutex is unlocked.
+
+
+ Acquire (lock) the mutex. If the mutex is already locked by another thread, this method returns false without blocking.
+
+
+ Release (unlock) the mutex.
+
+
+ Wait on the object for at most the given number of ms. Returns true if the object is signaled. Sync::waitForever will block forever or until the object is signaled.
+
+
+ Signal the synchronization object, waking all threads waiting on it
+
+
+ Reset the synchronization object
+
+
+ tests for exact zero vector
+
+
+ returns true if all 2 elems of the vector are finite (not NAN or INF, etc.)
+
+
+ is normalized - used by API parameter validation
+
+
+ returns the squared magnitude Avoids calling PxSqrt()!
+
+
+ returns the magnitude
+
+
+ returns the scalar product of this and other.
+
+
+ returns a unit vector
+
+
+ normalizes the vector in place
+
+
+ a[i] * b[i], for all i.
+
+
+ element-wise minimum
+
+
+ returns MIN(x, y);
+
+
+ element-wise maximum
+
+
+ returns MAX(x, y);
+
+
+ Registers a reference value corresponding to a PxBase object. This method is assumed to be called in the implementation of PxSerializer::registerReferences for serialized references that need to be resolved on deserialization. A reference needs to be associated with exactly one PxBase object in either the collection or the external references collection. Different kinds of references are supported and need to be specified. In the most common case (PX_SERIAL_REF_KIND_PXBASE) the PxBase object matches the reference value (which is the pointer to the PxBase object). Integer references maybe registered as well (used for internal material indices with PX_SERIAL_REF_KIND_MATERIAL_IDX). Other kinds could be added with the restriction that for pointer types the kind value needs to be marked with the PX_SERIAL_REF_KIND_PTR_TYPE_BIT.
+
+
+ Returns the collection that is being serialized.
+
+
+ Serializes object data and object extra data. This function is assumed to be called within the implementation of PxSerializer::exportData and PxSerializer::exportExtraData.
+
+
+ Aligns the serialized data. This function is assumed to be called within the implementation of PxSerializer::exportData and PxSerializer::exportExtraData.
+
+
+ Helper function to write a name to the extraData if serialization is configured to save names. This function is assumed to be called within the implementation of PxSerializer::exportExtraData.
+
+
+ Retrieves a pointer to a deserialized PxBase object given a corresponding deserialized reference value This method is assumed to be called in the implementation of PxSerializer::createObject in order to update reference values on deserialization. To update a PxBase reference the corresponding deserialized pointer value needs to be provided in order to retrieve the location of the corresponding deserialized PxBase object. (PxDeserializationContext::translatePxBase simplifies this common case). For other kinds of references the reverence values need to be updated by deduction given the corresponding PxBase instance. PxBase object associated with the reference value
+
+
+ Helper function to read a name from the extra data during deserialization. This function is assumed to be called within the implementation of PxSerializer::createObject.
+
+
+ Function to align the extra data stream to a power of 2 alignment This function is assumed to be called within the implementation of PxSerializer::createObject.
+
+
+ Register a serializer for a concrete type
+
+
+ Unregister a serializer for a concrete type, and retrieves the corresponding serializer object. Unregistered serializer corresponding to type, NULL for types for which no serializer has been registered.
+
+
+ Returns PxSerializer corresponding to type Registered PxSerializer object corresponding to type
+
+
+ Register a RepX serializer for a concrete type
+
+
+ Unregister a RepX serializer for a concrete type, and retrieves the corresponding serializer object. Unregistered PxRepxSerializer corresponding to type, NULL for types for which no RepX serializer has been registered.
+
+
+ Returns RepX serializer given the corresponding type name Registered PxRepXSerializer object corresponding to type name
+
+
+ Releases PxSerializationRegistry instance. This unregisters all PhysX and PhysXExtension serializers. Make sure to unregister all custom type serializers before releasing the PxSerializationRegistry.
+
+
+ Adds a PxBase object to the collection. Adds a PxBase object to the collection. Optionally a PxSerialObjectId can be provided in order to resolve dependencies between collections. A PxSerialObjectId value of PX_SERIAL_OBJECT_ID_INVALID means the object remains without id. Objects can be added regardless of other objects they require. If the object is already in the collection, the ID will be set if it was PX_SERIAL_OBJECT_ID_INVALID previously, otherwise the operation fails.
+
+
+ Removes a PxBase member object from the collection. Object needs to be contained by the collection.
+
+
+ Returns whether the collection contains a certain PxBase object. Whether object is contained.
+
+
+ Adds an id to a member PxBase object. If the object is already associated with an id within the collection, the id is replaced. May only be called for objects that are members of the collection. The id needs to be unique within the collection.
+
+
+ Removes id from a contained PxBase object. May only be called for ids that are associated with an object in the collection.
+
+
+ Adds all PxBase objects and their ids of collection to this collection. PxBase objects already in this collection are ignored. Object ids need to be conflict free, i.e. the same object may not have two different ids within the two collections.
+
+
+ Removes all PxBase objects of collection from this collection. PxBase objects not present in this collection are ignored. Ids of objects which are removed are also removed.
+
+
+ Gets number of PxBase objects in this collection. Number of objects in this collection
+
+
+ Gets the PxBase object of this collection given its index. PxBase object at index index
+
+
+ Copies member PxBase pointers to a user specified buffer. number of members PxBase objects that have been written to the userBuffer
+
+
+ Looks for a PxBase object given a PxSerialObjectId value. If there is no PxBase object in the collection with the given id, NULL is returned. PxBase object with the given id value or NULL
+
+
+ Gets number of PxSerialObjectId names in this collection. Number of PxSerialObjectId names in this collection
+
+
+ Copies member PxSerialObjectId values to a user specified buffer. number of members PxSerialObjectId values that have been written to the userBuffer
+
+
+ Gets the PxSerialObjectId name of a PxBase object within the collection. The PxBase object needs to be a member of the collection. PxSerialObjectId name of the object or PX_SERIAL_OBJECT_ID_INVALID if the object is unnamed
+
+
+ Deletes a collection object. This function only deletes the collection object, i.e. the container class. It doesn't delete objects that are part of the collection.
+
+
+ Returns whether the collection is serializable with the externalReferences collection. Some definitions to explain whether a collection can be serialized or not: For definitions of requires and complete see [`PxSerialization::complete`] A serializable object is subordinate if it cannot be serialized on its own The following objects are subordinate: - articulation links - articulation joints - joints A collection C can be serialized with external references collection D iff - C is complete relative to D (no dangling references) - Every object in D required by an object in C has a valid ID (no unnamed references) - Every subordinate object in C is required by another object in C (no orphans) Whether the collection is serializable
+
+
+ Adds to a collection all objects such that it can be successfully serialized. A collection C is complete relative to an other collection D if every object required by C is either in C or D. This function adds objects to a collection, such that it becomes complete with respect to the exceptFor collection. Completeness is needed for serialization. See [`PxSerialization::serializeCollectionToBinary`], [`PxSerialization::serializeCollectionToXml`]. Sdk objects require other sdk object according to the following rules: - joints require their actors and constraint - rigid actors require their shapes - shapes require their material(s) and mesh (triangle mesh, convex mesh or height field), if any - articulations require their links and joints - aggregates require their actors If followJoints is specified another rule is added: - actors require their joints Specifying followJoints will make whole jointed actor chains being added to the collection. Following chains is interrupted whenever a object in exceptFor is encountered.
+
+
+ Creates PxSerialObjectId values for unnamed objects in a collection. Creates PxSerialObjectId names for unnamed objects in a collection starting at a base value and incrementing, skipping values that are already assigned to objects in the collection.
+
+
+ Releases the PxBase instance, please check documentation of release in derived class.
+
+
+ Returns string name of dynamic type. Class name of most derived type of this object.
+
+
+ Returns concrete type of object. PxConcreteType::Enum of serialized object
+
+
+ Set PxBaseFlag
+
+
+ Set PxBaseFlags
+
+
+ Returns PxBaseFlags PxBaseFlags
+
+
+ Whether the object is subordinate. A class is subordinate, if it can only be instantiated in the context of another class. Whether the class is subordinate
+
+
+ Decrements the reference count of the object and releases it if the new reference count is zero.
+
+
+ Returns the reference count of the object. At creation, the reference count of the object is 1. Every other object referencing this object increments the count by 1. When the reference count reaches 0, and only then, the object gets destroyed automatically. the current reference count.
+
+
+ Acquires a counted reference to this object. This method increases the reference count of the object by 1. Decrement the reference count by calling release()
+
+
+ Returns true if the descriptor is valid. true if the current settings are valid (returns always true).
+
+
+ constructor sets to default.
+
+
+ construct a linear hard limit
+
+
+ Construct a linear hard limit pair. The lower distance value must be less than the upper distance value.
+
+
+ Allocate a new string. *Always* a valid null terminated string. \"\" is returned if \"\" or null is passed in.
+
+
+ Release the string table and all the strings associated with it.
+
+
+ Returns string name of dynamic type. Class name of most derived type of this object.
+
+
+ Adds required objects to the collection. This method does not add the required objects recursively, e.g. objects required by required objects.
+
+
+ Whether the object is subordinate. A class is subordinate, if it can only be instantiated in the context of another class. Whether the class is subordinate
+
+
+ Exports object's extra data to stream.
+
+
+ Exports object's data to stream.
+
+
+ Register references that the object maintains to other objects.
+
+
+ Returns size needed to create the class instance. sizeof class instance.
+
+
+ Create object at a given address, resolve references and import extra data. Created PxBase pointer (needs to be identical to address before increment).
+
+
+ *******************************************************************************************************************
+
+
+ Builds object (TriangleMesh, Heightfield, ConvexMesh or BVH) from given data in PxPhysics. PxBase Created object in PxPhysics.
+
+
+ Set the user-provided dispatcher object for CPU tasks
+
+
+ Get the user-provided dispatcher object for CPU tasks The CPU dispatcher object.
+
+
+ Reset any dependencies between Tasks Will be called at the start of every frame before tasks are submitted.
+
+
+ Called by the owning scene to start the task graph. All tasks with ref count of 1 will be dispatched.
+
+
+ Called by the owning scene at the end of a simulation step.
+
+
+ Called by the worker threads to inform the PxTaskManager that a task has completed processing.
+
+
+ Retrieve a task by name The ID of the task with that name, or eNOT_PRESENT if not found
+
+
+ Submit a task with a unique name. The ID of the task with that name, or eNOT_PRESENT if not found
+
+
+ Submit an unnamed task. The ID of the task with that name, or eNOT_PRESENT if not found
+
+
+ Retrieve a task given a task ID The task associated with the ID
+
+
+ Release the PxTaskManager object, referenced dispatchers will not be released
+
+
+ Called by the TaskManager when a task is to be queued for execution. Upon receiving a task, the dispatcher should schedule the task to run. After the task has been run, it should call the release() method and discard its pointer.
+
+
+ Returns the number of available worker threads for this dispatcher. The SDK will use this count to control how many tasks are submitted. By matching the number of tasks with the number of execution units task overhead can be reduced.
+
+
+ The user-implemented run method where the task's work should be performed run() methods must be thread safe, stack friendly (no alloca, etc), and must never block.
+
+
+ Return a user-provided task name for profiling purposes. It does not have to be unique, but unique names are helpful. The name of this task
+
+
+ Implemented by derived implementation classes
+
+
+ Implemented by derived implementation classes
+
+
+ Implemented by derived implementation classes
+
+
+ Implemented by derived implementation classes A task may assume in its release() method that the task system no longer holds references to it - so it may safely run its destructor, recycle itself, etc. provided no additional user references to the task exist
+
+
+ Return PxTaskManager to which this task was submitted Note, can return NULL if task was not submitted, or has been completed.
+
+
+ Release method implementation
+
+
+ Inform the PxTaskManager this task must finish before the given
+
+
+ Inform the PxTaskManager this task cannot start until the given
+
+
+ Manually increment this task's reference count. The task will not be allowed to run until removeReference() is called.
+
+
+ Manually decrement this task's reference count. If the reference count reaches zero, the task will be dispatched.
+
+
+ Return the ref-count for this task
+
+
+ Return the unique ID for this task
+
+
+ Called by PxTaskManager at submission time for initialization Perform simulation step initialization here.
+
+
+ Initialize this task and specify the task that will have its ref count decremented on completion. Submission is deferred until the task's mRefCount is decremented to zero. Note that we only use the PxTaskManager to query the appropriate dispatcher.
+
+
+ Initialize this task and specify the task that will have its ref count decremented on completion. This overload of setContinuation() queries the PxTaskManager from the continuation task, which cannot be NULL.
+
+
+ Retrieves continuation task
+
+
+ Manually decrement this task's reference count. If the reference count reaches zero, the task will be dispatched.
+
+
+ Return the ref-count for this task
+
+
+ Manually increment this task's reference count. The task will not be allowed to run until removeReference() is called.
+
+
+ called by CpuDispatcher after run method has completed Decrements the continuation task's reference count, if specified.
+
+
+ Returns the type of the geometry. The type of the object.
+
+
+ Overlap test for two geometry objects. All combinations are supported except: PxPlaneGeometry vs. {PxPlaneGeometry, PxTriangleMeshGeometry, PxHeightFieldGeometry} PxTriangleMeshGeometry vs. PxHeightFieldGeometry PxHeightFieldGeometry vs. PxHeightFieldGeometry Anything involving PxParticleSystemGeometry, PxTetrahedronMeshGeometry or PxHairSystemGeometry. True if the two geometry objects overlap
+
+
+ Checks if provided geometry is valid. True if geometry is valid.
+
+
+ Find the mesh triangles which touch the specified geometry object. For mesh-vs-mesh overlap tests, please use the specialized function below. Returned triangle indices can be used with [`getTriangle`]() to retrieve the triangle properties. Number of overlaps found, i.e. number of elements written to the results buffer
+
+
+ Find the height field triangles which touch the specified geometry object. Returned triangle indices can be used with [`getTriangle`]() to retrieve the triangle properties. Number of overlaps found, i.e. number of elements written to the results buffer
+
+
+ Compute mass properties based on a provided geometry structure. This constructor assumes the geometry has a density of 1. Mass and inertia tensor scale linearly with density.
+
+
+ Creates a shape sampler Returns the sampler
+
+
+ Returns true if the geometry is valid. True if the current settings are valid A valid box has a positive extent in each direction (halfExtents.x > 0, halfExtents.y > 0, halfExtents.z > 0). It is illegal to call PxRigidActor::createShape and PxPhysics::createShape with a box that has zero extent in any direction.
+
+
+ Raycast test against a BVH. false if query has been aborted
+
+
+ Sweep test against a BVH. false if query has been aborted
+
+
+ Overlap test against a BVH. false if query has been aborted
+
+
+ Frustum culling test against a BVH. This is similar in spirit to an overlap query using a convex object around the frustum. However this specialized query has better performance, and can support more than the 6 planes of a frustum, which can be useful in portal-based engines. On the other hand this test only returns a conservative number of bounds, i.e. some of the returned bounds may actually be outside the frustum volume, close to it but not touching it. This is usually an ok performance trade-off when the function is used for view-frustum culling. false if query has been aborted
+
+
+ Returns the number of bounds in the BVH. You can use [`getBounds`]() to retrieve the bounds. These are the user-defined bounds passed to the BVH builder, not the internal bounds around each BVH node. Number of bounds in the BVH.
+
+
+ Retrieve the read-only bounds in the BVH. These are the user-defined bounds passed to the BVH builder, not the internal bounds around each BVH node.
+
+
+ Retrieve the bounds in the BVH. These bounds can be modified. Call refit() after modifications are done. These are the user-defined bounds passed to the BVH builder, not the internal bounds around each BVH node.
+
+
+ Refit the BVH. This function \"refits\" the tree, i.e. takes the new (leaf) bounding boxes into account and recomputes all the BVH bounds accordingly. This is an O(n) operation with n = number of bounds in the BVH. This works best with minor bounds modifications, i.e. when the bounds remain close to their initial values. With large modifications the tree quality degrades more and more, and subsequent query performance suffers. It might be a better strategy to create a brand new BVH if bounds change drastically. This function refits the whole tree after an arbitrary number of bounds have potentially been modified by users (via getBoundsForModification()). If you only have a small number of bounds to update, it might be more efficient to use setBounds() and partialRefit() instead.
+
+
+ Update single bounds. This is an alternative to getBoundsForModification() / refit(). If you only have a small set of bounds to update, it can be inefficient to call the refit() function, because it refits the whole BVH. Instead, one can update individual bounds with this updateBounds() function. It sets the new bounds and marks the corresponding BVH nodes for partial refit. Once all the individual bounds have been updated, call partialRefit() to only refit the subset of marked nodes. true if success
+
+
+ Refits subset of marked nodes. This is an alternative to the refit() function, to be called after updateBounds() calls. See updateBounds() for details.
+
+
+ Generic BVH traversal function. This can be used to implement custom BVH traversal functions if provided ones are not enough. In particular this can be used to visualize the tree's bounds. false if query has been aborted
+
+
+ Returns true if the geometry is valid. True if the current settings are valid. A valid capsule has radius > 0, halfHeight >= 0. It is illegal to call PxRigidActor::createShape and PxPhysics::createShape with a capsule that has zero radius or height.
+
+
+ Returns the number of vertices. Number of vertices.
+
+
+ Returns the vertices. Array of vertices.
+
+
+ Returns the index buffer. Index buffer.
+
+
+ Returns the number of polygons. Number of polygons.
+
+
+ Returns the polygon data. True if success.
+
+
+ Decrements the reference count of a convex mesh and releases it if the new reference count is zero.
+
+
+ Returns the mass properties of the mesh assuming unit density. The following relationship holds between mass and volume: mass = volume * density The mass of a unit density mesh is equal to its volume, so this function returns the volume of the mesh. Similarly, to obtain the localInertia of an identically shaped object with a uniform density of d, simply multiply the localInertia of the unit density mesh by d.
+
+
+ Returns the local-space (vertex space) AABB from the convex mesh. local-space bounds
+
+
+ Returns the local-space Signed Distance Field for this mesh if it has one. local-space SDF.
+
+
+ This method decides whether a convex mesh is gpu compatible. If the total number of vertices are more than 64 or any number of vertices in a polygon is more than 32, or convex hull data was not cooked with GPU data enabled during cooking or was loaded from a serialized collection, the convex hull is incompatible with GPU collision detection. Otherwise it is compatible. True if the convex hull is gpu compatible
+
+
+ Constructor. By default creates an empty object with a NULL mesh and identity scale.
+
+
+ Returns true if the scaling is an identity transformation.
+
+
+ Returns the inverse of this scaling transformation.
+
+
+ Converts this transformation to a 3x3 matrix representation.
+
+
+ Returns true if combination of negative scale components will cause the triangle normal to flip. The SDK will flip the normals internally.
+
+
+ Returns true if the geometry is valid. True if the current settings are valid for shape creation. A valid convex mesh has a positive scale value in each direction (scale.x > 0, scale.y > 0, scale.z > 0). It is illegal to call PxRigidActor::createShape and PxPhysics::createShape with a convex that has zero extent in any direction.
+
+
+ Computes closest polygon of the convex hull geometry for a given impact point and impact direction. When doing sweeps against a scene, one might want to delay the rather expensive computation of the hit face index for convexes until it is clear the information is really needed and then use this method to get the corresponding face index. Closest face index of the convex geometry.
+
+
+ Returns true if the geometry is valid. True if the current settings are valid A valid sphere has radius > 0. It is illegal to call PxRigidActor::createShape and PxPhysics::createShape with a sphere that has zero radius.
+
+
+ Returns true if the geometry is valid. True if the current settings are valid
+
+
+ Constructor. By default creates an empty object with a NULL mesh and identity scale.
+
+
+ Returns the number of vertices. number of vertices
+
+
+ Returns the vertices. array of vertices
+
+
+ Returns all mesh vertices for modification. This function will return the vertices of the mesh so that their positions can be changed in place. After modifying the vertices you must call refitBVH for the refitting to actually take place. This function maintains the old mesh topology (triangle indices). inplace vertex coordinates for each existing mesh vertex. It is recommended to use this feature for scene queries only. Size of array returned is equal to the number returned by getNbVertices(). This function operates on cooked vertex indices. This means the index mapping and vertex count can be different from what was provided as an input to the cooking routine. To achieve unchanged 1-to-1 index mapping with orignal mesh data (before cooking) please use the following cooking flags: eWELD_VERTICES = 0, eDISABLE_CLEAN_MESH = 1. It is also recommended to make sure that a call to validateTriangleMesh returns true if mesh cleaning is disabled.
+
+
+ Refits BVH for mesh vertices. This function will refit the mesh BVH to correctly enclose the new positions updated by getVerticesForModification. Mesh BVH will not be reoptimized by this function so significantly different new positions will cause significantly reduced performance. New bounds for the entire mesh. For PxMeshMidPhase::eBVH34 trees the refit operation is only available on non-quantized trees (see PxBVH34MidphaseDesc::quantized) PhysX does not keep a mapping from the mesh to mesh shapes that reference it. Call PxShape::setGeometry on each shape which references the mesh, to ensure that internal data structures are updated to reflect the new geometry. PxShape::setGeometry does not guarantee correct/continuous behavior when objects are resting on top of old or new geometry. It is also recommended to make sure that a call to validateTriangleMesh returns true if mesh cleaning is disabled. Active edges information will be lost during refit, the rigid body mesh contact generation might not perform as expected.
+
+
+ Returns the number of triangles. number of triangles
+
+
+ Returns the triangle indices. The indices can be 16 or 32bit depending on the number of triangles in the mesh. Call getTriangleMeshFlags() to know if the indices are 16 or 32 bits. The number of indices is the number of triangles * 3. array of triangles
+
+
+ Reads the PxTriangleMesh flags. See the list of flags [`PxTriangleMeshFlag`] The values of the PxTriangleMesh flags.
+
+
+ Returns the triangle remapping table. The triangles are internally sorted according to various criteria. Hence the internal triangle order does not always match the original (user-defined) order. The remapping table helps finding the old indices knowing the new ones: remapTable[ internalTriangleIndex ] = originalTriangleIndex the remapping table (or NULL if 'PxCookingParams::suppressTriangleMeshRemapTable' has been used)
+
+
+ Decrements the reference count of a triangle mesh and releases it if the new reference count is zero.
+
+
+ Returns material table index of given triangle This function takes a post cooking triangle index. Material table index, or 0xffff if no per-triangle materials are used
+
+
+ Returns the local-space (vertex space) AABB from the triangle mesh. local-space bounds
+
+
+ Returns the local-space Signed Distance Field for this mesh if it has one. local-space SDF.
+
+
+ Returns the resolution of the local-space dense SDF.
+
+
+ Sets whether this mesh should be preferred for SDF projection. By default, meshes are flagged as preferring projection and the decisions on which mesh to project is based on the triangle and vertex count. The model with the fewer triangles is projected onto the SDF of the more detailed mesh. If one of the meshes is set to prefer SDF projection (default) and the other is set to not prefer SDF projection, model flagged as preferring SDF projection will be projected onto the model flagged as not preferring, regardless of the detail of the respective meshes. Where both models are flagged as preferring no projection, the less detailed model will be projected as before.
+
+
+ Returns whether this mesh prefers SDF projection. whether this mesh prefers SDF projection.
+
+
+ Returns the mass properties of the mesh assuming unit density. The following relationship holds between mass and volume: mass = volume * density The mass of a unit density mesh is equal to its volume, so this function returns the volume of the mesh. Similarly, to obtain the localInertia of an identically shaped object with a uniform density of d, simply multiply the localInertia of the unit density mesh by d.
+
+
+ Returns true if the geometry is valid. True if the current settings are valid for shape creation. A valid triangle mesh has a positive scale value in each direction (scale.scale.x > 0, scale.scale.y > 0, scale.scale.z > 0). It is illegal to call PxRigidActor::createShape and PxPhysics::createShape with a triangle mesh that has zero extents in any direction.
+
+
+ Retrieves triangle data from a triangle ID. This function can be used together with [`findOverlapTriangleMesh`]() to retrieve triangle properties. This function will flip the triangle normal whenever triGeom.scale.hasNegativeDeterminant() is true.
+
+
+ Constructor.
+
+
+ Decrements the reference count of a height field and releases it if the new reference count is zero.
+
+
+ Writes out the sample data array. The user provides destBufferSize bytes storage at destBuffer. The data is formatted and arranged as PxHeightFieldDesc.samples. The number of bytes written.
+
+
+ Replaces a rectangular subfield in the sample data array. The user provides the description of a rectangular subfield in subfieldDesc. The data is formatted and arranged as PxHeightFieldDesc.samples. True on success, false on failure. Failure can occur due to format mismatch. Modified samples are constrained to the same height quantization range as the original heightfield. Source samples that are out of range of target heightfield will be clipped with no error. PhysX does not keep a mapping from the heightfield to heightfield shapes that reference it. Call PxShape::setGeometry on each shape which references the height field, to ensure that internal data structures are updated to reflect the new geometry. Please note that PxShape::setGeometry does not guarantee correct/continuous behavior when objects are resting on top of old or new geometry.
+
+
+ Retrieves the number of sample rows in the samples array. The number of sample rows in the samples array.
+
+
+ Retrieves the number of sample columns in the samples array. The number of sample columns in the samples array.
+
+
+ Retrieves the format of the sample data. The format of the sample data.
+
+
+ Retrieves the offset in bytes between consecutive samples in the array. The offset in bytes between consecutive samples in the array.
+
+
+ Retrieves the convex edge threshold. The convex edge threshold.
+
+
+ Retrieves the flags bits, combined from values of the enum ::PxHeightFieldFlag. The flags bits, combined from values of the enum ::PxHeightFieldFlag.
+
+
+ Retrieves the height at the given coordinates in grid space. The height at the given coordinates or 0 if the coordinates are out of range.
+
+
+ Returns material table index of given triangle This function takes a post cooking triangle index. Material table index, or 0xffff if no per-triangle materials are used
+
+
+ Returns a triangle face normal for a given triangle index This function takes a post cooking triangle index. Triangle normal for a given triangle index
+
+
+ Returns heightfield sample of given row and column Heightfield sample
+
+
+ Returns the number of times the heightfield data has been modified This method returns the number of times modifySamples has been called on this heightfield, so that code that has retained state that depends on the heightfield can efficiently determine whether it has been modified. the number of times the heightfield sample data has been modified.
+
+
+ Returns true if the geometry is valid. True if the current settings are valid A valid height field has a positive scale value in each direction (heightScale > 0, rowScale > 0, columnScale > 0). It is illegal to call PxRigidActor::createShape and PxPhysics::createShape with a height field that has zero extents in any direction.
+
+
+ Retrieves triangle data from a triangle ID. This function can be used together with [`findOverlapHeightField`]() to retrieve triangle properties. This function will flip the triangle normal whenever triGeom.scale.hasNegativeDeterminant() is true. TriangleIndex is an index used in internal format, which does have an index out of the bounds in last row. To traverse all tri indices in the HF, the following code can be applied: for (PxU32 row = 0; row < (nbRows - 1); row++) { for (PxU32 col = 0; col < (nbCols - 1); col++) { for (PxU32 k = 0; k < 2; k++) { const PxU32 triIndex = 2 * (row*nbCols + col) + k; .... } } }
+
+
+ Returns true if the geometry is valid. True if the current settings are valid for shape creation.
+
+
+ Returns true if the geometry is valid. True if the current settings are valid for shape creation.
+
+
+ Constructor. By default creates an empty object with a NULL mesh and identity scale.
+
+
+ Returns the number of vertices. number of vertices
+
+
+ Returns the vertices array of vertices
+
+
+ Returns the number of tetrahedrons. number of tetrahedrons
+
+
+ Returns the tetrahedron indices. The indices can be 16 or 32bit depending on the number of tetrahedrons in the mesh. Call getTetrahedronMeshFlags() to know if the indices are 16 or 32 bits. The number of indices is the number of tetrahedrons * 4. array of tetrahedrons
+
+
+ Reads the PxTetrahedronMesh flags. See the list of flags [`PxTetrahedronMeshFlags`] The values of the PxTetrahedronMesh flags.
+
+
+ Returns the tetrahedra remapping table. The tetrahedra are internally sorted according to various criteria. Hence the internal tetrahedron order does not always match the original (user-defined) order. The remapping table helps finding the old indices knowing the new ones: remapTable[ internalTetrahedronIndex ] = originalTetrahedronIndex the remapping table (or NULL if 'PxCookingParams::suppressTriangleMeshRemapTable' has been used)
+
+
+ Returns the local-space (vertex space) AABB from the tetrahedron mesh. local-space bounds
+
+
+ Decrements the reference count of a tetrahedron mesh and releases it if the new reference count is zero.
+
+
+ Returns the index of the tetrahedron that contains a point The index of the tetrahedon containing the point, -1 if not tetrahedron contains the opoint
+
+
+ Returns the index of the tetrahedron closest to a point The index of the tetrahedon closest to the point
+
+
+ Returns true if the geometry is valid. True if the current settings are valid for shape creation. A valid tetrahedron mesh has a positive scale value in each direction (scale.scale.x > 0, scale.scale.y > 0, scale.scale.z > 0). It is illegal to call PxRigidActor::createShape and PxPhysics::createShape with a tetrahedron mesh that has zero extents in any direction.
+
+
+ For raycast hits: true for shapes overlapping with raycast origin. For sweep hits: true for shapes overlapping at zero sweep distance.
+
+
+ Return custom type. The type purpose is for user to differentiate custom geometries. Not used by PhysX. Unique ID of a custom geometry type. User should use DECLARE_CUSTOM_GEOMETRY_TYPE and IMPLEMENT_CUSTOM_GEOMETRY_TYPE intead of overwriting this function.
+
+
+ Return local bounds. Bounding box in the geometry local space.
+
+
+ Raycast. Cast a ray against the geometry in given pose. Number of hits.
+
+
+ Overlap. Test if geometries overlap. True if there is overlap. False otherwise.
+
+
+ Sweep. Sweep one geometry against the other. True if there is hit. False otherwise.
+
+
+ Compute custom geometry mass properties. For geometries usable with dynamic rigidbodies.
+
+
+ Compatible with PhysX's PCM feature. Allows to optimize contact generation.
+
+
+ Constructor.
+
+
+ Returns true if the geometry is valid. True if the current settings are valid for shape creation.
+
+
+ Returns the custom type of the custom geometry.
+
+
+ (re)sets the structure to the default.
+
+
+ Returns true if the descriptor is valid. True if the current settings are valid.
+
+
+ Cooks a heightfield. The results are written to the stream. To create a heightfield object there is an option to precompute some of calculations done while loading the heightfield data. cookHeightField() allows a heightfield description to be cooked into a binary stream suitable for loading and performing collision detection at runtime. true on success
+
+
+ Cooks and creates a heightfield mesh and inserts it into PxPhysics. PxHeightField pointer on success
+
+
+ (re)sets the structure to the default.
+
+
+ returns true if the current settings are valid
+
+
+ Destructor
+
+
+ Compute the normal of the Triangle.
+
+
+ Compute the unnormalized normal of the triangle.
+
+
+ Compute the area of the triangle. Area of the triangle.
+
+
+ Computes a point on the triangle from u and v barycentric coordinates.
+
+
+ Destructor
+
+
+ Decrements the reference count of a tetrahedron mesh and releases it if the new reference count is zero.
+
+
+ Const accecssor to the softbody's collision mesh.
+
+
+ Accecssor to the softbody's collision mesh.
+
+
+ Const accessor to the softbody's simulation mesh.
+
+
+ Accecssor to the softbody's simulation mesh.
+
+
+ Const accessor to the softbodies simulation state.
+
+
+ Accessor to the softbody's auxilary data like mass and rest pose information
+
+
+ Decrements the reference count of a tetrahedron mesh and releases it if the new reference count is zero.
+
+
+ Deletes the actor. Do not keep a reference to the deleted instance. If the actor belongs to a [`PxAggregate`] object, it is automatically removed from the aggregate.
+
+
+ Retrieves the type of actor. The actor type of the actor.
+
+
+ Retrieves the scene which this actor belongs to. Owner Scene. NULL if not part of a scene.
+
+
+ Sets a name string for the object that can be retrieved with getName(). This is for debugging and is not used by the SDK. The string is not copied by the SDK, only the pointer is stored. Default: NULL
+
+
+ Retrieves the name string set with setName(). Name string associated with object.
+
+
+ Retrieves the axis aligned bounding box enclosing the actor. It is not allowed to use this method while the simulation is running (except during PxScene::collide(), in PxContactModifyCallback or in contact report callbacks). The actor's bounding box.
+
+
+ Raises or clears a particular actor flag. See the list of flags [`PxActorFlag`] Sleeping: Does NOT wake the actor up automatically.
+
+
+ Sets the actor flags. See the list of flags [`PxActorFlag`]
+
+
+ Reads the PxActor flags. See the list of flags [`PxActorFlag`] The values of the PxActor flags.
+
+
+ Assigns dynamic actors a dominance group identifier. PxDominanceGroup is a 5 bit group identifier (legal range from 0 to 31). The PxScene::setDominanceGroupPair() lets you set certain behaviors for pairs of dominance groups. By default every dynamic actor is created in group 0. Default: 0 Sleeping: Changing the dominance group does NOT wake the actor up automatically.
+
+
+ Retrieves the value set with setDominanceGroup(). The dominance group of this actor.
+
+
+ Sets the owner client of an actor. This cannot be done once the actor has been placed into a scene. Default: PX_DEFAULT_CLIENT
+
+
+ Returns the owner client that was specified at creation time. This value cannot be changed once the object is placed into the scene.
+
+
+ Retrieves the aggregate the actor might be a part of. The aggregate the actor is a part of, or NULL if the actor does not belong to an aggregate.
+
+
+ Retrieves the value set with PxSetGroup() Collision group is an integer between 0 and 31. The collision group this actor belongs to
+
+
+ Sets which collision group this actor is part of Collision group is an integer between 0 and 31.
+
+
+ Gets 64-bit mask used for collision filtering. See comments for PxGroupsMask The group mask for the actor.
+
+
+ Sets 64-bit mask used for collision filtering. See comments for PxGroupsMask
+
+
+ Deletes the aggregate object. Deleting the PxAggregate object does not delete the aggregated actors. If the PxAggregate object belongs to a scene, the aggregated actors are automatically re-inserted in that scene. If you intend to delete both the PxAggregate and its actors, it is best to release the actors first, then release the PxAggregate when it is empty.
+
+
+ Adds an actor to the aggregate object. A warning is output if the total number of actors is reached, or if the incoming actor already belongs to an aggregate. If the aggregate belongs to a scene, adding an actor to the aggregate also adds the actor to that scene. If the actor already belongs to a scene, a warning is output and the call is ignored. You need to remove the actor from the scene first, before adding it to the aggregate. When a BVH is provided the actor shapes are grouped together. The scene query pruning structure inside PhysX SDK will store/update one bound per actor. The scene queries against such an actor will query actor bounds and then make a local space query against the provided BVH, which is in actor's local space.
+
+
+ Removes an actor from the aggregate object. A warning is output if the incoming actor does not belong to the aggregate. Otherwise the actor is removed from the aggregate. If the aggregate belongs to a scene, the actor is reinserted in that scene. If you intend to delete the actor, it is best to call [`PxActor::release`]() directly. That way the actor will be automatically removed from its aggregate (if any) and not reinserted in a scene.
+
+
+ Adds an articulation to the aggregate object. A warning is output if the total number of actors is reached (every articulation link counts as an actor), or if the incoming articulation already belongs to an aggregate. If the aggregate belongs to a scene, adding an articulation to the aggregate also adds the articulation to that scene. If the articulation already belongs to a scene, a warning is output and the call is ignored. You need to remove the articulation from the scene first, before adding it to the aggregate.
+
+
+ Removes an articulation from the aggregate object. A warning is output if the incoming articulation does not belong to the aggregate. Otherwise the articulation is removed from the aggregate. If the aggregate belongs to a scene, the articulation is reinserted in that scene. If you intend to delete the articulation, it is best to call [`PxArticulationReducedCoordinate::release`]() directly. That way the articulation will be automatically removed from its aggregate (if any) and not reinserted in a scene.
+
+
+ Returns the number of actors contained in the aggregate. You can use [`getActors`]() to retrieve the actor pointers. Number of actors contained in the aggregate.
+
+
+ Retrieves max amount of shapes that can be contained in the aggregate. Max shape size.
+
+
+ Retrieve all actors contained in the aggregate. You can retrieve the number of actor pointers by calling [`getNbActors`]() Number of actor pointers written to the buffer.
+
+
+ Retrieves the scene which this aggregate belongs to. Owner Scene. NULL if not part of a scene.
+
+
+ Retrieves aggregate's self-collision flag. self-collision flag
+
+
+ Visualize joint frames
+
+
+ Visualize joint linear limit
+
+
+ Visualize joint angular limit
+
+
+ Visualize limit cone
+
+
+ Visualize joint double cone
+
+
+ Visualize line
+
+
+ Pre-simulation data preparation when the constraint is marked dirty, this function is called at the start of the simulation step for the SDK to copy the constraint data block.
+
+
+ Constraint release callback When the SDK deletes a PxConstraint object this function is called by the SDK. In general custom constraints should not be deleted directly by applications: rather, the constraint should respond to a release() request by calling PxConstraint::release(), then wait for this call to release its own resources. This function is also called when a PxConstraint object is deleted on cleanup due to destruction of the PxPhysics object.
+
+
+ Center-of-mass shift callback This function is called by the SDK when the CoM of one of the actors is moved. Since the API specifies constraint positions relative to actors, and the constraint shader functions are supplied with coordinates relative to bodies, some synchronization is usually required when the application moves an object's center of mass.
+
+
+ Origin shift callback This function is called by the SDK when the scene origin gets shifted and allows to adjust custom data which contains world space transforms. If the adjustments affect constraint shader data, it is necessary to call PxConstraint::markDirty() to make sure that the data gets synced at the beginning of the next simulation step.
+
+
+ Obtain a reference to a PxBase interface if the constraint has one. If the constraint does not implement the PxBase interface, it should return NULL.
+
+
+ Obtain the pointer to the constraint's constant data
+
+
+ Let the connector know it has been connected to a constraint.
+
+
+ virtual destructor
+
+
+ Allocates constraint data. It is the application's responsibility to release this memory after PxSolveConstraints has completed. The allocated memory. This address must be 16-byte aligned.
+
+
+ Allocates friction data. Friction data can be retained by the application for a given pair and provided as an input to PxSolverContactDesc to improve simulation stability. It is the application's responsibility to release this memory. If this memory is released, the application should ensure it does not pass pointers to this memory to PxSolverContactDesc. The allocated memory. This address must be 4-byte aligned.
+
+
+ Sets the spring rest length for the sub-tendon from the root to this leaf attachment. Setting this on non-leaf attachments has no effect.
+
+
+ Gets the spring rest length for the sub-tendon from the root to this leaf attachment. The rest length.
+
+
+ Sets the low and high limit on the length of the sub-tendon from the root to this leaf attachment. Setting this on non-leaf attachments has no effect.
+
+
+ Gets the low and high limit on the length of the sub-tendon from the root to this leaf attachment. Struct with the low and high limit.
+
+
+ Sets the attachment's relative offset in the link actor frame.
+
+
+ Gets the attachment's relative offset in the link actor frame. The relative offset in the link actor frame.
+
+
+ Sets the attachment coefficient.
+
+
+ Gets the attachment coefficient. The scale that the distance between this attachment and its parent is multiplied by when summing up the spatial tendon's length.
+
+
+ Gets the articulation link. The articulation link that this attachment is attached to.
+
+
+ Gets the parent attachment. The parent attachment.
+
+
+ Indicates that this attachment is a leaf, and thus defines a sub-tendon from the root to this attachment. True: This attachment is a leaf and has zero children; False: Not a leaf.
+
+
+ Gets the spatial tendon that the attachment is a part of. The tendon.
+
+
+ Releases the attachment. Releasing the attachment is not allowed while the articulation is in a scene. In order to release the attachment, remove and then re-add the articulation to the scene.
+
+
+ Returns the string name of the dynamic type. The string name.
+
+
+ Sets the tendon joint coefficient. RecipCoefficient is commonly expected to be 1/coefficient, but it can be set to different values to tune behavior; for example, zero can be used to have a joint axis only participate in the length computation of the tendon, but not have any tendon force applied to it.
+
+
+ Gets the tendon joint coefficient.
+
+
+ Gets the articulation link. The articulation link (and its incoming joint in particular) that this tendon joint is associated with.
+
+
+ Gets the parent tendon joint. The parent tendon joint.
+
+
+ Gets the tendon that the joint is a part of. The tendon.
+
+
+ Releases a tendon joint. Releasing a tendon joint is not allowed while the articulation is in a scene. In order to release the joint, remove and then re-add the articulation to the scene.
+
+
+ Returns the string name of the dynamic type. The string name.
+
+
+ Sets the spring stiffness term acting on the tendon length.
+
+
+ Gets the spring stiffness of the tendon. The spring stiffness.
+
+
+ Sets the damping term acting both on the tendon length and tendon-length limits.
+
+
+ Gets the damping term acting both on the tendon length and tendon-length limits. The damping term.
+
+
+ Sets the limit stiffness term acting on the tendon's length limits. For spatial tendons, this parameter applies to all its leaf attachments / sub-tendons.
+
+
+ Gets the limit stiffness term acting on the tendon's length limits. For spatial tendons, this parameter applies to all its leaf attachments / sub-tendons. The limit stiffness term.
+
+
+ Sets the length offset term for the tendon. An offset defines an amount to be added to the accumulated length computed for the tendon. It allows the application to actuate the tendon by shortening or lengthening it.
+
+
+ Gets the length offset term for the tendon. The offset term.
+
+
+ Gets the articulation that the tendon is a part of. The articulation.
+
+
+ Releases a tendon to remove it from the articulation and free its associated memory. When an articulation is released, its attached tendons are automatically released. Releasing a tendon is not allowed while the articulation is in a scene. In order to release the tendon, remove and then re-add the articulation to the scene.
+
+
+ Creates an articulation attachment and adds it to the list of children in the parent attachment. Creating an attachment is not allowed while the articulation is in a scene. In order to add the attachment, remove and then re-add the articulation to the scene. The newly-created attachment if creation was successful, otherwise a null pointer.
+
+
+ Fills a user-provided buffer of attachment pointers with the set of attachments. The number of attachments that were filled into the user buffer.
+
+
+ Returns the number of attachments in the tendon. The number of attachments.
+
+
+ Returns the string name of the dynamic type. The string name.
+
+
+ Creates an articulation tendon joint and adds it to the list of children in the parent tendon joint. Creating a tendon joint is not allowed while the articulation is in a scene. In order to add the joint, remove and then re-add the articulation to the scene. The newly-created tendon joint if creation was successful, otherwise a null pointer. - The axis motion must not be configured as PxArticulationMotion::eLOCKED. - The axis cannot be part of a fixed joint, i.e. joint configured as PxArticulationJointType::eFIX.
+
+
+ Fills a user-provided buffer of tendon-joint pointers with the set of tendon joints. The number of tendon joints filled into the user buffer.
+
+
+ Returns the number of tendon joints in the tendon. The number of tendon joints.
+
+
+ Sets the spring rest length of the tendon. The accumulated \"length\" of a fixed tendon is a linear combination of the joint axis positions that the tendon is associated with, scaled by the respective tendon joints' coefficients. As such, when the joint positions of all joints are zero, the accumulated length of a fixed tendon is zero. The spring of the tendon is not exerting any force on the articulation when the rest length is equal to the tendon's accumulated length plus the tendon offset.
+
+
+ Gets the spring rest length of the tendon. The spring rest length of the tendon.
+
+
+ Sets the low and high limit on the length of the tendon. The limits, together with the damping and limit stiffness parameters, act on the accumulated length of the tendon.
+
+
+ Gets the low and high limit on the length of the tendon. Struct with the low and high limit.
+
+
+ Returns the string name of the dynamic type. The string name.
+
+
+ Releases an articulation cache.
+
+
+ Releases the sensor. Releasing a sensor is not allowed while the articulation is in a scene. In order to release a sensor, remove and then re-add the articulation to the scene.
+
+
+ Returns the spatial force in the local frame of the sensor. The spatial force. This call is not allowed while the simulation is running except in a split simulation during [`PxScene::collide`]() and up to #PxScene::advance(), and in PxContactModifyCallback or in contact report callbacks.
+
+
+ Returns the relative pose between this sensor and the body frame of the link that the sensor is attached to. The link body frame is at the center of mass and aligned with the principal axes of inertia, see PxRigidBody::getCMassLocalPose. The transform link body frame -> sensor frame.
+
+
+ Sets the relative pose between this sensor and the body frame of the link that the sensor is attached to. The link body frame is at the center of mass and aligned with the principal axes of inertia, see PxRigidBody::getCMassLocalPose. Setting the sensor relative pose is not allowed while the articulation is in a scene. In order to set the pose, remove and then re-add the articulation to the scene.
+
+
+ Returns the link that this sensor is attached to. A pointer to the link.
+
+
+ Returns the index of this sensor inside the articulation. The return value is only valid for sensors attached to articulations that are in a scene. The low-level index, or 0xFFFFFFFF if the articulation is not in a scene.
+
+
+ Returns the articulation that this sensor is part of. A pointer to the articulation.
+
+
+ Returns the sensor's flags. The current set of flags of the sensor.
+
+
+ Sets a flag of the sensor. Setting the sensor flags is not allowed while the articulation is in a scene. In order to set the flags, remove and then re-add the articulation to the scene.
+
+
+ Returns the string name of the dynamic type. The string name.
+
+
+ Returns the scene which this articulation belongs to. Owner Scene. NULL if not part of a scene.
+
+
+ Sets the solver iteration counts for the articulation. The solver iteration count determines how accurately contacts, drives, and limits are resolved. Setting a higher position iteration count may therefore help in scenarios where the articulation is subject to many constraints; for example, a manipulator articulation with drives and joint limits that is grasping objects, or several such articulations interacting through contacts. Other situations where higher position iterations may improve simulation fidelity are: large mass ratios within the articulation or between the articulation and an object in contact with it; or strong drives in the articulation being used to manipulate a light object. If intersecting bodies are being depenetrated too violently, increase the number of velocity iterations. More velocity iterations will drive the relative exit velocity of the intersecting objects closer to the correct value given the restitution. This call may not be made during simulation.
+
+
+ Returns the solver iteration counts.
+
+
+ Returns true if this articulation is sleeping. When an actor does not move for a period of time, it is no longer simulated in order to save time. This state is called sleeping. However, because the object automatically wakes up when it is either touched by an awake object, or a sleep-affecting property is changed by the user, the entire sleep mechanism should be transparent to the user. An articulation can only go to sleep if all links are ready for sleeping. An articulation is guaranteed to be awake if at least one of the following holds: The wake counter is positive (see [`setWakeCounter`]()). The linear or angular velocity of any link is non-zero. A non-zero force or torque has been applied to the articulation or any of its links. If an articulation is sleeping, the following state is guaranteed: The wake counter is zero. The linear and angular velocity of all links is zero. There is no force update pending. When an articulation gets inserted into a scene, it will be considered asleep if all the points above hold, else it will be treated as awake. If an articulation is asleep after the call to [`PxScene::fetchResults`]() returns, it is guaranteed that the poses of the links were not changed. You can use this information to avoid updating the transforms of associated objects. True if the articulation is sleeping. This call may only be made on articulations that are in a scene, and may not be made during simulation, except in a split simulation in-between [`PxScene::fetchCollision`] and #PxScene::advance.
+
+
+ Sets the mass-normalized energy threshold below which the articulation may go to sleep. The articulation will sleep if the energy of each link is below this threshold. This call may not be made during simulation.
+
+
+ Returns the mass-normalized energy below which the articulation may go to sleep. The energy threshold for sleeping.
+
+
+ Sets the mass-normalized kinetic energy threshold below which the articulation may participate in stabilization. Articulations whose kinetic energy divided by their mass is above this threshold will not participate in stabilization. This value has no effect if PxSceneFlag::eENABLE_STABILIZATION was not enabled on the PxSceneDesc. Default: 0.01 * PxTolerancesScale::speed * PxTolerancesScale::speed This call may not be made during simulation.
+
+
+ Returns the mass-normalized kinetic energy below which the articulation may participate in stabilization. Articulations whose kinetic energy divided by their mass is above this threshold will not participate in stabilization. The energy threshold for participating in stabilization.
+
+
+ Sets the wake counter for the articulation in seconds. - The wake counter value determines the minimum amount of time until the articulation can be put to sleep. - An articulation will not be put to sleep if the energy is above the specified threshold (see [`setSleepThreshold`]()) or if other awake objects are touching it. - Passing in a positive value will wake up the articulation automatically. Default: 0.4s (which corresponds to 20 frames for a time step of 0.02s) This call may not be made during simulation, except in a split simulation in-between [`PxScene::fetchCollision`] and #PxScene::advance.
+
+
+ Returns the wake counter of the articulation in seconds. The wake counter of the articulation in seconds. This call may not be made during simulation, except in a split simulation in-between [`PxScene::fetchCollision`] and #PxScene::advance.
+
+
+ Wakes up the articulation if it is sleeping. - The articulation will get woken up and might cause other touching objects to wake up as well during the next simulation step. - This will set the wake counter of the articulation to the value specified in [`PxSceneDesc::wakeCounterResetValue`]. This call may only be made on articulations that are in a scene, and may not be made during simulation, except in a split simulation in-between [`PxScene::fetchCollision`] and #PxScene::advance.
+
+
+ Forces the articulation to sleep. - The articulation will stay asleep during the next simulation step if not touched by another non-sleeping actor. - This will set any applied force, the velocity, and the wake counter of all bodies in the articulation to zero. This call may not be made during simulation, and may only be made on articulations that are in a scene.
+
+
+ Sets the limit on the magnitude of the linear velocity of the articulation's center of mass. - The limit acts on the linear velocity of the entire articulation. The velocity is calculated from the total momentum and the spatial inertia of the articulation. - The limit only applies to floating-base articulations. - A benefit of the COM velocity limit is that it is evenly applied to the whole articulation, which results in fewer visual artifacts compared to link rigid-body damping or joint-velocity limits. However, these per-link or per-degree-of-freedom limits may still help avoid numerical issues. This call may not be made during simulation.
+
+
+ Gets the limit on the magnitude of the linear velocity of the articulation's center of mass. The maximal linear velocity magnitude.
+
+
+ Sets the limit on the magnitude of the angular velocity at the articulation's center of mass. - The limit acts on the angular velocity of the entire articulation. The velocity is calculated from the total momentum and the spatial inertia of the articulation. - The limit only applies to floating-base articulations. - A benefit of the COM velocity limit is that it is evenly applied to the whole articulation, which results in fewer visual artifacts compared to link rigid-body damping or joint-velocity limits. However, these per-link or per-degree-of-freedom limits may still help avoid numerical issues. This call may not be made during simulation.
+
+
+ Gets the limit on the magnitude of the angular velocity at the articulation's center of mass. The maximal angular velocity magnitude.
+
+
+ Adds a link to the articulation with default attribute values. The new link, or NULL if the link cannot be created. Creating a link is not allowed while the articulation is in a scene. In order to add a link, remove and then re-add the articulation to the scene.
+
+
+ Releases the articulation, and all its links and corresponding joints. Attached sensors and tendons are released automatically when the articulation is released. This call may not be made during simulation.
+
+
+ Returns the number of links in the articulation. The number of links.
+
+
+ Returns the set of links in the articulation in the order that they were added to the articulation using createLink. The number of links written into the buffer.
+
+
+ Returns the number of shapes in the articulation. The number of shapes.
+
+
+ Sets a name string for the articulation that can be retrieved with getName(). This is for debugging and is not used by the SDK. The string is not copied by the SDK, only the pointer is stored.
+
+
+ Returns the name string set with setName(). Name string associated with the articulation.
+
+
+ Returns the axis-aligned bounding box enclosing the articulation. The articulation's bounding box. It is not allowed to use this method while the simulation is running, except in a split simulation during [`PxScene::collide`]() and up to #PxScene::advance(), and in PxContactModifyCallback or in contact report callbacks.
+
+
+ Returns the aggregate the articulation might be a part of. The aggregate the articulation is a part of, or NULL if the articulation does not belong to an aggregate.
+
+
+ Sets flags on the articulation. This call may not be made during simulation.
+
+
+ Raises or clears a flag on the articulation. This call may not be made during simulation.
+
+
+ Returns the articulation's flags. The flags.
+
+
+ Returns the total number of joint degrees-of-freedom (DOFs) of the articulation. - The six DOFs of the base of a floating-base articulation are not included in this count. - Example: Both a fixed-base and a floating-base double-pendulum with two revolute joints will have getDofs() == 2. - The return value is only valid for articulations that are in a scene. The number of joint DOFs, or 0xFFFFFFFF if the articulation is not in a scene.
+
+
+ Creates an articulation cache that can be used to read and write internal articulation data. - When the structure of the articulation changes (e.g. adding a link or sensor) after the cache was created, the cache needs to be released and recreated. - Free the memory allocated for the cache by calling the release() method on the cache. - Caches can only be created by articulations that are in a scene. The cache, or NULL if the articulation is not in a scene.
+
+
+ Returns the size of the articulation cache in bytes. - The size does not include: the user-allocated memory for the coefficient matrix or lambda values; the scratch-related memory/members; and the cache version. See comment in [`PxArticulationCache`]. - The return value is only valid for articulations that are in a scene. The byte size of the cache, or 0xFFFFFFFF if the articulation is not in a scene.
+
+
+ Zeroes all data in the articulation cache, except user-provided and scratch memory, and cache version. This call may only be made on articulations that are in a scene.
+
+
+ Applies the data in the cache to the articulation. This call wakes the articulation if it is sleeping, and the autowake parameter is true (default) or: - a nonzero joint velocity is applied or - a nonzero joint force is applied or - a nonzero root velocity is applied This call may only be made on articulations that are in a scene, and may not be made during simulation.
+
+
+ Copies internal data of the articulation to the cache. This call may only be made on articulations that are in a scene, and may not be made during simulation.
+
+
+ Converts maximal-coordinate joint DOF data to reduced coordinates. - Indexing into the maximal joint DOF data is via the link's low-level index minus 1 (the root link is not included). - The reduced-coordinate data follows the cache indexing convention, see PxArticulationCache::jointVelocity. The articulation must be in a scene.
+
+
+ Converts reduced-coordinate joint DOF data to maximal coordinates. - Indexing into the maximal joint DOF data is via the link's low-level index minus 1 (the root link is not included). - The reduced-coordinate data follows the cache indexing convention, see PxArticulationCache::jointVelocity. The articulation must be in a scene.
+
+
+ Prepares common articulation data based on articulation pose for inverse dynamics calculations. Usage: 1. Set articulation pose (joint positions and base transform) via articulation cache and applyCache(). 1. Call commonInit. 1. Call inverse dynamics computation method. This call may only be made on articulations that are in a scene, and may not be made during simulation.
+
+
+ Computes the joint DOF forces required to counteract gravitational forces for the given articulation pose. - Inputs - Articulation pose (joint positions + base transform). - Outputs - Joint forces to counteract gravity (in cache). - The joint forces returned are determined purely by gravity for the articulation in the current joint and base pose, and joints at rest; i.e. external forces, joint velocities, and joint accelerations are set to zero. Joint drives are also not considered in the computation. - commonInit() must be called before the computation, and after setting the articulation pose via applyCache(). This call may only be made on articulations that are in a scene, and may not be made during simulation.
+
+
+ Computes the joint DOF forces required to counteract Coriolis and centrifugal forces for the given articulation state. - Inputs - Articulation state (joint positions and velocities (in cache), and base transform and spatial velocity). - Outputs - Joint forces to counteract Coriolis and centrifugal forces (in cache). - The joint forces returned are determined purely by the articulation's state; i.e. external forces, gravity, and joint accelerations are set to zero. Joint drives and potential damping terms, such as link angular or linear damping, or joint friction, are also not considered in the computation. - Prior to the computation, update/set the base spatial velocity with PxArticulationCache::rootLinkData and applyCache(). - commonInit() must be called before the computation, and after setting the articulation pose via applyCache(). This call may only be made on articulations that are in a scene, and may not be made during simulation.
+
+
+ Computes the joint DOF forces required to counteract external spatial forces applied to articulation links. - Inputs - External forces on links (in cache), articulation pose (joint positions + base transform). - Outputs - Joint forces to counteract the external forces (in cache). - Only the external spatial forces provided in the cache and the articulation pose are considered in the computation. - The external spatial forces are with respect to the links' centers of mass, and not the actor's origin. - commonInit() must be called before the computation, and after setting the articulation pose via applyCache(). This call may only be made on articulations that are in a scene, and may not be made during simulation.
+
+
+ Computes the joint accelerations for the given articulation state and joint forces. - Inputs - Joint forces (in cache) and articulation state (joint positions and velocities (in cache), and base transform and spatial velocity). - Outputs - Joint accelerations (in cache). - The computation includes Coriolis terms and gravity. However, joint drives and potential damping terms are not considered in the computation (for example, linear link damping or joint friction). - Prior to the computation, update/set the base spatial velocity with PxArticulationCache::rootLinkData and applyCache(). - commonInit() must be called before the computation, and after setting the articulation pose via applyCache(). This call may only be made on articulations that are in a scene, and may not be made during simulation.
+
+
+ Computes the joint forces for the given articulation state and joint accelerations, not considering gravity. - Inputs - Joint accelerations (in cache) and articulation state (joint positions and velocities (in cache), and base transform and spatial velocity). - Outputs - Joint forces (in cache). - The computation includes Coriolis terms. However, joint drives and potential damping terms are not considered in the computation (for example, linear link damping or joint friction). - Prior to the computation, update/set the base spatial velocity with PxArticulationCache::rootLinkData and applyCache(). - commonInit() must be called before the computation, and after setting the articulation pose via applyCache(). This call may only be made on articulations that are in a scene, and may not be made during simulation.
+
+
+ Compute the dense Jacobian for the articulation in world space, including the DOFs of a potentially floating base. This computes the dense representation of an inherently sparse matrix. Multiplication with this matrix maps joint space velocities to world-space linear and angular (i.e. spatial) velocities of the centers of mass of the links. This call may only be made on articulations that are in a scene, and may not be made during simulation.
+
+
+ Computes the coefficient matrix for contact forces. - The matrix dimension is getCoefficientMatrixSize() = getDofs() * getNbLoopJoints(), and the DOF (column) indexing follows the internal DOF order, see PxArticulationCache::jointVelocity. - Each column in the matrix is the joint forces effected by a contact based on impulse strength 1. - The user must allocate memory for PxArticulationCache::coefficientMatrix where the required size of the PxReal array is equal to getCoefficientMatrixSize(). - commonInit() must be called before the computation, and after setting the articulation pose via applyCache(). This call may only be made on articulations that are in a scene, and may not be made during simulation.
+
+
+ Computes the lambda values when the test impulse is 1. - The user must allocate memory for PxArticulationCache::lambda where the required size of the PxReal array is equal to getNbLoopJoints(). - commonInit() must be called before the computation, and after setting the articulation pose via applyCache(). True if convergence was achieved within maxIter; False if convergence was not achieved or the operation failed otherwise. This call may only be made on articulations that are in a scene, and may not be made during simulation.
+
+
+ Compute the joint-space inertia matrix that maps joint accelerations to joint forces: forces = M * accelerations. - Inputs - Articulation pose (joint positions and base transform). - Outputs - Mass matrix (in cache). commonInit() must be called before the computation, and after setting the articulation pose via applyCache(). This call may only be made on articulations that are in a scene, and may not be made during simulation.
+
+
+ Adds a loop joint to the articulation system for inverse dynamics. This call may not be made during simulation.
+
+
+ Removes a loop joint from the articulation for inverse dynamics. This call may not be made during simulation.
+
+
+ Returns the number of loop joints in the articulation for inverse dynamics. The number of loop joints.
+
+
+ Returns the set of loop constraints (i.e. joints) in the articulation. The number of constraints written into the buffer.
+
+
+ Returns the required size of the coefficient matrix in the articulation. Size of the coefficient matrix (equal to getDofs() * getNbLoopJoints()). This call may only be made on articulations that are in a scene.
+
+
+ Sets the root link transform (world to actor frame). - For performance, prefer PxArticulationCache::rootLinkData to set the root link transform in a batch articulation state update. - Use updateKinematic() after all state updates to the articulation via non-cache API such as this method, in order to update link states for the next simulation frame or querying. This call may not be made during simulation.
+
+
+ Returns the root link transform (world to actor frame). For performance, prefer PxArticulationCache::rootLinkData to get the root link transform in a batch query. The root link transform. This call is not allowed while the simulation is running except in a split simulation during [`PxScene::collide`]() and up to #PxScene::advance(), and in PxContactModifyCallback or in contact report callbacks.
+
+
+ Sets the root link linear center-of-mass velocity. - The linear velocity is with respect to the link's center of mass and not the actor frame origin. - For performance, prefer PxArticulationCache::rootLinkData to set the root link velocity in a batch articulation state update. - The articulation is woken up if the input velocity is nonzero (ignoring autowake) and the articulation is in a scene. - Use updateKinematic() after all state updates to the articulation via non-cache API such as this method, in order to update link states for the next simulation frame or querying. This call may not be made during simulation, except in a split simulation in-between [`PxScene::fetchCollision`] and #PxScene::advance.
+
+
+ Gets the root link center-of-mass linear velocity. - The linear velocity is with respect to the link's center of mass and not the actor frame origin. - For performance, prefer PxArticulationCache::rootLinkData to get the root link velocity in a batch query. The root link center-of-mass linear velocity. This call is not allowed while the simulation is running except in a split simulation during [`PxScene::collide`]() and up to #PxScene::advance(), and in PxContactModifyCallback or in contact report callbacks.
+
+
+ Sets the root link angular velocity. - For performance, prefer PxArticulationCache::rootLinkData to set the root link velocity in a batch articulation state update. - The articulation is woken up if the input velocity is nonzero (ignoring autowake) and the articulation is in a scene. - Use updateKinematic() after all state updates to the articulation via non-cache API such as this method, in order to update link states for the next simulation frame or querying. This call may not be made during simulation, except in a split simulation in-between [`PxScene::fetchCollision`] and #PxScene::advance.
+
+
+ Gets the root link angular velocity. For performance, prefer PxArticulationCache::rootLinkData to get the root link velocity in a batch query. The root link angular velocity. This call is not allowed while the simulation is running except in a split simulation during [`PxScene::collide`]() and up to #PxScene::advance(), and in PxContactModifyCallback or in contact report callbacks.
+
+
+ Returns the (classical) link acceleration in world space for the given low-level link index. - The returned acceleration is not a spatial, but a classical, i.e. body-fixed acceleration (https://en.wikipedia.org/wiki/Spatial_acceleration). - The (linear) acceleration is with respect to the link's center of mass and not the actor frame origin. The link's center-of-mass classical acceleration, or 0 if the call is made before the articulation participated in a first simulation step. This call may only be made on articulations that are in a scene, and it is not allowed to use this method while the simulation is running except in a split simulation during [`PxScene::collide`]() and up to #PxScene::advance(), and in PxContactModifyCallback or in contact report callbacks.
+
+
+ Returns the GPU articulation index. The GPU index, or 0xFFFFFFFF if the articulation is not in a scene or PxSceneFlag::eSUPPRESS_READBACK is not set.
+
+
+ Creates a spatial tendon to attach to the articulation with default attribute values. The new spatial tendon. Creating a spatial tendon is not allowed while the articulation is in a scene. In order to add the tendon, remove and then re-add the articulation to the scene.
+
+
+ Creates a fixed tendon to attach to the articulation with default attribute values. The new fixed tendon. Creating a fixed tendon is not allowed while the articulation is in a scene. In order to add the tendon, remove and then re-add the articulation to the scene.
+
+
+ Creates a force sensor attached to a link of the articulation. The new sensor. Creating a sensor is not allowed while the articulation is in a scene. In order to add the sensor, remove and then re-add the articulation to the scene.
+
+
+ Returns the spatial tendons attached to the articulation. The order of the tendons in the buffer is not necessarily identical to the order in which the tendons were added to the articulation. The number of tendons written into the buffer.
+
+
+ Returns the number of spatial tendons in the articulation. The number of tendons.
+
+
+ Returns the fixed tendons attached to the articulation. The order of the tendons in the buffer is not necessarily identical to the order in which the tendons were added to the articulation. The number of tendons written into the buffer.
+
+
+ Returns the number of fixed tendons in the articulation. The number of tendons.
+
+
+ Returns the sensors attached to the articulation. The order of the sensors in the buffer is not necessarily identical to the order in which the sensors were added to the articulation. The number of sensors written into the buffer.
+
+
+ Returns the number of sensors in the articulation. The number of sensors.
+
+
+ Update link velocities and/or positions in the articulation. For performance, prefer the PxArticulationCache API that performs batch articulation state updates. If the application updates the root state (position and velocity) or joint state via any combination of the non-cache API calls - setRootGlobalPose(), setRootLinearVelocity(), setRootAngularVelocity() - PxArticulationJointReducedCoordinate::setJointPosition(), PxArticulationJointReducedCoordinate::setJointVelocity() the application needs to call this method after the state setting in order to update the link states for the next simulation frame or querying. Use - PxArticulationKinematicFlag::ePOSITION after any changes to the articulation root or joint positions using non-cache API calls. Updates links' positions and velocities. - PxArticulationKinematicFlag::eVELOCITY after velocity-only changes to the articulation root or joints using non-cache API calls. Updates links' velocities only. This call may only be made on articulations that are in a scene, and may not be made during simulation.
+
+
+ Gets the parent articulation link of this joint. The parent link.
+
+
+ Sets the joint pose in the parent link actor frame. This call is not allowed while the simulation is running.
+
+
+ Gets the joint pose in the parent link actor frame. The joint pose.
+
+
+ Gets the child articulation link of this joint. The child link.
+
+
+ Sets the joint pose in the child link actor frame. This call is not allowed while the simulation is running.
+
+
+ Gets the joint pose in the child link actor frame. The joint pose.
+
+
+ Sets the joint type (e.g. revolute). Setting the joint type is not allowed while the articulation is in a scene. In order to set the joint type, remove and then re-add the articulation to the scene.
+
+
+ Gets the joint type. The joint type.
+
+
+ Sets the joint motion for a given axis. Setting the motion of joint axes is not allowed while the articulation is in a scene. In order to set the motion, remove and then re-add the articulation to the scene.
+
+
+ Returns the joint motion for the given axis. The joint motion of the given axis.
+
+
+ Sets the joint limits for a given axis. - The motion of the corresponding axis should be set to PxArticulationMotion::eLIMITED in order for the limits to be enforced. - The lower limit should be strictly smaller than the higher limit. If the limits should be equal, use PxArticulationMotion::eLOCKED and an appropriate offset in the parent/child joint frames. This call is not allowed while the simulation is running. For spherical joints, limit.min and limit.max must both be in range [-Pi, Pi].
+
+
+ Returns the joint limits for a given axis. The joint limits.
+
+
+ Configures a joint drive for the given axis. See PxArticulationDrive for parameter details; and the manual for further information, and the drives' implicit spring-damper (i.e. PD control) implementation in particular. This call is not allowed while the simulation is running.
+
+
+ Gets the joint drive configuration for the given axis. The drive parameters.
+
+
+ Sets the joint drive position target for the given axis. The target units are linear units (equivalent to scene units) for a translational axis, or rad for a rotational axis. This call is not allowed while the simulation is running. For spherical joints, target must be in range [-Pi, Pi]. The target is specified in the parent frame of the joint. If Gp, Gc are the parent and child actor poses in the world frame and Lp, Lc are the parent and child joint frames expressed in the parent and child actor frames then the joint will drive the parent and child links to poses that obey Gp * Lp * J = Gc * Lc. For joints restricted to angular motion, J has the form PxTranfsorm(PxVec3(PxZero), PxExp(PxVec3(twistTarget, swing1Target, swing2Target))). For joints restricted to linear motion, J has the form PxTransform(PxVec3(XTarget, YTarget, ZTarget), PxQuat(PxIdentity)). For spherical joints with more than 1 degree of freedom, the joint target angles taken together can collectively represent a rotation of greater than Pi around a vector. When this happens the rotation that matches the joint drive target is not the shortest path rotation. The joint pose J that is the outcome after driving to the target pose will always be the equivalent of the shortest path rotation.
+
+
+ Returns the joint drive position target for the given axis. The target position.
+
+
+ Sets the joint drive velocity target for the given axis. The target units are linear units (equivalent to scene units) per second for a translational axis, or radians per second for a rotational axis. This call is not allowed while the simulation is running.
+
+
+ Returns the joint drive velocity target for the given axis. The target velocity.
+
+
+ Sets the joint armature for the given axis. - The armature is directly added to the joint-space spatial inertia of the corresponding axis. - The armature is in mass units for a prismatic (i.e. linear) joint, and in mass units * (scene linear units)^2 for a rotational joint. This call is not allowed while the simulation is running.
+
+
+ Gets the joint armature for the given axis. The armature set on the given axis.
+
+
+ Sets the joint friction coefficient, which applies to all joint axes. - The joint friction is unitless and relates the magnitude of the spatial force [F_trans, T_trans] transmitted from parent to child link to the maximal friction force F_resist that may be applied by the solver to resist joint motion, per axis; i.e. |F_resist| < coefficient * (|F_trans| + |T_trans|), where F_resist may refer to a linear force or torque depending on the joint axis. - The simulated friction effect is therefore similar to static and Coulomb friction. In order to simulate dynamic joint friction, use a joint drive with zero stiffness and zero velocity target, and an appropriately dimensioned damping parameter. This call is not allowed while the simulation is running.
+
+
+ Gets the joint friction coefficient. The joint friction coefficient.
+
+
+ Sets the maximal joint velocity enforced for all axes. - The solver will apply appropriate joint-space impulses in order to enforce the per-axis joint-velocity limit. - The velocity units are linear units (equivalent to scene units) per second for a translational axis, or radians per second for a rotational axis. This call is not allowed while the simulation is running.
+
+
+ Gets the maximal joint velocity enforced for all axes. The maximal per-axis joint velocity.
+
+
+ Sets the joint position for the given axis. - For performance, prefer PxArticulationCache::jointPosition to set joint positions in a batch articulation state update. - Use PxArticulationReducedCoordinate::updateKinematic after all state updates to the articulation via non-cache API such as this method, in order to update link states for the next simulation frame or querying. This call is not allowed while the simulation is running. For spherical joints, jointPos must be in range [-Pi, Pi]. Joint position is specified in the parent frame of the joint. If Gp, Gc are the parent and child actor poses in the world frame and Lp, Lc are the parent and child joint frames expressed in the parent and child actor frames then the parent and child links will be given poses that obey Gp * Lp * J = Gc * Lc with J denoting the joint pose. For joints restricted to angular motion, J has the form PxTranfsorm(PxVec3(PxZero), PxExp(PxVec3(twistPos, swing1Pos, swing2Pos))). For joints restricted to linear motion, J has the form PxTransform(PxVec3(xPos, yPos, zPos), PxQuat(PxIdentity)). For spherical joints with more than 1 degree of freedom, the input joint positions taken together can collectively represent a rotation of greater than Pi around a vector. When this happens the rotation that matches the joint positions is not the shortest path rotation. The joint pose J that is the outcome of setting and applying the joint positions will always be the equivalent of the shortest path rotation.
+
+
+ Gets the joint position for the given axis, i.e. joint degree of freedom (DOF). For performance, prefer PxArticulationCache::jointPosition to get joint positions in a batch query. The joint position in linear units (equivalent to scene units) for a translational axis, or radians for a rotational axis. This call is not allowed while the simulation is running except in a split simulation during [`PxScene::collide`]() and up to #PxScene::advance(), and in PxContactModifyCallback or in contact report callbacks.
+
+
+ Sets the joint velocity for the given axis. - For performance, prefer PxArticulationCache::jointVelocity to set joint velocities in a batch articulation state update. - Use PxArticulationReducedCoordinate::updateKinematic after all state updates to the articulation via non-cache API such as this method, in order to update link states for the next simulation frame or querying. This call is not allowed while the simulation is running.
+
+
+ Gets the joint velocity for the given axis. For performance, prefer PxArticulationCache::jointVelocity to get joint velocities in a batch query. The joint velocity in linear units (equivalent to scene units) per second for a translational axis, or radians per second for a rotational axis. This call is not allowed while the simulation is running except in a split simulation during [`PxScene::collide`]() and up to #PxScene::advance(), and in PxContactModifyCallback or in contact report callbacks.
+
+
+ Returns the string name of the dynamic type. The string name.
+
+
+ Decrements the reference count of a shape and releases it if the new reference count is zero. Note that in releases prior to PhysX 3.3 this method did not have reference counting semantics and was used to destroy a shape created with PxActor::createShape(). In PhysX 3.3 and above, this usage is deprecated, instead, use PxRigidActor::detachShape() to detach a shape from an actor. If the shape to be detached was created with PxActor::createShape(), the actor holds the only counted reference, and so when the shape is detached it will also be destroyed.
+
+
+ Adjust the geometry of the shape. The type of the passed in geometry must match the geometry type of the shape. It is not allowed to change the geometry type of a shape. This function does not guarantee correct/continuous behavior when objects are resting on top of old or new geometry.
+
+
+ Retrieve a reference to the shape's geometry. The returned reference has the same lifetime as the PxShape it comes from. Reference to internal PxGeometry object.
+
+
+ Retrieves the actor which this shape is associated with. The actor this shape is associated with, if it is an exclusive shape, else NULL
+
+
+ Sets the pose of the shape in actor space, i.e. relative to the actors to which they are attached. This transformation is identity by default. The local pose is an attribute of the shape, and so will apply to all actors to which the shape is attached. Sleeping: Does NOT wake the associated actor up automatically. Note: Does not automatically update the inertia properties of the owning actor (if applicable); use the PhysX extensions method [`PxRigidBodyExt::updateMassAndInertia`]() to do this. Default: the identity transform
+
+
+ Retrieves the pose of the shape in actor space, i.e. relative to the actor they are owned by. This transformation is identity by default. Pose of shape relative to the actor's frame.
+
+
+ Sets the user definable collision filter data. Sleeping: Does wake up the actor if the filter data change causes a formerly suppressed collision pair to be enabled. Default: (0,0,0,0)
+
+
+ Retrieves the shape's collision filter data.
+
+
+ Sets the user definable query filter data. Default: (0,0,0,0)
+
+
+ Retrieves the shape's Query filter data.
+
+
+ Assigns material(s) to the shape. Will remove existing materials from the shape. Sleeping: Does NOT wake the associated actor up automatically.
+
+
+ Returns the number of materials assigned to the shape. You can use [`getMaterials`]() to retrieve the material pointers. Number of materials associated with this shape.
+
+
+ Retrieve all the material pointers associated with the shape. You can retrieve the number of material pointers by calling [`getNbMaterials`]() Note: The returned data may contain invalid pointers if you release materials using [`PxMaterial::release`](). Number of material pointers written to the buffer.
+
+
+ Retrieve material from given triangle index. The input index is the internal triangle index as used inside the SDK. This is the index returned to users by various SDK functions such as raycasts. This function is only useful for triangle meshes or heightfields, which have per-triangle materials. For other shapes or SDF triangle meshes, the function returns the single material associated with the shape, regardless of the index. Material from input triangle If faceIndex value of 0xFFFFffff is passed as an input for mesh and heightfield shapes, this function will issue a warning and return NULL. Scene queries set the value of PxQueryHit::faceIndex to 0xFFFFffff whenever it is undefined or does not apply.
+
+
+ Sets the contact offset. Shapes whose distance is less than the sum of their contactOffset values will generate contacts. The contact offset must be positive and greater than the rest offset. Having a contactOffset greater than than the restOffset allows the collision detection system to predictively enforce the contact constraint even when the objects are slightly separated. This prevents jitter that would occur if the constraint were enforced only when shapes were within the rest distance. Default: 0.02f * PxTolerancesScale::length Sleeping: Does NOT wake the associated actor up automatically.
+
+
+ Retrieves the contact offset. The contact offset of the shape.
+
+
+ Sets the rest offset. Two shapes will come to rest at a distance equal to the sum of their restOffset values. If the restOffset is 0, they should converge to touching exactly. Having a restOffset greater than zero is useful to have objects slide smoothly, so that they do not get hung up on irregularities of each others' surfaces. Default: 0.0f Sleeping: Does NOT wake the associated actor up automatically.
+
+
+ Retrieves the rest offset. The rest offset of the shape.
+
+
+ Sets the density used to interact with fluids. To be physically accurate, the density of a rigid body should be computed as its mass divided by its volume. To simplify tuning the interaction of fluid and rigid bodies, the density for fluid can differ from the real density. This allows to create floating bodies, even if they are supposed to sink with their mass and volume. Default: 800.0f
+
+
+ Retrieves the density used to interact with fluids. The density of the body when interacting with fluid.
+
+
+ Sets torsional patch radius. This defines the radius of the contact patch used to apply torsional friction. If the radius is 0, no torsional friction will be applied. If the radius is > 0, some torsional friction will be applied. This is proportional to the penetration depth so, if the shapes are separated or penetration is zero, no torsional friction will be applied. It is used to approximate rotational friction introduced by the compression of contacting surfaces. Default: 0.0
+
+
+ Gets torsional patch radius. This defines the radius of the contact patch used to apply torsional friction. If the radius is 0, no torsional friction will be applied. If the radius is > 0, some torsional friction will be applied. This is proportional to the penetration depth so, if the shapes are separated or penetration is zero, no torsional friction will be applied. It is used to approximate rotational friction introduced by the compression of contacting surfaces. The torsional patch radius of the shape.
+
+
+ Sets minimum torsional patch radius. This defines the minimum radius of the contact patch used to apply torsional friction. If the radius is 0, the amount of torsional friction that will be applied will be entirely dependent on the value of torsionalPatchRadius. If the radius is > 0, some torsional friction will be applied regardless of the value of torsionalPatchRadius or the amount of penetration. Default: 0.0
+
+
+ Gets minimum torsional patch radius. This defines the minimum radius of the contact patch used to apply torsional friction. If the radius is 0, the amount of torsional friction that will be applied will be entirely dependent on the value of torsionalPatchRadius. If the radius is > 0, some torsional friction will be applied regardless of the value of torsionalPatchRadius or the amount of penetration. The minimum torsional patch radius of the shape.
+
+
+ Sets shape flags Sleeping: Does NOT wake the associated actor up automatically. Default: PxShapeFlag::eVISUALIZATION | PxShapeFlag::eSIMULATION_SHAPE | PxShapeFlag::eSCENE_QUERY_SHAPE
+
+
+ Sets shape flags
+
+
+ Retrieves shape flags. The values of the shape flags.
+
+
+ Returns true if the shape is exclusive to an actor.
+
+
+ Sets a name string for the object that can be retrieved with [`getName`](). This is for debugging and is not used by the SDK. The string is not copied by the SDK, only the pointer is stored. Default: NULL
+
+
+ retrieves the name string set with setName(). The name associated with the shape.
+
+
+ constructor to set properties
+
+
+ Retrieves the world space pose of the shape. Global pose of shape.
+
+
+ Raycast test against the shape. Number of hits between the ray and the shape
+
+
+ Test overlap between the shape and a geometry object True if the shape overlaps the geometry object
+
+
+ Sweep a geometry object against the shape. Currently only box, sphere, capsule and convex mesh shapes are supported, i.e. the swept geometry object must be one of those types. True if the swept geometry object hits the shape
+
+
+ Retrieves the axis aligned bounding box enclosing the shape. The shape's bounding box.
+
+
+ Sets the pose of the center of mass relative to the actor. Changing this transform will not move the actor in the world! Setting an unrealistic center of mass which is a long way from the body can make it difficult for the SDK to solve constraints. Perhaps leading to instability and jittering bodies. Default: the identity transform
+
+
+ Retrieves the center of mass pose relative to the actor frame. The center of mass pose relative to the actor frame.
+
+
+ Sets the mass of a dynamic actor. The mass must be non-negative. setMass() does not update the inertial properties of the body, to change the inertia tensor use setMassSpaceInertiaTensor() or the PhysX extensions method [`PxRigidBodyExt::updateMassAndInertia`](). A value of 0 is interpreted as infinite mass. Values of 0 are not permitted for instances of PxArticulationLink but are permitted for instances of PxRigidDynamic. Default: 1.0 Sleeping: Does NOT wake the actor up automatically.
+
+
+ Retrieves the mass of the actor. A value of 0 is interpreted as infinite mass. The mass of this actor.
+
+
+ Retrieves the inverse mass of the actor. The inverse mass of this actor.
+
+
+ Sets the inertia tensor, using a parameter specified in mass space coordinates. Note that such matrices are diagonal -- the passed vector is the diagonal. If you have a non diagonal world/actor space inertia tensor(3x3 matrix). Then you need to diagonalize it and set an appropriate mass space transform. See [`setCMassLocalPose`](). The inertia tensor elements must be non-negative. A value of 0 in an element is interpreted as infinite inertia along that axis. Values of 0 are not permitted for instances of PxArticulationLink but are permitted for instances of PxRigidDynamic. Default: (1.0, 1.0, 1.0) Sleeping: Does NOT wake the actor up automatically.
+
+
+ Retrieves the diagonal inertia tensor of the actor relative to the mass coordinate frame. This method retrieves a mass frame inertia vector. The mass space inertia tensor of this actor. A value of 0 in an element is interpreted as infinite inertia along that axis.
+
+
+ Retrieves the diagonal inverse inertia tensor of the actor relative to the mass coordinate frame. This method retrieves a mass frame inverse inertia vector. A value of 0 in an element is interpreted as infinite inertia along that axis. The mass space inverse inertia tensor of this actor.
+
+
+ Sets the linear damping coefficient. Zero represents no damping. The damping coefficient must be nonnegative. Default: 0.0
+
+
+ Retrieves the linear damping coefficient. The linear damping coefficient associated with this actor.
+
+
+ Sets the angular damping coefficient. Zero represents no damping. The angular damping coefficient must be nonnegative. Default: 0.05
+
+
+ Retrieves the angular damping coefficient. The angular damping coefficient associated with this actor.
+
+
+ Retrieves the linear velocity of an actor. It is not allowed to use this method while the simulation is running (except during PxScene::collide(), in PxContactModifyCallback or in contact report callbacks). The linear velocity of the actor.
+
+
+ Retrieves the angular velocity of the actor. It is not allowed to use this method while the simulation is running (except during PxScene::collide(), in PxContactModifyCallback or in contact report callbacks). The angular velocity of the actor.
+
+
+ Lets you set the maximum linear velocity permitted for this actor. With this function, you can set the maximum linear velocity permitted for this rigid body. Higher angular velocities are clamped to this value. Note: The angular velocity is clamped to the set value before the solver, which means that the limit may still be momentarily exceeded. Default: PX_MAX_F32
+
+
+ Retrieves the maximum angular velocity permitted for this actor. The maximum allowed angular velocity for this actor.
+
+
+ Lets you set the maximum angular velocity permitted for this actor. For various internal computations, very quickly rotating actors introduce error into the simulation, which leads to undesired results. With this function, you can set the maximum angular velocity permitted for this rigid body. Higher angular velocities are clamped to this value. Note: The angular velocity is clamped to the set value before the solver, which means that the limit may still be momentarily exceeded. Default: 100.0
+
+
+ Retrieves the maximum angular velocity permitted for this actor. The maximum allowed angular velocity for this actor.
+
+
+ Applies a force (or impulse) defined in the global coordinate frame to the actor at its center of mass. This will not induce a torque . ::PxForceMode determines if the force is to be conventional or impulsive. Each actor has an acceleration and a velocity change accumulator which are directly modified using the modes PxForceMode::eACCELERATION and PxForceMode::eVELOCITY_CHANGE respectively. The modes PxForceMode::eFORCE and PxForceMode::eIMPULSE also modify these same accumulators and are just short hand for multiplying the vector parameter by inverse mass and then using PxForceMode::eACCELERATION and PxForceMode::eVELOCITY_CHANGE respectively. It is invalid to use this method if the actor has not been added to a scene already or if PxActorFlag::eDISABLE_SIMULATION is set. The force modes PxForceMode::eIMPULSE and PxForceMode::eVELOCITY_CHANGE can not be applied to articulation links. if this is called on an articulation link, only the link is updated, not the entire articulation. see [`PxRigidBodyExt::computeVelocityDeltaFromImpulse`] for details of how to compute the change in linear velocity that will arise from the application of an impulsive force, where an impulsive force is applied force multiplied by a timestep. Sleeping: This call wakes the actor if it is sleeping, and the autowake parameter is true (default) or the force is non-zero.
+
+
+ Applies an impulsive torque defined in the global coordinate frame to the actor. ::PxForceMode determines if the torque is to be conventional or impulsive. Each actor has an angular acceleration and an angular velocity change accumulator which are directly modified using the modes PxForceMode::eACCELERATION and PxForceMode::eVELOCITY_CHANGE respectively. The modes PxForceMode::eFORCE and PxForceMode::eIMPULSE also modify these same accumulators and are just short hand for multiplying the vector parameter by inverse inertia and then using PxForceMode::eACCELERATION and PxForceMode::eVELOCITY_CHANGE respectively. It is invalid to use this method if the actor has not been added to a scene already or if PxActorFlag::eDISABLE_SIMULATION is set. The force modes PxForceMode::eIMPULSE and PxForceMode::eVELOCITY_CHANGE can not be applied to articulation links. if this called on an articulation link, only the link is updated, not the entire articulation. see [`PxRigidBodyExt::computeVelocityDeltaFromImpulse`] for details of how to compute the change in angular velocity that will arise from the application of an impulsive torque, where an impulsive torque is an applied torque multiplied by a timestep. Sleeping: This call wakes the actor if it is sleeping, and the autowake parameter is true (default) or the torque is non-zero.
+
+
+ Clears the accumulated forces (sets the accumulated force back to zero). Each actor has an acceleration and a velocity change accumulator which are directly modified using the modes PxForceMode::eACCELERATION and PxForceMode::eVELOCITY_CHANGE respectively. The modes PxForceMode::eFORCE and PxForceMode::eIMPULSE also modify these same accumulators (see PxRigidBody::addForce() for details); therefore the effect of calling clearForce(PxForceMode::eFORCE) is equivalent to calling clearForce(PxForceMode::eACCELERATION), and the effect of calling clearForce(PxForceMode::eIMPULSE) is equivalent to calling clearForce(PxForceMode::eVELOCITY_CHANGE). ::PxForceMode determines if the cleared force is to be conventional or impulsive. The force modes PxForceMode::eIMPULSE and PxForceMode::eVELOCITY_CHANGE can not be applied to articulation links. It is invalid to use this method if the actor has not been added to a scene already or if PxActorFlag::eDISABLE_SIMULATION is set.
+
+
+ Clears the impulsive torque defined in the global coordinate frame to the actor. ::PxForceMode determines if the cleared torque is to be conventional or impulsive. Each actor has an angular acceleration and a velocity change accumulator which are directly modified using the modes PxForceMode::eACCELERATION and PxForceMode::eVELOCITY_CHANGE respectively. The modes PxForceMode::eFORCE and PxForceMode::eIMPULSE also modify these same accumulators (see PxRigidBody::addTorque() for details); therefore the effect of calling clearTorque(PxForceMode::eFORCE) is equivalent to calling clearTorque(PxForceMode::eACCELERATION), and the effect of calling clearTorque(PxForceMode::eIMPULSE) is equivalent to calling clearTorque(PxForceMode::eVELOCITY_CHANGE). The force modes PxForceMode::eIMPULSE and PxForceMode::eVELOCITY_CHANGE can not be applied to articulation links. It is invalid to use this method if the actor has not been added to a scene already or if PxActorFlag::eDISABLE_SIMULATION is set.
+
+
+ Sets the impulsive force and torque defined in the global coordinate frame to the actor. ::PxForceMode determines if the cleared torque is to be conventional or impulsive. The force modes PxForceMode::eIMPULSE and PxForceMode::eVELOCITY_CHANGE can not be applied to articulation links. It is invalid to use this method if the actor has not been added to a scene already or if PxActorFlag::eDISABLE_SIMULATION is set.
+
+
+ Raises or clears a particular rigid body flag. See the list of flags [`PxRigidBodyFlag`] Default: no flags are set Sleeping: Does NOT wake the actor up automatically.
+
+
+ Reads the PxRigidBody flags. See the list of flags [`PxRigidBodyFlag`] The values of the PxRigidBody flags.
+
+
+ Sets the CCD minimum advance coefficient. The CCD minimum advance coefficient is a value in the range [0, 1] that is used to control the minimum amount of time a body is integrated when it has a CCD contact. The actual minimum amount of time that is integrated depends on various properties, including the relative speed and collision shapes of the bodies involved in the contact. From these properties, a numeric value is calculated that determines the maximum distance (and therefore maximum time) which these bodies could be integrated forwards that would ensure that these bodies did not pass through each-other. This value is then scaled by CCD minimum advance coefficient to determine the amount of time that will be consumed in the CCD pass. Things to consider: A large value (approaching 1) ensures that the objects will always advance some time. However, larger values increase the chances of objects gently drifting through each-other in scenes which the constraint solver can't converge, e.g. scenes where an object is being dragged through a wall with a constraint. A value of 0 ensures that the pair of objects stop at the exact time-of-impact and will not gently drift through each-other. However, with very small/thin objects initially in contact, this can lead to a large amount of time being dropped and increases the chances of jamming. Jamming occurs when the an object is persistently in contact with an object such that the time-of-impact is 0, which results in no time being advanced for those objects in that CCD pass. The chances of jamming can be reduced by increasing the number of CCD mass
+
+
+ Gets the CCD minimum advance coefficient. The value of the CCD min advance coefficient.
+
+
+ Sets the maximum depenetration velocity permitted to be introduced by the solver. This value controls how much velocity the solver can introduce to correct for penetrations in contacts.
+
+
+ Returns the maximum depenetration velocity the solver is permitted to introduced. This value controls how much velocity the solver can introduce to correct for penetrations in contacts. The maximum penetration bias applied by the solver.
+
+
+ Sets a limit on the impulse that may be applied at a contact. The maximum impulse at a contact between two dynamic or kinematic bodies will be the minimum of the two limit values. For a collision between a static and a dynamic body, the impulse is limited by the value for the dynamic body.
+
+
+ Returns the maximum impulse that may be applied at a contact. The maximum impulse that may be applied at a contact
+
+
+ Sets a distance scale whereby the angular influence of a contact on the normal constraint in a contact is zeroed if normal.cross(offset) falls below this tolerance. Rather than acting as an absolute value, this tolerance is scaled by the ratio rXn.dot(angVel)/normal.dot(linVel) such that contacts that have relatively larger angular velocity than linear normal velocity (e.g. rolling wheels) achieve larger slop values as the angular velocity increases.
+
+
+ Returns the contact slop coefficient. The contact slop coefficient.
+
+
+ Returns the island node index The island node index.
+
+
+ Computation of mass properties for a rigid body actor To simulate a dynamic rigid actor, the SDK needs a mass and an inertia tensor. This method offers functionality to compute the necessary mass and inertia properties based on the shapes declared in the PxRigidBody descriptor and some additionally specified parameters. For each shape, the shape geometry, the shape positioning within the actor and the specified shape density are used to compute the body's mass and inertia properties. Shapes without PxShapeFlag::eSIMULATION_SHAPE set are ignored unless includeNonSimShapes is true. Shapes with plane, triangle mesh or heightfield geometry and PxShapeFlag::eSIMULATION_SHAPE set are not allowed for PxRigidBody collision. This method will set the mass, center of mass, and inertia tensor if no collision shapes are found, the inertia tensor is set to (1,1,1) and the mass to 1 if massLocalPose is non-NULL, the rigid body's center of mass parameter will be set to the user provided value (massLocalPose) and the inertia tensor will be resolved at that point. If all shapes of the actor have the same density then the overloaded method updateMassAndInertia() with a single density parameter can be used instead. Boolean. True on success else false.
+
+
+ Computation of mass properties for a rigid body actor See previous method for details. Boolean. True on success else false.
+
+
+ Computation of mass properties for a rigid body actor This method sets the mass, inertia and center of mass of a rigid body. The mass is set to the sum of all user-supplied shape mass values, and the inertia and center of mass are computed according to the rigid body's shapes and the per shape mass input values. If no collision shapes are found, the inertia tensor is set to (1,1,1) If a single mass value should be used for the actor as a whole then the overloaded method setMassAndUpdateInertia() with a single mass parameter can be used instead. Boolean. True on success else false.
+
+
+ Computation of mass properties for a rigid body actor This method sets the mass, inertia and center of mass of a rigid body. The mass is set to the user-supplied value, and the inertia and center of mass are computed according to the rigid body's shapes and the input mass. If no collision shapes are found, the inertia tensor is set to (1,1,1) Boolean. True on success else false.
+
+
+ Applies a force (or impulse) defined in the global coordinate frame, acting at a particular point in global coordinates, to the actor. Note that if the force does not act along the center of mass of the actor, this will also add the corresponding torque. Because forces are reset at the end of every timestep, you can maintain a total external force on an object by calling this once every frame. if this call is used to apply a force or impulse to an articulation link, only the link is updated, not the entire articulation ::PxForceMode determines if the force is to be conventional or impulsive. Only eFORCE and eIMPULSE are supported, as the force required to produce a given velocity change or acceleration is underdetermined given only the desired change at a given point. Sleeping: This call wakes the actor if it is sleeping and the wakeup parameter is true (default).
+
+
+ Applies a force (or impulse) defined in the global coordinate frame, acting at a particular point in local coordinates, to the actor. Note that if the force does not act along the center of mass of the actor, this will also add the corresponding torque. Because forces are reset at the end of every timestep, you can maintain a total external force on an object by calling this once every frame. if this call is used to apply a force or impulse to an articulation link, only the link is updated, not the entire articulation ::PxForceMode determines if the force is to be conventional or impulsive. Only eFORCE and eIMPULSE are supported, as the force required to produce a given velocity change or acceleration is underdetermined given only the desired change at a given point. Sleeping: This call wakes the actor if it is sleeping and the wakeup parameter is true (default).
+
+
+ Applies a force (or impulse) defined in the actor local coordinate frame, acting at a particular point in global coordinates, to the actor. Note that if the force does not act along the center of mass of the actor, this will also add the corresponding torque. Because forces are reset at the end of every timestep, you can maintain a total external force on an object by calling this once every frame. if this call is used to apply a force or impulse to an articulation link, only the link is updated, not the entire articulation ::PxForceMode determines if the force is to be conventional or impulsive. Only eFORCE and eIMPULSE are supported, as the force required to produce a given velocity change or acceleration is underdetermined given only the desired change at a given point. Sleeping: This call wakes the actor if it is sleeping and the wakeup parameter is true (default).
+
+
+ Applies a force (or impulse) defined in the actor local coordinate frame, acting at a particular point in local coordinates, to the actor. Note that if the force does not act along the center of mass of the actor, this will also add the corresponding torque. Because forces are reset at the end of every timestep, you can maintain a total external force on an object by calling this once every frame. if this call is used to apply a force or impulse to an articulation link, only the link is updated, not the entire articulation ::PxForceMode determines if the force is to be conventional or impulsive. Only eFORCE and eIMPULSE are supported, as the force required to produce a given velocity change or acceleration is underdetermined given only the desired change at a given point. Sleeping: This call wakes the actor if it is sleeping and the wakeup parameter is true (default).
+
+
+ Computes the velocity of a point given in world coordinates if it were attached to the specified body and moving with it. The velocity of point in the global frame.
+
+
+ Computes the velocity of a point given in local coordinates if it were attached to the specified body and moving with it. The velocity of point in the local frame.
+
+
+ Computes the velocity of a point (offset from the origin of the body) given in world coordinates if it were attached to the specified body and moving with it. The velocity of point (offset from the origin of the body) in the global frame.
+
+
+ Compute the change to linear and angular velocity that would occur if an impulsive force and torque were to be applied to a specified rigid body. The rigid body is left unaffected unless a subsequent independent call is executed that actually applies the computed changes to velocity and angular velocity. if this call is used to determine the velocity delta for an articulation link, only the mass properties of the link are taken into account.
+
+
+ Computes the linear and angular velocity change vectors for a given impulse at a world space position taking a mass and inertia scale into account This function is useful for extracting the respective linear and angular velocity changes from a contact or joint when the mass/inertia ratios have been adjusted. if this call is used to determine the velocity delta for an articulation link, only the mass properties of the link are taken into account.
+
+
+ Computes the linear and angular impulse vectors for a given impulse at a world space position taking a mass and inertia scale into account This function is useful for extracting the respective linear and angular impulses from a contact or joint when the mass/inertia ratios have been adjusted.
+
+
+ Performs a linear sweep through space with the body's geometry objects. Supported geometries are: box, sphere, capsule, convex. Other geometry types will be ignored. If eTOUCH is returned from the filter callback, it will trigger an error and the hit will be discarded. The function sweeps all shapes attached to a given rigid body through space and reports the nearest object in the scene which intersects any of of the shapes swept paths. Information about the closest intersection is written to a [`PxSweepHit`] structure. True if a blocking hit was found.
+
+
+ Performs a linear sweep through space with the body's geometry objects, returning all overlaps. Supported geometries are: box, sphere, capsule, convex. Other geometry types will be ignored. This function sweeps all shapes attached to a given rigid body through space and reports all objects in the scene that intersect any of the shapes' swept paths until there are no more objects to report or a blocking hit is encountered. the number of touching hits. If overflow is set to true, the results are incomplete. In case of overflow there are also no guarantees that all touching hits returned are closer than the blocking hit.
+
+
+ Releases the link from the articulation. Only a leaf articulation link can be released. Releasing a link is not allowed while the articulation link is in a scene. In order to release a link, remove and then re-add the corresponding articulation to the scene.
+
+
+ Gets the articulation that the link is a part of. The articulation.
+
+
+ Gets the joint which connects this link to its parent. The joint connecting the link to the parent. NULL for the root link.
+
+
+ Gets the number of degrees of freedom of the joint which connects this link to its parent. - The root link DOF-count is defined to be 0 regardless of PxArticulationFlag::eFIX_BASE. - The return value is only valid for articulations that are in a scene. The number of degrees of freedom, or 0xFFFFFFFF if the articulation is not in a scene.
+
+
+ Gets the number of child links. The number of child links.
+
+
+ Gets the low-level link index that may be used to index into members of PxArticulationCache. The return value is only valid for articulations that are in a scene. The low-level index, or 0xFFFFFFFF if the articulation is not in a scene.
+
+
+ Retrieves the child links. The number of articulation links written to the buffer.
+
+
+ Set the constraint-force-mixing scale term. The cfm scale term is a stabilization term that helps avoid instabilities with over-constrained configurations. It should be a small value that is multiplied by 1/mass internally to produce an additional bias added to the unit response term in the solver. Default: 0.025 Range: [0, 1] This call is not allowed while the simulation is running.
+
+
+ Get the constraint-force-mixing scale term. The constraint-force-mixing scale term.
+
+
+ Get the linear velocity of the link. - The linear velocity is with respect to the link's center of mass and not the actor frame origin. - For performance, prefer PxArticulationCache::linkVelocity to get link spatial velocities in a batch query. - When the articulation state is updated via non-cache API, use PxArticulationReducedCoordinate::updateKinematic before querying velocity. The linear velocity of the link. This call is not allowed while the simulation is running except in a split simulation during [`PxScene::collide`]() and up to #PxScene::advance(), and in PxContactModifyCallback or in contact report callbacks.
+
+
+ Get the angular velocity of the link. - For performance, prefer PxArticulationCache::linkVelocity to get link spatial velocities in a batch query. - When the articulation state is updated via non-cache API, use PxArticulationReducedCoordinate::updateKinematic before querying velocity. The angular velocity of the link. This call is not allowed while the simulation is running except in a split simulation during [`PxScene::collide`]() and up to #PxScene::advance(), and in PxContactModifyCallback or in contact report callbacks.
+
+
+ Returns the string name of the dynamic type. The string name.
+
+
+ Releases a PxConstraint instance. This call does not wake up the connected rigid bodies.
+
+
+ Retrieves the scene which this constraint belongs to. Owner Scene. NULL if not part of a scene.
+
+
+ Retrieves the actors for this constraint.
+
+
+ Sets the actors for this constraint.
+
+
+ Notify the scene that the constraint shader data has been updated by the application
+
+
+ Retrieve the flags for this constraint the constraint flags
+
+
+ Set the flags for this constraint default: PxConstraintFlag::eDRIVE_LIMITS_ARE_FORCES
+
+
+ Set a flag for this constraint
+
+
+ Retrieve the constraint force most recently applied to maintain this constraint. It is not allowed to use this method while the simulation is running (except during PxScene::collide(), in PxContactModifyCallback or in contact report callbacks).
+
+
+ whether the constraint is valid. A constraint is valid if it has at least one dynamic rigid body or articulation link. A constraint that is not valid may not be inserted into a scene, and therefore a static actor to which an invalid constraint is attached may not be inserted into a scene. Invalid constraints arise only when an actor to which the constraint is attached has been deleted.
+
+
+ Set the break force and torque thresholds for this constraint. If either the force or torque measured at the constraint exceed these thresholds the constraint will break.
+
+
+ Retrieve the constraint break force and torque thresholds
+
+
+ Set the minimum response threshold for a constraint row When using mass modification for a joint or infinite inertia for a jointed body, very stiff solver constraints can be generated which can destabilize simulation. Setting this value to a small positive value (e.g. 1e-8) will cause constraint rows to be ignored if very large changes in impulses will generate only small changes in velocity. When setting this value, also set PxConstraintFlag::eDISABLE_PREPROCESSING. The solver accuracy for this joint may be reduced.
+
+
+ Retrieve the constraint break force and torque thresholds the minimum response threshold for a constraint row
+
+
+ Fetch external owner of the constraint. Provides a reference to the external owner of a constraint and a unique owner type ID. Reference to the external object which owns the constraint.
+
+
+ Set the constraint functions for this constraint
+
+
+ Returns whether there are more patches in this stream. Whether there are more patches in this stream.
+
+
+ Returns the total contact count. Total contact count.
+
+
+ Returns the total patch count. Total patch count.
+
+
+ Advances iterator to next contact patch.
+
+
+ Returns if the current patch has more contacts. If there are more contacts in the current patch.
+
+
+ Advances to the next contact in the patch.
+
+
+ Gets the current contact's normal The current contact's normal.
+
+
+ Gets the inverse mass scale for body 0. The inverse mass scale for body 0.
+
+
+ Gets the inverse mass scale for body 1. The inverse mass scale for body 1.
+
+
+ Gets the inverse inertia scale for body 0. The inverse inertia scale for body 0.
+
+
+ Gets the inverse inertia scale for body 1. The inverse inertia scale for body 1.
+
+
+ Gets the contact's max impulse. The contact's max impulse.
+
+
+ Gets the contact's target velocity. The contact's target velocity.
+
+
+ Gets the contact's contact point. The contact's contact point.
+
+
+ Gets the contact's separation. The contact's separation.
+
+
+ Gets the contact's face index for shape 0. The contact's face index for shape 0.
+
+
+ Gets the contact's face index for shape 1. The contact's face index for shape 1.
+
+
+ Gets the contact's static friction coefficient. The contact's static friction coefficient.
+
+
+ Gets the contact's dynamic friction coefficient. The contact's dynamic friction coefficient.
+
+
+ Gets the contact's restitution coefficient. The contact's restitution coefficient.
+
+
+ Gets the contact's damping value. The contact's damping value.
+
+
+ Gets the contact's material flags. The contact's material flags.
+
+
+ Gets the contact's material index for shape 0. The contact's material index for shape 0.
+
+
+ Gets the contact's material index for shape 1. The contact's material index for shape 1.
+
+
+ Advances the contact stream iterator to a specific contact index. True if advancing was possible
+
+
+ Get the position of a specific contact point in the set. Position to the requested point in world space
+
+
+ Alter the position of a specific contact point in the set.
+
+
+ Get the contact normal of a specific contact point in the set. The requested normal in world space
+
+
+ Alter the contact normal of a specific contact point in the set. Changing the normal can cause contact points to be ignored.
+
+
+ Get the separation distance of a specific contact point in the set. The separation. Negative implies penetration.
+
+
+ Alter the separation of a specific contact point in the set.
+
+
+ Get the target velocity of a specific contact point in the set. The target velocity in world frame
+
+
+ Alter the target velocity of a specific contact point in the set.
+
+
+ Get the face index with respect to the first shape of the pair for a specific contact point in the set. The face index of the first shape At the moment, the first shape is never a tri-mesh, therefore this function always returns PXC_CONTACT_NO_FACE_INDEX
+
+
+ Get the face index with respect to the second shape of the pair for a specific contact point in the set. The face index of the second shape
+
+
+ Get the maximum impulse for a specific contact point in the set. The maximum impulse
+
+
+ Alter the maximum impulse for a specific contact point in the set. Must be nonnegative. If set to zero, the contact point will be ignored
+
+
+ Get the restitution coefficient for a specific contact point in the set. The restitution coefficient
+
+
+ Alter the restitution coefficient for a specific contact point in the set. Valid ranges [0,1]
+
+
+ Get the static friction coefficient for a specific contact point in the set. The friction coefficient (dimensionless)
+
+
+ Alter the static friction coefficient for a specific contact point in the set.
+
+
+ Get the static friction coefficient for a specific contact point in the set. The friction coefficient
+
+
+ Alter the static dynamic coefficient for a specific contact point in the set.
+
+
+ Ignore the contact point. If a contact point is ignored then no force will get applied at this point. This can be used to disable collision in certain areas of a shape, for example.
+
+
+ The number of contact points in the set.
+
+
+ Returns the invMassScale of body 0 A value < 1.0 makes this contact treat the body as if it had larger mass. A value of 0.f makes this contact treat the body as if it had infinite mass. Any value > 1.f makes this contact treat the body as if it had smaller mass.
+
+
+ Returns the invMassScale of body 1 A value < 1.0 makes this contact treat the body as if it had larger mass. A value of 0.f makes this contact treat the body as if it had infinite mass. Any value > 1.f makes this contact treat the body as if it had smaller mass.
+
+
+ Returns the invInertiaScale of body 0 A value < 1.0 makes this contact treat the body as if it had larger inertia. A value of 0.f makes this contact treat the body as if it had infinite inertia. Any value > 1.f makes this contact treat the body as if it had smaller inertia.
+
+
+ Returns the invInertiaScale of body 1 A value < 1.0 makes this contact treat the body as if it had larger inertia. A value of 0.f makes this contact treat the body as if it had infinite inertia. Any value > 1.f makes this contact treat the body as if it had smaller inertia.
+
+
+ Sets the invMassScale of body 0 This can be set to any value in the range [0, PX_MAX_F32). A value < 1.0 makes this contact treat the body as if it had larger mass. A value of 0.f makes this contact treat the body as if it had infinite mass. Any value > 1.f makes this contact treat the body as if it had smaller mass.
+
+
+ Sets the invMassScale of body 1 This can be set to any value in the range [0, PX_MAX_F32). A value < 1.0 makes this contact treat the body as if it had larger mass. A value of 0.f makes this contact treat the body as if it had infinite mass. Any value > 1.f makes this contact treat the body as if it had smaller mass.
+
+
+ Sets the invInertiaScale of body 0 This can be set to any value in the range [0, PX_MAX_F32). A value < 1.0 makes this contact treat the body as if it had larger inertia. A value of 0.f makes this contact treat the body as if it had infinite inertia. Any value > 1.f makes this contact treat the body as if it had smaller inertia.
+
+
+ Sets the invInertiaScale of body 1 This can be set to any value in the range [0, PX_MAX_F32). A value < 1.0 makes this contact treat the body as if it had larger inertia. A value of 0.f makes this contact treat the body as if it had infinite inertia. Any value > 1.f makes this contact treat the body as if it had smaller inertia.
+
+
+ Passes modifiable arrays of contacts to the application. The initial contacts are regenerated from scratch each frame by collision detection. The number of contacts can not be changed, so you cannot add your own contacts. You may however disable contacts using PxContactSet::ignore().
+
+
+ Passes modifiable arrays of contacts to the application. The initial contacts are regenerated from scratch each frame by collision detection. The number of contacts can not be changed, so you cannot add your own contacts. You may however disable contacts using PxContactSet::ignore().
+
+
+ Notification if an object or its memory gets released If release() gets called on a PxBase object, an eUSER_RELEASE event will get fired immediately. The object state can be queried in the callback but it is not allowed to change the state. Furthermore, when reading from the object it is the user's responsibility to make sure that no other thread is writing at the same time to the object (this includes the simulation itself, i.e., [`PxScene::fetchResults`]() must not get called at the same time). Calling release() on a PxBase object does not necessarily trigger its destructor immediately. For example, the object can be shared and might still be referenced by other objects or the simulation might still be running and accessing the object state. In such cases the destructor will be called as soon as it is safe to do so. After the destruction of the object and its memory, an eMEMORY_RELEASE event will get fired. In this case it is not allowed to dereference the object pointer in the callback.
+
+
+ Sets young's modulus which defines the body's stiffness
+
+
+ Retrieves the young's modulus value. The young's modulus value.
+
+
+ Sets the Poisson's ratio which defines the body's volume preservation. Completely incompressible materials have a poisson ratio of 0.5. Its value should not be set to exactly 0.5 because this leads to numerical problems.
+
+
+ Retrieves the Poisson's ratio. The Poisson's ratio.
+
+
+ Sets the dynamic friction value which defines the strength of resistance when two objects slide relative to each other while in contact.
+
+
+ Retrieves the dynamic friction value The dynamic friction value
+
+
+ (re)sets the structure to the default.
+
+
+ constructor to set both filter data and filter flags
+
+
+ Filter method to specify how a pair of potentially colliding objects should be processed. This method gets called when the filter flags returned by the filter shader (see [`PxSimulationFilterShader`]) indicate that the filter callback should be invoked ([`PxFilterFlag::eCALLBACK`] or #PxFilterFlag::eNOTIFY set). Return the PxFilterFlag flags and set the PxPairFlag flags to define what the simulation should do with the given collision pair. Filter flags defining whether the pair should be discarded, temporarily ignored or processed and whether the pair should be tracked and send a report on pair deletion through the filter callback
+
+
+ Callback to inform that a tracked collision pair is gone. This method gets called when a collision pair disappears or gets re-filtered. Only applies to collision pairs which have been marked as filter callback pairs ([`PxFilterFlag::eNOTIFY`] set in #pairFound()).
+
+
+ Callback to give the opportunity to change the filter state of a tracked collision pair. This method gets called once per simulation step to let the application change the filter and pair flags of a collision pair that has been reported in [`pairFound`]() and requested callbacks by setting [`PxFilterFlag::eNOTIFY`]. To request a change of filter status, the target pair has to be specified by its ID, the new filter and pair flags have to be provided and the method should return true. If this method changes the filter status of a collision pair and the pair should keep being tracked by the filter callbacks then [`PxFilterFlag::eNOTIFY`] has to be set. The application is responsible to ensure that this method does not get called for pairs that have been reported as lost, see [`pairLost`](). True if the changes should be applied. In this case the method will get called again. False if no more status changes should be done in the current simulation step. In that case the provided flags will be discarded.
+
+
+ Any combination of PxDataAccessFlag::eREADABLE and PxDataAccessFlag::eWRITABLE
+
+
+ Unlocks the bulk data.
+
+
+ virtual destructor
+
+
+ Sets the coefficient of dynamic friction. The coefficient of dynamic friction should be in [0, PX_MAX_F32). If set to greater than staticFriction, the effective value of staticFriction will be increased to match. Sleeping: Does NOT wake any actors which may be affected.
+
+
+ Retrieves the DynamicFriction value. The coefficient of dynamic friction.
+
+
+ Sets the coefficient of static friction The coefficient of static friction should be in the range [0, PX_MAX_F32) Sleeping: Does NOT wake any actors which may be affected.
+
+
+ Retrieves the coefficient of static friction. The coefficient of static friction.
+
+
+ Sets the coefficient of restitution A coefficient of 0 makes the object bounce as little as possible, higher values up to 1.0 result in more bounce. This property is overloaded when PxMaterialFlag::eCOMPLIANT_CONTACT flag is enabled. This permits negative values for restitution to be provided. The negative values are converted into spring stiffness terms for an implicit spring simulated at the contact site, with the spring positional error defined by the contact separation value. Higher stiffness terms produce stiffer springs that behave more like a rigid contact. Sleeping: Does NOT wake any actors which may be affected.
+
+
+ Retrieves the coefficient of restitution. See [`setRestitution`]. The coefficient of restitution.
+
+
+ Sets the coefficient of damping This property only affects the simulation if PxMaterialFlag::eCOMPLIANT_CONTACT is raised. Damping works together with spring stiffness (set through a negative restitution value). Spring stiffness corrects positional error while damping resists relative velocity. Setting a high damping coefficient can produce spongy contacts. Sleeping: Does NOT wake any actors which may be affected.
+
+
+ Retrieves the coefficient of damping. See [`setDamping`]. The coefficient of damping.
+
+
+ Raises or clears a particular material flag. See the list of flags [`PxMaterialFlag`] Default: eIMPROVED_PATCH_FRICTION Sleeping: Does NOT wake any actors which may be affected.
+
+
+ sets all the material flags. See the list of flags [`PxMaterialFlag`] Default: eIMPROVED_PATCH_FRICTION Sleeping: Does NOT wake any actors which may be affected.
+
+
+ Retrieves the flags. See [`PxMaterialFlag`]. The material flags.
+
+
+ Sets the friction combine mode. See the enum ::PxCombineMode . Default: PxCombineMode::eAVERAGE Sleeping: Does NOT wake any actors which may be affected.
+
+
+ Retrieves the friction combine mode. See [`setFrictionCombineMode`]. The friction combine mode for this material.
+
+
+ Sets the restitution combine mode. See the enum ::PxCombineMode . Default: PxCombineMode::eAVERAGE Sleeping: Does NOT wake any actors which may be affected.
+
+
+ Retrieves the restitution combine mode. See [`setRestitutionCombineMode`]. The coefficient of restitution combine mode for this material.
+
+
+ (re)sets the structure to the default.
+
+
+ Sets friction
+
+
+ Retrieves the friction value. The friction value.
+
+
+ Sets velocity damping term
+
+
+ Retrieves the velocity damping term The velocity damping term.
+
+
+ Sets adhesion term
+
+
+ Retrieves the adhesion term The adhesion term.
+
+
+ Sets gravity scale term
+
+
+ Retrieves the gravity scale term The gravity scale term.
+
+
+ Sets material adhesion radius scale. This is multiplied by the particle rest offset to compute the fall-off distance at which point adhesion ceases to operate.
+
+
+ Retrieves the adhesion radius scale. The adhesion radius scale.
+
+
+ Destroys the instance it is called on. Use this release method to destroy an instance of this class. Be sure to not keep a reference to this object after calling release. Avoid release calls while a scene is simulating (in between simulate() and fetchResults() calls). Note that this must be called once for each prior call to PxCreatePhysics, as there is a reference counter. Also note that you mustn't destroy the PxFoundation instance (holding the allocator, error callback etc.) until after the reference count reaches 0 and the SDK is actually removed. Releasing an SDK will also release any objects created through it (scenes, triangle meshes, convex meshes, heightfields, shapes etc.), provided the user hasn't already done so. Releasing the PxPhysics instance is a prerequisite to releasing the PxFoundation instance.
+
+
+ Retrieves the Foundation instance. A reference to the Foundation object.
+
+
+ Creates an aggregate with the specified maximum size and filtering hint. The previous API used \"bool enableSelfCollision\" which should now silently evaluates to a PxAggregateType::eGENERIC aggregate with its self-collision bit. Use PxAggregateType::eSTATIC or PxAggregateType::eKINEMATIC for aggregates that will only contain static or kinematic actors. This provides faster filtering when used in combination with PxPairFilteringMode. The new aggregate.
+
+
+ Returns the simulation tolerance parameters. The current simulation tolerance parameters.
+
+
+ Creates a triangle mesh object. This can then be instanced into [`PxShape`] objects. The new triangle mesh.
+
+
+ Return the number of triangle meshes that currently exist. Number of triangle meshes.
+
+
+ Writes the array of triangle mesh pointers to a user buffer. Returns the number of pointers written. The ordering of the triangle meshes in the array is not specified. The number of triangle mesh pointers written to userBuffer, this should be less or equal to bufferSize.
+
+
+ Creates a tetrahedron mesh object. This can then be instanced into [`PxShape`] objects. The new tetrahedron mesh.
+
+
+ Creates a softbody mesh object. The new softbody mesh.
+
+
+ Return the number of tetrahedron meshes that currently exist. Number of tetrahedron meshes.
+
+
+ Writes the array of tetrahedron mesh pointers to a user buffer. Returns the number of pointers written. The ordering of the tetrahedron meshes in the array is not specified. The number of tetrahedron mesh pointers written to userBuffer, this should be less or equal to bufferSize.
+
+
+ Creates a heightfield object from previously cooked stream. This can then be instanced into [`PxShape`] objects. The new heightfield.
+
+
+ Return the number of heightfields that currently exist. Number of heightfields.
+
+
+ Writes the array of heightfield pointers to a user buffer. Returns the number of pointers written. The ordering of the heightfields in the array is not specified. The number of heightfield pointers written to userBuffer, this should be less or equal to bufferSize.
+
+
+ Creates a convex mesh object. This can then be instanced into [`PxShape`] objects. The new convex mesh.
+
+
+ Return the number of convex meshes that currently exist. Number of convex meshes.
+
+
+ Writes the array of convex mesh pointers to a user buffer. Returns the number of pointers written. The ordering of the convex meshes in the array is not specified. The number of convex mesh pointers written to userBuffer, this should be less or equal to bufferSize.
+
+
+ Creates a bounding volume hierarchy. The new BVH.
+
+
+ Return the number of bounding volume hierarchies that currently exist. Number of bounding volume hierarchies.
+
+
+ Writes the array of bounding volume hierarchy pointers to a user buffer. Returns the number of pointers written. The ordering of the BVHs in the array is not specified. The number of BVH pointers written to userBuffer, this should be less or equal to bufferSize.
+
+
+ Creates a scene. Every scene uses a Thread Local Storage slot. This imposes a platform specific limit on the number of scenes that can be created. The new scene object.
+
+
+ Gets number of created scenes. The number of scenes created.
+
+
+ Writes the array of scene pointers to a user buffer. Returns the number of pointers written. The ordering of the scene pointers in the array is not specified. The number of scene pointers written to userBuffer, this should be less or equal to bufferSize.
+
+
+ Creates a static rigid actor with the specified pose and all other fields initialized to their default values.
+
+
+ Creates a dynamic rigid actor with the specified pose and all other fields initialized to their default values.
+
+
+ Creates a pruning structure from actors. Every provided actor needs at least one shape with the eSCENE_QUERY_SHAPE flag set. Both static and dynamic actors can be provided. It is not allowed to pass in actors which are already part of a scene. Articulation links cannot be provided. Pruning structure created from given actors, or NULL if any of the actors did not comply with the above requirements.
+
+
+ Creates a shape which may be attached to multiple actors The shape will be created with a reference count of 1. The shape Shared shapes are not mutable when they are attached to an actor
+
+
+ Creates a shape which may be attached to multiple actors The shape will be created with a reference count of 1. The shape Shared shapes are not mutable when they are attached to an actor Shapes created from *SDF* triangle-mesh geometries do not support more than one material.
+
+
+ Return the number of shapes that currently exist. Number of shapes.
+
+
+ Writes the array of shape pointers to a user buffer. Returns the number of pointers written. The ordering of the shapes in the array is not specified. The number of shape pointers written to userBuffer, this should be less or equal to bufferSize.
+
+
+ Creates a constraint shader. A constraint shader will get added automatically to the scene the two linked actors belong to. Either, but not both, of actor0 and actor1 may be NULL to denote attachment to the world. The new constraint shader.
+
+
+ Creates a reduced-coordinate articulation with all fields initialized to their default values. the new articulation
+
+
+ Creates a new rigid body material with certain default properties. The new rigid body material.
+
+
+ Return the number of rigid body materials that currently exist. Number of rigid body materials.
+
+
+ Writes the array of rigid body material pointers to a user buffer. Returns the number of pointers written. The ordering of the materials in the array is not specified. The number of material pointers written to userBuffer, this should be less or equal to bufferSize.
+
+
+ Register a deletion listener. Listeners will be called whenever an object is deleted. It is illegal to register or unregister a deletion listener while deletions are being processed. By default a registered listener will receive events from all objects. Set the restrictedObjectSet parameter to true on registration and use [`registerDeletionListenerObjects`] to restrict the received events to specific objects. The deletion events are only supported on core PhysX objects. In general, objects in extension modules do not provide this functionality, however, in the case of PxJoint objects, the underlying PxConstraint will send the events.
+
+
+ Unregister a deletion listener. It is illegal to register or unregister a deletion listener while deletions are being processed.
+
+
+ Register specific objects for deletion events. This method allows for a deletion listener to limit deletion events to specific objects only. It is illegal to register or unregister objects while deletions are being processed. The deletion listener has to be registered through [`registerDeletionListener`]() and configured to support restricted object sets prior to this method being used.
+
+
+ Unregister specific objects for deletion events. This method allows to clear previously registered objects for a deletion listener (see [`registerDeletionListenerObjects`]()). It is illegal to register or unregister objects while deletions are being processed. The deletion listener has to be registered through [`registerDeletionListener`]() and configured to support restricted object sets prior to this method being used.
+
+
+ Gets PxPhysics object insertion interface. The insertion interface is needed for PxCreateTriangleMesh, PxCooking::createTriangleMesh etc., this allows runtime mesh creation.
+
+
+ Create a distance Joint.
+
+
+ Create a distance Joint.
+
+
+ Create a fixed joint.
+
+
+ Create a prismatic joint.
+
+
+ Create a revolute joint.
+
+
+ Create a spherical joint.
+
+
+ Create a D6 joint.
+
+
+ Create a gear Joint.
+
+
+ Create a rack & pinion Joint.
+
+
+ Convenience function to create a PxBVH object from a PxRigidActor. The computed PxBVH can then be used in PxScene::addActor() or PxAggregate::addActor(). After adding the actor & BVH to the scene/aggregate, release the PxBVH object by calling PxBVH::release(). The PxBVH for this actor.
+
+
+ Creates an application managed registry for serialization. PxSerializationRegistry instance.
+
+
+ simple method to create a PxRigidDynamic actor with a single PxShape. a new dynamic actor with the PxRigidBodyFlag, or NULL if it could not be constructed
+
+
+ simple method to create a PxRigidDynamic actor with a single PxShape. a new dynamic actor with the PxRigidBodyFlag, or NULL if it could not be constructed
+
+
+ simple method to create a kinematic PxRigidDynamic actor with a single PxShape. unlike PxCreateDynamic, the geometry is not restricted to box, capsule, sphere or convex. However, kinematics of other geometry types may not participate in simulation collision and may be used only for triggers or scene queries of moving objects under animation control. In this case the density parameter will be ignored and the created shape will be set up as a scene query only shape (see [`PxShapeFlag::eSCENE_QUERY_SHAPE`]) a new dynamic actor with the PxRigidBodyFlag::eKINEMATIC set, or NULL if it could not be constructed
+
+
+ simple method to create a kinematic PxRigidDynamic actor with a single PxShape. unlike PxCreateDynamic, the geometry is not restricted to box, capsule, sphere or convex. However, kinematics of other geometry types may not participate in simulation collision and may be used only for triggers or scene queries of moving objects under animation control. In this case the density parameter will be ignored and the created shape will be set up as a scene query only shape (see [`PxShapeFlag::eSCENE_QUERY_SHAPE`]) a new dynamic actor with the PxRigidBodyFlag::eKINEMATIC set, or NULL if it could not be constructed
+
+
+ simple method to create a PxRigidStatic actor with a single PxShape. a new static actor, or NULL if it could not be constructed
+
+
+ simple method to create a PxRigidStatic actor with a single PxShape. a new static actor, or NULL if it could not be constructed
+
+
+ create a shape by copying attributes from another shape The function clones a PxShape. The following properties are copied: - geometry - flags - materials - actor-local pose - contact offset - rest offset - simulation filter data - query filter data - torsional patch radius - minimum torsional patch radius The following are not copied and retain their default values: - name - user data the newly-created rigid static
+
+
+ create a static body by copying attributes from another rigid actor The function clones a PxRigidDynamic or PxRigidStatic as a PxRigidStatic. A uniform scale is applied. The following properties are copied: - shapes - actor flags - owner client and client behavior bits - dominance group The following are not copied and retain their default values: - name - joints or observers - aggregate or scene membership - user data Transforms are not copied with bit-exact accuracy. the newly-created rigid static
+
+
+ create a dynamic body by copying attributes from an existing body The following properties are copied: - shapes - actor flags, rigidDynamic flags and rigidDynamic lock flags - mass, moment of inertia, and center of mass frame - linear and angular velocity - linear and angular damping - maximum linear velocity - maximum angular velocity - position and velocity solver iterations - maximum depenetration velocity - sleep threshold - contact report threshold - dominance group - owner client and client behavior bits - name pointer - kinematic target The following are not copied and retain their default values: - name - joints or observers - aggregate or scene membership - sleep timer - user data Transforms are not copied with bit-exact accuracy. the newly-created rigid static
+
+
+ create a plane actor. The plane equation is n.x + d = 0 a new static actor, or NULL if it could not be constructed
+
+
+ Initialize the PhysXExtensions library. This should be called before calling any functions or methods in extensions which may require allocation. This function does not need to be called before creating a PxDefaultAllocator object.
+
+
+ This filter callback is executed before the exact intersection test if PxQueryFlag::ePREFILTER flag was set. the updated type for this hit (see [`PxQueryHitType`])
+
+
+ This filter callback is executed if the exact intersection test returned true and PxQueryFlag::ePOSTFILTER flag was set. the updated hit type for this hit (see [`PxQueryHitType`])
+
+
+ virtual destructor
+
+
+ Moves kinematically controlled dynamic actors through the game world. You set a dynamic actor to be kinematic using the PxRigidBodyFlag::eKINEMATIC flag with setRigidBodyFlag(). The move command will result in a velocity that will move the body into the desired pose. After the move is carried out during a single time step, the velocity is returned to zero. Thus, you must continuously call this in every time step for kinematic actors so that they move along a path. This function simply stores the move destination until the next simulation step is processed, so consecutive calls will simply overwrite the stored target variable. The motion is always fully carried out. It is invalid to use this method if the actor has not been added to a scene already or if PxActorFlag::eDISABLE_SIMULATION is set. Sleeping: This call wakes the actor if it is sleeping and will set the wake counter to [`PxSceneDesc::wakeCounterResetValue`].
+
+
+ Get target pose of a kinematically controlled dynamic actor. True if the actor is a kinematically controlled dynamic and the target has been set, else False.
+
+
+ Returns true if this body is sleeping. When an actor does not move for a period of time, it is no longer simulated in order to save time. This state is called sleeping. However, because the object automatically wakes up when it is either touched by an awake object, or one of its properties is changed by the user, the entire sleep mechanism should be transparent to the user. In general, a dynamic rigid actor is guaranteed to be awake if at least one of the following holds: The wake counter is positive (see [`setWakeCounter`]()). The linear or angular velocity is non-zero. A non-zero force or torque has been applied. If a dynamic rigid actor is sleeping, the following state is guaranteed: The wake counter is zero. The linear and angular velocity is zero. There is no force update pending. When an actor gets inserted into a scene, it will be considered asleep if all the points above hold, else it will be treated as awake. If an actor is asleep after the call to PxScene::fetchResults() returns, it is guaranteed that the pose of the actor was not changed. You can use this information to avoid updating the transforms of associated objects. A kinematic actor is asleep unless a target pose has been set (in which case it will stay awake until two consecutive simulation steps without a target pose being set have passed). The wake counter will get set to zero or to the reset value [`PxSceneDesc::wakeCounterResetValue`] in the case where a target pose has been set to be consistent with the definitions above. It is invalid to use this method if the actor has not been added to a scene already. It is not allowed to use this method while the simulation is running. True if the actor is sleeping.
+
+
+ Sets the mass-normalized kinetic energy threshold below which an actor may go to sleep. Actors whose kinetic energy divided by their mass is below this threshold will be candidates for sleeping. Default: 5e-5f * PxTolerancesScale::speed * PxTolerancesScale::speed
+
+
+ Returns the mass-normalized kinetic energy below which an actor may go to sleep. The energy threshold for sleeping.
+
+
+ Sets the mass-normalized kinetic energy threshold below which an actor may participate in stabilization. Actors whose kinetic energy divided by their mass is above this threshold will not participate in stabilization. This value has no effect if PxSceneFlag::eENABLE_STABILIZATION was not enabled on the PxSceneDesc. Default: 1e-5f * PxTolerancesScale::speed * PxTolerancesScale::speed
+
+
+ Returns the mass-normalized kinetic energy below which an actor may participate in stabilization. Actors whose kinetic energy divided by their mass is above this threshold will not participate in stabilization. The energy threshold for participating in stabilization.
+
+
+ Reads the PxRigidDynamic lock flags. See the list of flags [`PxRigidDynamicLockFlag`] The values of the PxRigidDynamicLock flags.
+
+
+ Raises or clears a particular rigid dynamic lock flag. See the list of flags [`PxRigidDynamicLockFlag`] Default: no flags are set
+
+
+ Retrieves the linear velocity of an actor. It is not allowed to use this method while the simulation is running (except during PxScene::collide(), in PxContactModifyCallback or in contact report callbacks). The linear velocity of the actor.
+
+
+ Sets the linear velocity of the actor. Note that if you continuously set the velocity of an actor yourself, forces such as gravity or friction will not be able to manifest themselves, because forces directly influence only the velocity/momentum of an actor. Default: (0.0, 0.0, 0.0) Sleeping: This call wakes the actor if it is sleeping, and the autowake parameter is true (default) or the new velocity is non-zero. It is invalid to use this method if PxActorFlag::eDISABLE_SIMULATION is set.
+
+
+ Retrieves the angular velocity of the actor. It is not allowed to use this method while the simulation is running (except during PxScene::collide(), in PxContactModifyCallback or in contact report callbacks). The angular velocity of the actor.
+
+
+ Sets the angular velocity of the actor. Note that if you continuously set the angular velocity of an actor yourself, forces such as friction will not be able to rotate the actor, because forces directly influence only the velocity/momentum. Default: (0.0, 0.0, 0.0) Sleeping: This call wakes the actor if it is sleeping, and the autowake parameter is true (default) or the new velocity is non-zero. It is invalid to use this method if PxActorFlag::eDISABLE_SIMULATION is set.
+
+
+ Sets the wake counter for the actor. The wake counter value determines the minimum amount of time until the body can be put to sleep. Please note that a body will not be put to sleep if the energy is above the specified threshold (see [`setSleepThreshold`]()) or if other awake bodies are touching it. Passing in a positive value will wake the actor up automatically. It is invalid to use this method for kinematic actors since the wake counter for kinematics is defined based on whether a target pose has been set (see the comment in [`isSleeping`]()). It is invalid to use this method if PxActorFlag::eDISABLE_SIMULATION is set. Default: 0.4 (which corresponds to 20 frames for a time step of 0.02)
+
+
+ Returns the wake counter of the actor. It is not allowed to use this method while the simulation is running. The wake counter of the actor.
+
+
+ Wakes up the actor if it is sleeping. The actor will get woken up and might cause other touching actors to wake up as well during the next simulation step. This will set the wake counter of the actor to the value specified in [`PxSceneDesc::wakeCounterResetValue`]. It is invalid to use this method if the actor has not been added to a scene already or if PxActorFlag::eDISABLE_SIMULATION is set. It is invalid to use this method for kinematic actors since the sleep state for kinematics is defined based on whether a target pose has been set (see the comment in [`isSleeping`]()).
+
+
+ Forces the actor to sleep. The actor will stay asleep during the next simulation step if not touched by another non-sleeping actor. Any applied force will be cleared and the velocity and the wake counter of the actor will be set to 0. It is invalid to use this method if the actor has not been added to a scene already or if PxActorFlag::eDISABLE_SIMULATION is set. It is invalid to use this method for kinematic actors since the sleep state for kinematics is defined based on whether a target pose has been set (see the comment in [`isSleeping`]()).
+
+
+ Sets the solver iteration counts for the body. The solver iteration count determines how accurately joints and contacts are resolved. If you are having trouble with jointed bodies oscillating and behaving erratically, then setting a higher position iteration count may improve their stability. If intersecting bodies are being depenetrated too violently, increase the number of velocity iterations. More velocity iterations will drive the relative exit velocity of the intersecting objects closer to the correct value given the restitution. Default: 4 position iterations, 1 velocity iteration
+
+
+ Retrieves the solver iteration counts.
+
+
+ Retrieves the force threshold for contact reports. The contact report threshold is a force threshold. If the force between two actors exceeds this threshold for either of the two actors, a contact report will be generated according to the contact report threshold flags provided by the filter shader/callback. See [`PxPairFlag`]. The threshold used for a collision between a dynamic actor and the static environment is the threshold of the dynamic actor, and all contacts with static actors are summed to find the total normal force. Default: PX_MAX_F32 Force threshold for contact reports.
+
+
+ Sets the force threshold for contact reports. See [`getContactReportThreshold`]().
+
+
+ (re)sets the structure to the default.
+
+
+ Returns true if the descriptor is valid. true if the current settings are valid.
+
+
+ Creates an external scene query system. An external SQ system is the part of a PxScene that deals with scene queries (SQ). This is usually taken care of by an internal implementation inside PxScene, but it is also possible to re-route all SQ calls to an external implementation, potentially opening the door to some customizations in behavior and features for advanced users. The following external SQ system is an example of how an implementation would look like. It re-uses much of the same code as the internal version, but it could be re-implemented in a completely different way to match users' specific needs. An external SQ system instance
+
+
+ Sets the rebuild rate of the dynamic tree pruning structures.
+
+
+ Retrieves the rebuild rate of the dynamic tree pruning structures. The rebuild rate of the dynamic tree pruning structures.
+
+
+ Forces dynamic trees to be immediately rebuilt. PxScene will call this function with the PX_SCENE_PRUNER_STATIC or PX_SCENE_PRUNER_DYNAMIC value.
+
+
+ Sets scene query update mode
+
+
+ Gets scene query update mode Current scene query update mode.
+
+
+ Retrieves the system's internal scene query timestamp, increased each time a change to the static scene query structure is performed. scene query static timestamp
+
+
+ Flushes any changes to the scene query representation. This method updates the state of the scene query representation to match changes in the scene state. By default, these changes are buffered until the next query is submitted. Calling this function will not change the results from scene queries, but can be used to ensure that a query will not perform update work in the course of its execution. A thread performing updates will hold a write lock on the query structure, and thus stall other querying threads. In multithread scenarios it can be useful to explicitly schedule the period where this lock may be held for a significant period, so that subsequent queries issued from multiple threads will not block.
+
+
+ Performs a raycast against objects in the scene, returns results in a PxRaycastBuffer object or via a custom user callback implementation inheriting from PxRaycastCallback. Touching hits are not ordered. Shooting a ray from within an object leads to different results depending on the shape type. Please check the details in user guide article SceneQuery. User can ignore such objects by employing one of the provided filter mechanisms. True if any touching or blocking hits were found or any hit was found in case PxQueryFlag::eANY_HIT was specified.
+
+
+ Performs a sweep test against objects in the scene, returns results in a PxSweepBuffer object or via a custom user callback implementation inheriting from PxSweepCallback. Touching hits are not ordered. If a shape from the scene is already overlapping with the query shape in its starting position, the hit is returned unless eASSUME_NO_INITIAL_OVERLAP was specified. True if any touching or blocking hits were found or any hit was found in case PxQueryFlag::eANY_HIT was specified.
+
+
+ Performs an overlap test of a given geometry against objects in the scene, returns results in a PxOverlapBuffer object or via a custom user callback implementation inheriting from PxOverlapCallback. Filtering: returning eBLOCK from user filter for overlap queries will cause a warning (see [`PxQueryHitType`]). True if any touching or blocking hits were found or any hit was found in case PxQueryFlag::eANY_HIT was specified. eBLOCK should not be returned from user filters for overlap(). Doing so will result in undefined behavior, and a warning will be issued. If the PxQueryFlag::eNO_BLOCK flag is set, the eBLOCK will instead be automatically converted to an eTOUCH and the warning suppressed.
+
+
+ Sets scene query update mode
+
+
+ Gets scene query update mode Current scene query update mode.
+
+
+ Retrieves the scene's internal scene query timestamp, increased each time a change to the static scene query structure is performed. scene query static timestamp
+
+
+ Flushes any changes to the scene query representation.
+
+
+ Forces dynamic trees to be immediately rebuilt.
+
+
+ Return the value of PxSceneQueryDesc::staticStructure that was set when creating the scene with PxPhysics::createScene
+
+
+ Return the value of PxSceneQueryDesc::dynamicStructure that was set when creating the scene with PxPhysics::createScene
+
+
+ Executes scene queries update tasks. This function will refit dirty shapes within the pruner and will execute a task to build a new AABB tree, which is build on a different thread. The new AABB tree is built based on the dynamic tree rebuild hint rate. Once the new tree is ready it will be commited in next fetchQueries call, which must be called after. This function is equivalent to the following PxSceneQuerySystem calls: Synchronous calls: - PxSceneQuerySystemBase::flushUpdates() - handle0 = PxSceneQuerySystem::prepareSceneQueryBuildStep(PX_SCENE_PRUNER_STATIC) - handle1 = PxSceneQuerySystem::prepareSceneQueryBuildStep(PX_SCENE_PRUNER_DYNAMIC) Asynchronous calls: - PxSceneQuerySystem::sceneQueryBuildStep(handle0); - PxSceneQuerySystem::sceneQueryBuildStep(handle1); This function is part of the PxSceneSQSystem interface because it uses the PxScene task system under the hood. But it calls PxSceneQuerySystem functions, which are independent from this system and could be called in a similar fashion by a separate, possibly user-defined task manager. If PxSceneQueryUpdateMode::eBUILD_DISABLED_COMMIT_DISABLED is used, it is required to update the scene queries using this function.
+
+
+ This checks to see if the scene queries update has completed. This does not cause the data available for reading to be updated with the results of the scene queries update, it is simply a status check. The bool will allow it to either return immediately or block waiting for the condition to be met so that it can return true True if the results are available.
+
+
+ This method must be called after sceneQueriesUpdate. It will wait for the scene queries update to finish. If the user makes an illegal scene queries update call, the SDK will issue an error message. If a new AABB tree build finished, then during fetchQueries the current tree within the pruning structure is swapped with the new tree.
+
+
+ Decrements the reference count of the object and releases it if the new reference count is zero.
+
+
+ Acquires a counted reference to this object. This method increases the reference count of the object by 1. Decrement the reference count by calling release()
+
+
+ Preallocates internal arrays to minimize the amount of reallocations. The system does not prevent more allocations than given numbers. It is legal to not call this function at all, or to add more shapes to the system than the preallocated amounts.
+
+
+ Frees internal memory that may not be in-use anymore. This is an entry point for reclaiming transient memory allocated at some point by the SQ system, but which wasn't been immediately freed for performance reason. Calling this function might free some memory, but it might also produce a new set of allocations in the next frame.
+
+
+ Adds a shape to the SQ system. The same function is used to add either a regular shape, or a SQ compound shape.
+
+
+ Removes a shape from the SQ system. The same function is used to remove either a regular shape, or a SQ compound shape.
+
+
+ Updates a shape in the SQ system. The same function is used to update either a regular shape, or a SQ compound shape. The transforms are eager-evaluated, but the bounds are lazy-evaluated. This means that the updated transform has to be passed to the update function, while the bounds are automatically recomputed by the system whenever needed.
+
+
+ Adds a compound to the SQ system. SQ compound handle
+
+
+ Removes a compound from the SQ system.
+
+
+ Updates a compound in the SQ system. The compound structures are immediately updated when the call occurs.
+
+
+ Shift the data structures' origin by the specified vector. Please refer to the notes of the similar function in PxScene.
+
+
+ Merges a pruning structure with the SQ system's internal pruners.
+
+
+ Shape to SQ-pruner-handle mapping function. This function finds and returns the SQ pruner handle associated with a given (actor/shape) couple that was previously added to the system. This is needed for the sync function. Associated SQ pruner handle.
+
+
+ Synchronizes the scene-query system with another system that references the same objects. This function is used when the scene-query objects also exist in another system that can also update them. For example the scene-query objects (used for raycast, overlap or sweep queries) might be driven by equivalent objects in an external rigid-body simulation engine. In this case the rigid-body simulation engine computes the new poses and transforms, and passes them to the scene-query system using this function. It is more efficient than calling updateSQShape on each object individually, since updateSQShape would end up recomputing the bounds already available in the rigid-body engine.
+
+
+ Finalizes updates made to the SQ system. This function should be called after updates have been made to the SQ system, to fully reflect the changes inside the internal pruners. In particular it should be called: - after calls to updateSQShape - after calls to sync This function: - recomputes bounds of manually updated shapes (i.e. either regular or SQ compound shapes modified by updateSQShape) - updates dynamic pruners (refit operations) - incrementally rebuilds AABB-trees The amount of work performed in this function depends on PxSceneQueryUpdateMode.
+
+
+ Prepares asynchronous build step. This is directly called (synchronously) by PxSceneSQSystem::sceneQueriesUpdate(). See the comments there. This function is called to let the system execute any necessary synchronous operation before the asynchronous sceneQueryBuildStep() function is called. If there is any work to do for the specific pruner, the function returns a pruner-specific handle that will be passed to the corresponding, asynchronous sceneQueryBuildStep function. A pruner-specific handle that will be sent to sceneQueryBuildStep if there is any work to do, i.e. to execute the corresponding sceneQueryBuildStep() call. Null if there is no work to do, otherwise a pruner-specific handle.
+
+
+ Executes asynchronous build step. This is directly called (asynchronously) by PxSceneSQSystem::sceneQueriesUpdate(). See the comments there. This function incrementally builds the internal trees/pruners. It is called asynchronously, i.e. this can be called from different threads for building multiple trees at the same time.
+
+
+ Broadphase factory function. Use this function to create a new standalone broadphase. Newly created broadphase, or NULL
+
+
+ Returns number of regions currently registered in the broad-phase. Number of regions
+
+
+ Gets broad-phase regions. Number of written out regions.
+
+
+ Adds a new broad-phase region. The total number of regions is limited to PxBroadPhaseCaps::mMaxNbRegions. If that number is exceeded, the call is ignored. The newly added region will be automatically populated with already existing objects that touch it, if the 'populateRegion' parameter is set to true. Otherwise the newly added region will be empty, and it will only be populated with objects when those objects are added to the simulation, or updated if they already exist. Using 'populateRegion=true' has a cost, so it is best to avoid it if possible. In particular it is more efficient to create the empty regions first (with populateRegion=false) and then add the objects afterwards (rather than the opposite). Objects automatically move from one region to another during their lifetime. The system keeps tracks of what regions a given object is in. It is legal for an object to be in an arbitrary number of regions. However if an object leaves all regions, or is created outside of all regions, several things happen: - collisions get disabled for this object - the object appears in the getOutOfBoundsObjects() array If an out-of-bounds object, whose collisions are disabled, re-enters a valid broadphase region, then collisions are re-enabled for that object. Handle for newly created region, or 0xffffffff in case of failure.
+
+
+ Removes a broad-phase region. If the region still contains objects, and if those objects do not overlap any region any more, they are not automatically removed from the simulation. Instead, the PxBroadPhaseCallback::onObjectOutOfBounds notification is used for each object. Users are responsible for removing the objects from the simulation if this is the desired behavior. If the handle is invalid, or if a valid handle is removed twice, an error message is sent to the error stream. True if success
+
+
+ Gets the broadphase type. Broadphase type.
+
+
+ Gets broad-phase caps.
+
+
+ Retrieves the regions API if applicable. For broadphases that do not use explicit user-defined regions, this call returns NULL. Region API, or NULL.
+
+
+ Retrieves the broadphase allocator. User-provided buffers should ideally be allocated with this allocator, for best performance. This is especially true for the GPU broadphases, whose buffers need to be allocated in CUDA host memory. The broadphase allocator.
+
+
+ Retrieves the profiler's context ID. The context ID.
+
+
+ Sets a scratch buffer Some broadphases might take advantage of a scratch buffer to limit runtime allocations. All broadphases still work without providing a scratch buffer, this is an optional function that can potentially reduce runtime allocations.
+
+
+ Updates the broadphase and computes the lists of created/deleted pairs. The provided update data describes changes to objects since the last broadphase update. To benefit from potentially multithreaded implementations, it is necessary to provide a continuation task to the function. It is legal to pass NULL there, but the underlying (CPU) implementations will then run single-threaded.
+
+
+ Retrieves the broadphase results after an update. This should be called once after each update call to retrieve the results of the broadphase. The results are incremental, i.e. the system only returns new and lost pairs, not all current pairs.
+
+
+ Helper for single-threaded updates. This short helper function performs a single-theaded update and reports the results in a single call.
+
+
+ AABB manager factory function. Use this function to create a new standalone high-level broadphase. Newly created AABB manager, or NULL
+
+
+ Retrieves the underlying broadphase. The managed broadphase.
+
+
+ Retrieves the managed bounds. This is needed as input parameters to functions like PxBroadPhaseRegions::addRegion. The managed object bounds.
+
+
+ Retrieves the managed distances. This is needed as input parameters to functions like PxBroadPhaseRegions::addRegion. The managed object distances.
+
+
+ Retrieves the managed filter groups. The managed object groups.
+
+
+ Retrieves the managed buffers' capacity. Bounds, distances and groups buffers have the same capacity. The managed buffers' capacity.
+
+
+ Adds an object to the manager. Objects' indices are externally managed, i.e. they must be provided by users (as opposed to handles that could be returned by this manager). The design allows users to identify an object by a single ID, and use the same ID in multiple sub-systems.
+
+
+ Removes an object from the manager.
+
+
+ Updates an object in the manager. This call can update an object's bounds, distance, or both. It is not possible to update an object's filter group.
+
+
+ Updates the broadphase and computes the lists of created/deleted pairs. The data necessary for updating the broadphase is internally computed by the AABB manager. To benefit from potentially multithreaded implementations, it is necessary to provide a continuation task to the function. It is legal to pass NULL there, but the underlying (CPU) implementations will then run single-threaded.
+
+
+ Retrieves the broadphase results after an update. This should be called once after each update call to retrieve the results of the broadphase. The results are incremental, i.e. the system only returns new and lost pairs, not all current pairs.
+
+
+ Helper for single-threaded updates. This short helper function performs a single-theaded update and reports the results in a single call.
+
+
+ (re)sets the structure to the default
+
+
+ Returns true if the descriptor is valid. true if the current settings are valid.
+
+
+ Get number of broadphase volumes added for the current simulation step. Number of broadphase volumes added.
+
+
+ Get number of broadphase volumes removed for the current simulation step. Number of broadphase volumes removed.
+
+
+ Get number of shape collision pairs of a certain type processed for the current simulation step. There is an entry for each geometry pair type. entry[i][j] = entry[j][i], hence, if you want the sum of all pair types, you need to discard the symmetric entries Number of processed pairs of the specified geometry types.
+
+
+ Sets the PVD flag. See PxPvdSceneFlag.
+
+
+ Sets the PVD flags. See PxPvdSceneFlags.
+
+
+ Retrieves the PVD flags. See PxPvdSceneFlags.
+
+
+ update camera on PVD application's render window
+
+
+ draw points on PVD application's render window
+
+
+ draw lines on PVD application's render window
+
+
+ draw triangles on PVD application's render window
+
+
+ draw text on PVD application's render window
+
+
+ Out-of-bounds notification. This function is called when an object leaves the broad-phase.
+
+
+ Out-of-bounds notification. This function is called when an aggregate leaves the broad-phase.
+
+
+ Deletes the scene. Removes any actors and constraint shaders from this scene (if the user hasn't already done so). Be sure to not keep a reference to this object after calling release. Avoid release calls while the scene is simulating (in between simulate() and fetchResults() calls).
+
+
+ Sets a scene flag. You can only set one flag at a time. Not all flags are mutable and changing some will result in an error. Please check [`PxSceneFlag`] to see which flags can be changed.
+
+
+ Get the scene flags. The scene flags. See [`PxSceneFlag`]
+
+
+ Set new scene limits. Increase the maximum capacity of various data structures in the scene. The new capacities will be at least as large as required to deal with the objects currently in the scene. Further, these values are for preallocation and do not represent hard limits.
+
+
+ Get current scene limits. Current scene limits.
+
+
+ Call this method to retrieve the Physics SDK. The physics SDK this scene is associated with.
+
+
+ Retrieves the scene's internal timestamp, increased each time a simulation step is completed. scene timestamp
+
+
+ Adds an articulation to this scene. If the articulation is already assigned to a scene (see [`PxArticulationReducedCoordinate::getScene`]), the call is ignored and an error is issued. True if success
+
+
+ Removes an articulation from this scene. If the articulation is not part of this scene (see [`PxArticulationReducedCoordinate::getScene`]), the call is ignored and an error is issued. If the articulation is in an aggregate it will be removed from the aggregate.
+
+
+ Adds an actor to this scene. If the actor is already assigned to a scene (see [`PxActor::getScene`]), the call is ignored and an error is issued. If the actor has an invalid constraint, in checked builds the call is ignored and an error is issued. You can not add individual articulation links (see [`PxArticulationLink`]) to the scene. Use #addArticulation() instead. If the actor is a PxRigidActor then each assigned PxConstraint object will get added to the scene automatically if it connects to another actor that is part of the scene already. When a BVH is provided the actor shapes are grouped together. The scene query pruning structure inside PhysX SDK will store/update one bound per actor. The scene queries against such an actor will query actor bounds and then make a local space query against the provided BVH, which is in actor's local space. True if success
+
+
+ Adds actors to this scene. Only supports actors of type PxRigidStatic and PxRigidDynamic. This method only supports actors of type PxRigidStatic and PxRigidDynamic. For other actors, use addActor() instead. For articulation links, use addArticulation(). If one of the actors is already assigned to a scene (see [`PxActor::getScene`]), the call is ignored and an error is issued. If an actor in the array contains an invalid constraint, in checked builds the call is ignored and an error is issued. If an actor in the array is a PxRigidActor then each assigned PxConstraint object will get added to the scene automatically if it connects to another actor that is part of the scene already. this method is optimized for high performance. True if success
+
+
+ Adds a pruning structure together with its actors to this scene. Only supports actors of type PxRigidStatic and PxRigidDynamic. This method only supports actors of type PxRigidStatic and PxRigidDynamic. For other actors, use addActor() instead. For articulation links, use addArticulation(). If an actor in the pruning structure contains an invalid constraint, in checked builds the call is ignored and an error is issued. For all actors in the pruning structure each assigned PxConstraint object will get added to the scene automatically if it connects to another actor that is part of the scene already. This method is optimized for high performance. Merging a PxPruningStructure into an active scene query optimization AABB tree might unbalance the tree. A typical use case for PxPruningStructure is a large world scenario where blocks of closely positioned actors get streamed in. The merge process finds the best node in the active scene query optimization AABB tree and inserts the PxPruningStructure. Therefore using PxPruningStructure for actors scattered throughout the world will result in an unbalanced tree. True if success
+
+
+ Removes an actor from this scene. If the actor is not part of this scene (see [`PxActor::getScene`]), the call is ignored and an error is issued. You can not remove individual articulation links (see [`PxArticulationLink`]) from the scene. Use #removeArticulation() instead. If the actor is a PxRigidActor then all assigned PxConstraint objects will get removed from the scene automatically. If the actor is in an aggregate it will be removed from the aggregate.
+
+
+ Removes actors from this scene. Only supports actors of type PxRigidStatic and PxRigidDynamic. This method only supports actors of type PxRigidStatic and PxRigidDynamic. For other actors, use removeActor() instead. For articulation links, use removeArticulation(). If some actor is not part of this scene (see [`PxActor::getScene`]), the actor remove is ignored and an error is issued. You can not remove individual articulation links (see [`PxArticulationLink`]) from the scene. Use #removeArticulation() instead. If the actor is a PxRigidActor then all assigned PxConstraint objects will get removed from the scene automatically.
+
+
+ Adds an aggregate to this scene. If the aggregate is already assigned to a scene (see [`PxAggregate::getScene`]), the call is ignored and an error is issued. If the aggregate contains an actor with an invalid constraint, in checked builds the call is ignored and an error is issued. If the aggregate already contains actors, those actors are added to the scene as well. True if success
+
+
+ Removes an aggregate from this scene. If the aggregate is not part of this scene (see [`PxAggregate::getScene`]), the call is ignored and an error is issued. If the aggregate contains actors, those actors are removed from the scene as well.
+
+
+ Adds objects in the collection to this scene. This function adds the following types of objects to this scene: PxRigidActor (except PxArticulationLink), PxAggregate, PxArticulationReducedCoordinate. This method is typically used after deserializing the collection in order to populate the scene with deserialized objects. If the collection contains an actor with an invalid constraint, in checked builds the call is ignored and an error is issued. True if success
+
+
+ Retrieve the number of actors of certain types in the scene. For supported types, see PxActorTypeFlags. the number of actors.
+
+
+ Retrieve an array of all the actors of certain types in the scene. For supported types, see PxActorTypeFlags. Number of actors written to the buffer.
+
+
+ Queries the PxScene for a list of the PxActors whose transforms have been updated during the previous simulation step. Only includes actors of type PxRigidDynamic and PxArticulationLink. PxSceneFlag::eENABLE_ACTIVE_ACTORS must be set. Do not use this method while the simulation is running. Calls to this method while the simulation is running will be ignored and NULL will be returned. A pointer to the list of active PxActors generated during the last call to fetchResults().
+
+
+ Returns the number of articulations in the scene. the number of articulations in this scene.
+
+
+ Retrieve all the articulations in the scene. Number of articulations written to the buffer.
+
+
+ Returns the number of constraint shaders in the scene. the number of constraint shaders in this scene.
+
+
+ Retrieve all the constraint shaders in the scene. Number of constraint shaders written to the buffer.
+
+
+ Returns the number of aggregates in the scene. the number of aggregates in this scene.
+
+
+ Retrieve all the aggregates in the scene. Number of aggregates written to the buffer.
+
+
+ Specifies the dominance behavior of contacts between two actors with two certain dominance groups. It is possible to assign each actor to a dominance groups using [`PxActor::setDominanceGroup`](). With dominance groups one can have all contacts created between actors act in one direction only. This is useful, for example, if you want an object to push debris out of its way and be unaffected,while still responding physically to forces and collisions with non-debris objects. Whenever a contact between two actors (a0, a1) needs to be solved, the groups (g0, g1) of both actors are retrieved. Then the PxDominanceGroupPair setting for this group pair is retrieved with getDominanceGroupPair(g0, g1). In the contact, PxDominanceGroupPair::dominance0 becomes the dominance setting for a0, and PxDominanceGroupPair::dominance1 becomes the dominance setting for a1. A dominanceN setting of 1.0f, the default, will permit aN to be pushed or pulled by a(1-N) through the contact. A dominanceN setting of 0.0f, will however prevent aN to be pushed by a(1-N) via the contact. Thus, a PxDominanceGroupPair of (1.0f, 0.0f) makes the interaction one-way. The matrix sampled by getDominanceGroupPair(g1, g2) is initialised by default such that: if g1 == g2, then (1.0f, 1.0f) is returned if g1 < g2, then (0.0f, 1.0f) is returned if g1 > g2, then (1.0f, 0.0f) is returned In other words, we permit actors in higher groups to be pushed around by actors in lower groups by default. These settings should cover most applications, and in fact not overriding these settings may likely result in higher performance. It is not possible to make the matrix asymetric, or to change the diagonal. In other words: it is not possible to change (g1, g2) if (g1==g2) if you set (g1, g2) to X, then (g2, g1) will implicitly and automatically be set to ~X, where: ~(1.0f, 1.0f) is (1.0f, 1.0f) ~(0.0f, 1.0f) is (1.0f, 0.0f) ~(1.0f, 0.0f) is (0.0f, 1.0f) These two restrictions are to make sure that contacts between two actors will always evaluate to the same dominance setting, regardless of the order of the actors. Dominance settings are currently specified as floats 0.0f or 1.0f because in the future we may permit arbitrary fractional settings to express 'partly-one-way' interactions. Sleeping: Does NOT wake actors up automatically.
+
+
+ Samples the dominance matrix.
+
+
+ Return the cpu dispatcher that was set in PxSceneDesc::cpuDispatcher when creating the scene with PxPhysics::createScene
+
+
+ Reserves a new client ID. PX_DEFAULT_CLIENT is always available as the default clientID. Additional clients are returned by this function. Clients cannot be released once created. An error is reported when more than a supported number of clients (currently 128) are created.
+
+
+ Sets a user notify object which receives special simulation events when they occur. Do not set the callback while the simulation is running. Calls to this method while the simulation is running will be ignored.
+
+
+ Retrieves the simulationEventCallback pointer set with setSimulationEventCallback(). The current user notify pointer. See [`PxSimulationEventCallback`].
+
+
+ Sets a user callback object, which receives callbacks on all contacts generated for specified actors. Do not set the callback while the simulation is running. Calls to this method while the simulation is running will be ignored.
+
+
+ Sets a user callback object, which receives callbacks on all CCD contacts generated for specified actors. Do not set the callback while the simulation is running. Calls to this method while the simulation is running will be ignored.
+
+
+ Retrieves the PxContactModifyCallback pointer set with setContactModifyCallback(). The current user contact modify callback pointer. See [`PxContactModifyCallback`].
+
+
+ Retrieves the PxCCDContactModifyCallback pointer set with setContactModifyCallback(). The current user contact modify callback pointer. See [`PxContactModifyCallback`].
+
+
+ Sets a broad-phase user callback object. Do not set the callback while the simulation is running. Calls to this method while the simulation is running will be ignored.
+
+
+ Retrieves the PxBroadPhaseCallback pointer set with setBroadPhaseCallback(). The current broad-phase callback pointer. See [`PxBroadPhaseCallback`].
+
+
+ Sets the shared global filter data which will get passed into the filter shader. It is the user's responsibility to ensure that changing the shared global filter data does not change the filter output value for existing pairs. If the filter output for existing pairs does change nonetheless then such a change will not take effect until the pair gets refiltered. resetFiltering() can be used to explicitly refilter the pairs of specific objects. The provided data will get copied to internal buffers and this copy will be used for filtering calls. Do not use this method while the simulation is running. Calls to this method while the simulation is running will be ignored.
+
+
+ Gets the shared global filter data in use for this scene. The reference points to a copy of the original filter data specified in [`PxSceneDesc`].filterShaderData or provided by #setFilterShaderData(). Shared filter data for filter shader.
+
+
+ Gets the size of the shared global filter data ([`PxSceneDesc`].filterShaderData) Size of shared filter data [bytes].
+
+
+ Marks the object to reset interactions and re-run collision filters in the next simulation step. This call forces the object to remove all existing collision interactions, to search anew for existing contact pairs and to run the collision filters again for found collision pairs. The operation is supported for PxRigidActor objects only. All persistent state of existing interactions will be lost and can not be retrieved even if the same collison pair is found again in the next step. This will mean, for example, that you will not get notified about persistent contact for such an interaction (see [`PxPairFlag::eNOTIFY_TOUCH_PERSISTS`]), the contact pair will be interpreted as newly found instead. Lost touch contact reports will be sent for every collision pair which includes this shape, if they have been requested through [`PxPairFlag::eNOTIFY_TOUCH_LOST`] or #PxPairFlag::eNOTIFY_THRESHOLD_FORCE_LOST. This is an expensive operation, don't use it if you don't have to. Can be used to retrieve collision pairs that were killed by the collision filters (see [`PxFilterFlag::eKILL`]) It is invalid to use this method if the actor has not been added to a scene already. It is invalid to use this method if PxActorFlag::eDISABLE_SIMULATION is set. Do not use this method while the simulation is running. Sleeping: Does wake up the actor. True if success
+
+
+ Marks the object to reset interactions and re-run collision filters for specified shapes in the next simulation step. This is a specialization of the resetFiltering(PxActor & actor) method and allows to reset interactions for specific shapes of a PxRigidActor. Do not use this method while the simulation is running. Sleeping: Does wake up the actor.
+
+
+ Gets the pair filtering mode for kinematic-kinematic pairs. Filtering mode for kinematic-kinematic pairs.
+
+
+ Gets the pair filtering mode for static-kinematic pairs. Filtering mode for static-kinematic pairs.
+
+
+ Advances the simulation by an elapsedTime time. Large elapsedTime values can lead to instabilities. In such cases elapsedTime should be subdivided into smaller time intervals and simulate() should be called multiple times for each interval. Calls to simulate() should pair with calls to fetchResults(): Each fetchResults() invocation corresponds to exactly one simulate() invocation; calling simulate() twice without an intervening fetchResults() or fetchResults() twice without an intervening simulate() causes an error condition. scene->simulate(); ...do some processing until physics is computed... scene->fetchResults(); ...now results of run may be retrieved. True if success
+
+
+ Performs dynamics phase of the simulation pipeline. Calls to advance() should follow calls to fetchCollision(). An error message will be issued if this sequence is not followed. True if success
+
+
+ Performs collision detection for the scene over elapsedTime Calls to collide() should be the first method called to simulate a frame. True if success
+
+
+ This checks to see if the simulation run has completed. This does not cause the data available for reading to be updated with the results of the simulation, it is simply a status check. The bool will allow it to either return immediately or block waiting for the condition to be met so that it can return true True if the results are available.
+
+
+ This method must be called after collide() and before advance(). It will wait for the collision phase to finish. If the user makes an illegal simulation call, the SDK will issue an error message.
+
+
+ This is the big brother to checkResults() it basically does the following: True if the results have been fetched.
+
+
+ This call performs the first section of fetchResults, and returns a pointer to the contact streams output by the simulation. It can be used to process contact pairs in parallel, which is often a limiting factor for fetchResults() performance. After calling this function and processing the contact streams, call fetchResultsFinish(). Note that writes to the simulation are not permitted between the start of fetchResultsStart() and the end of fetchResultsFinish(). True if the results have been fetched.
+
+
+ This call processes all event callbacks in parallel. It takes a continuation task, which will be executed once all callbacks have been processed. This is a utility function to make it easier to process callbacks in parallel using the PhysX task system. It can only be used in conjunction with fetchResultsStart(...) and fetchResultsFinish(...)
+
+
+ This call performs the second section of fetchResults. It must be called after fetchResultsStart() returns and contact reports have been processed. Note that once fetchResultsFinish() has been called, the contact streams returned in fetchResultsStart() will be invalid.
+
+
+ This call performs the synchronization of particle system data copies.
+
+
+ Clear internal buffers and free memory. This method can be used to clear buffers and free internal memory without having to destroy the scene. Can be useful if the physics data gets streamed in and a checkpoint with a clean state should be created. It is not allowed to call this method while the simulation is running. The call will fail.
+
+
+ Sets a constant gravity for the entire scene. Do not use this method while the simulation is running. Sleeping: Does NOT wake the actor up automatically.
+
+
+ Retrieves the current gravity setting. The current gravity for the scene.
+
+
+ Set the bounce threshold velocity. Collision speeds below this threshold will not cause a bounce. Do not use this method while the simulation is running.
+
+
+ Return the bounce threshold velocity.
+
+
+ Sets the maximum number of CCD passes Do not use this method while the simulation is running.
+
+
+ Gets the maximum number of CCD passes. The maximum number of CCD passes.
+
+
+ Set the maximum CCD separation. Do not use this method while the simulation is running.
+
+
+ Gets the maximum CCD separation. The maximum CCD separation.
+
+
+ Set the CCD threshold. Do not use this method while the simulation is running.
+
+
+ Gets the CCD threshold. The CCD threshold.
+
+
+ Set the max bias coefficient. Do not use this method while the simulation is running.
+
+
+ Gets the max bias coefficient. The max bias coefficient.
+
+
+ Set the friction offset threshold. Do not use this method while the simulation is running.
+
+
+ Gets the friction offset threshold.
+
+
+ Set the friction correlation distance. Do not use this method while the simulation is running.
+
+
+ Gets the friction correlation distance.
+
+
+ Return the friction model.
+
+
+ Return the solver model.
+
+
+ Function that lets you set debug visualization parameters. Returns false if the value passed is out of range for usage specified by the enum. Do not use this method while the simulation is running. False if the parameter is out of range.
+
+
+ Function that lets you query debug visualization parameters. The value of the parameter.
+
+
+ Defines a box in world space to which visualization geometry will be (conservatively) culled. Use a non-empty culling box to enable the feature, and an empty culling box to disable it. Do not use this method while the simulation is running.
+
+
+ Retrieves the visualization culling box. the box to which the geometry will be culled.
+
+
+ Retrieves the render buffer. This will contain the results of any active visualization for this scene. Do not use this method while the simulation is running. Calls to this method while the simulation is running will result in undefined behaviour. The render buffer.
+
+
+ Call this method to retrieve statistics for the current simulation step. Do not use this method while the simulation is running. Calls to this method while the simulation is running will be ignored.
+
+
+ Returns broad-phase type. Broad-phase type
+
+
+ Gets broad-phase caps. True if success
+
+
+ Returns number of regions currently registered in the broad-phase. Number of regions
+
+
+ Gets broad-phase regions. Number of written out regions
+
+
+ Adds a new broad-phase region. The bounds for the new region must be non-empty, otherwise an error occurs and the call is ignored. Note that by default, objects already existing in the SDK that might touch this region will not be automatically added to the region. In other words the newly created region will be empty, and will only be populated with new objects when they are added to the simulation, or with already existing objects when they are updated. It is nonetheless possible to override this default behavior and let the SDK populate the new region automatically with already existing objects overlapping the incoming region. This has a cost though, and it should only be used when the game can not guarantee that all objects within the new region will be added to the simulation after the region itself. Objects automatically move from one region to another during their lifetime. The system keeps tracks of what regions a given object is in. It is legal for an object to be in an arbitrary number of regions. However if an object leaves all regions, or is created outside of all regions, several things happen: - collisions get disabled for this object - if a PxBroadPhaseCallback object is provided, an \"out-of-bounds\" event is generated via that callback - if a PxBroadPhaseCallback object is not provided, a warning/error message is sent to the error stream If an object goes out-of-bounds and user deletes it during the same frame, neither the out-of-bounds event nor the error message is generated. Handle for newly created region, or 0xffffffff in case of failure.
+
+
+ Removes a new broad-phase region. If the region still contains objects, and if those objects do not overlap any region any more, they are not automatically removed from the simulation. Instead, the PxBroadPhaseCallback::onObjectOutOfBounds notification is used for each object. Users are responsible for removing the objects from the simulation if this is the desired behavior. If the handle is invalid, or if a valid handle is removed twice, an error message is sent to the error stream. True if success
+
+
+ Get the task manager associated with this scene the task manager associated with the scene
+
+
+ Lock the scene for reading from the calling thread. When the PxSceneFlag::eREQUIRE_RW_LOCK flag is enabled lockRead() must be called before any read calls are made on the scene. Multiple threads may read at the same time, no threads may read while a thread is writing. If a call to lockRead() is made while another thread is holding a write lock then the calling thread will be blocked until the writing thread calls unlockWrite(). Lock upgrading is *not* supported, that means it is an error to call lockRead() followed by lockWrite(). Recursive locking is supported but each lockRead() call must be paired with an unlockRead().
+
+
+ Unlock the scene from reading. Each unlockRead() must be paired with a lockRead() from the same thread.
+
+
+ Lock the scene for writing from this thread. When the PxSceneFlag::eREQUIRE_RW_LOCK flag is enabled lockWrite() must be called before any write calls are made on the scene. Only one thread may write at a time and no threads may read while a thread is writing. If a call to lockWrite() is made and there are other threads reading then the calling thread will be blocked until the readers complete. Writers have priority. If a thread is blocked waiting to write then subsequent calls to lockRead() from other threads will be blocked until the writer completes. If multiple threads are waiting to write then the thread that is first granted access depends on OS scheduling. Recursive locking is supported but each lockWrite() call must be paired with an unlockWrite(). If a thread has already locked the scene for writing then it may call lockRead().
+
+
+ Unlock the scene from writing. Each unlockWrite() must be paired with a lockWrite() from the same thread.
+
+
+ set the cache blocks that can be used during simulate(). Each frame the simulation requires memory to store contact, friction, and contact cache data. This memory is used in blocks of 16K. Each frame the blocks used by the previous frame are freed, and may be retrieved by the application using PxScene::flushSimulation() This call will force allocation of cache blocks if the numBlocks parameter is greater than the currently allocated number of blocks, and less than the max16KContactDataBlocks parameter specified at scene creation time. Do not use this method while the simulation is running.
+
+
+ get the number of cache blocks currently used by the scene This function may not be called while the scene is simulating the number of cache blocks currently used by the scene
+
+
+ get the maximum number of cache blocks used by the scene This function may not be called while the scene is simulating the maximum number of cache blocks everused by the scene
+
+
+ Return the value of PxSceneDesc::contactReportStreamBufferSize that was set when creating the scene with PxPhysics::createScene
+
+
+ Sets the number of actors required to spawn a separate rigid body solver thread. Do not use this method while the simulation is running.
+
+
+ Retrieves the number of actors required to spawn a separate rigid body solver thread. Current number of actors required to spawn a separate rigid body solver thread.
+
+
+ Sets the number of articulations required to spawn a separate rigid body solver thread. Do not use this method while the simulation is running.
+
+
+ Retrieves the number of articulations required to spawn a separate rigid body solver thread. Current number of articulations required to spawn a separate rigid body solver thread.
+
+
+ Returns the wake counter reset value. Wake counter reset value
+
+
+ Shift the scene origin by the specified vector. The poses of all objects in the scene and the corresponding data structures will get adjusted to reflect the new origin location (the shift vector will get subtracted from all object positions). It is the user's responsibility to keep track of the summed total origin shift and adjust all input/output to/from PhysX accordingly. Do not use this method while the simulation is running. Calls to this method while the simulation is running will be ignored. Make sure to propagate the origin shift to other dependent modules (for example, the character controller module etc.). This is an expensive operation and we recommend to use it only in the case where distance related precision issues may arise in areas far from the origin.
+
+
+ Returns the Pvd client associated with the scene. the client, NULL if no PVD supported.
+
+
+ Copy GPU articulation data from the internal GPU buffer to a user-provided device buffer.
+
+
+ Apply GPU articulation data from a user-provided device buffer to the internal GPU buffer.
+
+
+ Copy GPU softbody data from the internal GPU buffer to a user-provided device buffer.
+
+
+ Apply user-provided data to the internal softbody system.
+
+
+ Copy contact data from the internal GPU buffer to a user-provided device buffer. The contact data contains pointers to internal state and is only valid until the next call to simulate().
+
+
+ Copy GPU rigid body data from the internal GPU buffer to a user-provided device buffer.
+
+
+ Apply user-provided data to rigid body.
+
+
+ Compute dense Jacobian matrices for specified articulations on the GPU. The size of Jacobians can vary by articulation, since it depends on the number of links, degrees-of-freedom, and whether the base is fixed. The size is determined using these formulas: nCols = (fixedBase ? 0 : 6) + dofCount nRows = (fixedBase ? 0 : 6) + (linkCount - 1) * 6; The user must ensure that adequate space is provided for each Jacobian matrix.
+
+
+ Compute the joint-space inertia matrices that maps joint accelerations to joint forces: forces = M * accelerations on the GPU. The size of matrices can vary by articulation, since it depends on the number of links and degrees-of-freedom. The size is determined using this formula: sizeof(float) * dofCount * dofCount The user must ensure that adequate space is provided for each mass matrix.
+
+
+ Computes the joint DOF forces required to counteract gravitational forces for the given articulation pose. The size of the result can vary by articulation, since it depends on the number of links and degrees-of-freedom. The size is determined using this formula: sizeof(float) * dofCount The user must ensure that adequate space is provided for each articulation.
+
+
+ Computes the joint DOF forces required to counteract coriolis and centrifugal forces for the given articulation pose. The size of the result can vary by articulation, since it depends on the number of links and degrees-of-freedom. The size is determined using this formula: sizeof(float) * dofCount The user must ensure that adequate space is provided for each articulation.
+
+
+ Apply user-provided data to particle buffers. This function should be used if the particle buffer flags are already on the device. Otherwise, use PxParticleBuffer::raiseFlags() from the CPU. This assumes the data has been changed directly in the PxParticleBuffer.
+
+
+ Constructor
+
+
+ Constructor
+
+
+ Creates the controller manager. The character controller is informed by [`PxDeletionListener::onRelease`]() when actors or shapes are released, and updates its internal caches accordingly. If character controller movement or a call to [`PxControllerManager::shiftOrigin`]() may overlap with actor/shape releases, internal data structures must be guarded against concurrent access. Locking guarantees thread safety in such scenarios. locking may result in significant slowdown for release of actors or shapes. By default, locking is disabled.
+
+
+ Raycast returning any blocking hit, not necessarily the closest. Returns whether any rigid actor is hit along the ray. Shooting a ray from within an object leads to different results depending on the shape type. Please check the details in article SceneQuery. User can ignore such objects by using one of the provided filter mechanisms. True if a blocking hit was found.
+
+
+ Raycast returning a single result. Returns the first rigid actor that is hit along the ray. Data for a blocking hit will be returned as specified by the outputFlags field. Touching hits will be ignored. Shooting a ray from within an object leads to different results depending on the shape type. Please check the details in article SceneQuery. User can ignore such objects by using one of the provided filter mechanisms. True if a blocking hit was found.
+
+
+ Raycast returning multiple results. Find all rigid actors that get hit along the ray. Each result contains data as specified by the outputFlags field. Touching hits are not ordered. Shooting a ray from within an object leads to different results depending on the shape type. Please check the details in article SceneQuery. User can ignore such objects by using one of the provided filter mechanisms. Number of hits in the buffer, or -1 if the buffer overflowed.
+
+
+ Sweep returning any blocking hit, not necessarily the closest. Returns whether any rigid actor is hit along the sweep path. If a shape from the scene is already overlapping with the query shape in its starting position, behavior is controlled by the PxSceneQueryFlag::eINITIAL_OVERLAP flag. True if a blocking hit was found.
+
+
+ Sweep returning a single result. Returns the first rigid actor that is hit along the ray. Data for a blocking hit will be returned as specified by the outputFlags field. Touching hits will be ignored. If a shape from the scene is already overlapping with the query shape in its starting position, behavior is controlled by the PxSceneQueryFlag::eINITIAL_OVERLAP flag. True if a blocking hit was found.
+
+
+ Sweep returning multiple results. Find all rigid actors that get hit along the sweep. Each result contains data as specified by the outputFlags field. Touching hits are not ordered. If a shape from the scene is already overlapping with the query shape in its starting position, behavior is controlled by the PxSceneQueryFlag::eINITIAL_OVERLAP flag. Number of hits in the buffer, or -1 if the buffer overflowed.
+
+
+ Test overlap between a geometry and objects in the scene. Filtering: Overlap tests do not distinguish between touching and blocking hit types. Both get written to the hit buffer. PxHitFlag::eMESH_MULTIPLE and PxHitFlag::eMESH_BOTH_SIDES have no effect in this case Number of hits in the buffer, or -1 if the buffer overflowed.
+
+
+ Test returning, for a given geometry, any overlapping object in the scene. Filtering: Overlap tests do not distinguish between touching and blocking hit types. Both trigger a hit. PxHitFlag::eMESH_MULTIPLE and PxHitFlag::eMESH_BOTH_SIDES have no effect in this case True if an overlap was found.
+
+
+ Create a PxBatchQueryExt without the need for pre-allocated result or touch buffers. Returns a PxBatchQueryExt instance. A NULL pointer will be returned if the subsequent allocations fail or if any of the arguments are illegal. In the event that a NULL pointer is returned a corresponding error will be issued to the error stream.
+
+
+ Create a PxBatchQueryExt with user-supplied result and touch buffers. Returns a PxBatchQueryExt instance. A NULL pointer will be returned if the subsequent allocations fail or if any of the arguments are illegal. In the event that a NULL pointer is returned a corresponding error will be issued to the error stream.
+
+
+ Advances the iterator to next set of extra data items. The contact pair extra data stream contains sets of items as requested by the corresponding [`PxPairFlag`] flags [`PxPairFlag::ePRE_SOLVER_VELOCITY`], #PxPairFlag::ePOST_SOLVER_VELOCITY, #PxPairFlag::eCONTACT_EVENT_POSE. A set can contain one item of each plus the PxContactPairIndex item. This method parses the stream and points the iterator member variables to the corresponding items of the current set, if they are available. If CCD is not enabled, you should only get one set of items. If CCD with multiple passes is enabled, you might get more than one item set. Even though contact pair extra data is requested per shape pair, you will not get an item set per shape pair but one per actor pair. If, for example, an actor has two shapes and both collide with another actor, then there will only be one item set (since it applies to both shape pairs). True if there was another set of extra data items in the stream, else false.
+
+
+ Extracts the contact points from the stream and stores them in a convenient format. Number of contact points written to the buffer.
+
+
+ Helper method to clone the contact pair and copy the contact data stream into a user buffer. The contact data stream is only accessible during the contact report callback. This helper function provides copy functionality to buffer the contact stream information such that it can get accessed at a later stage.
+
+
+ Release this object.
+
+
+ Retrieve rigid actors in the pruning structure. You can retrieve the number of rigid actor pointers by calling [`getNbRigidActors`]() Number of rigid actor pointers written to the buffer.
+
+
+ Returns the number of rigid actors in the pruning structure. You can use [`getRigidActors`]() to retrieve the rigid actor pointers. Number of rigid actors in the pruning structure.
+
+
+ Gets the merge data for static actors This is mainly called by the PxSceneQuerySystem::merge() function to merge a PxPruningStructure with the internal data-structures of the scene-query system. Implementation-dependent merge data for static actors.
+
+
+ Gets the merge data for dynamic actors This is mainly called by the PxSceneQuerySystem::merge() function to merge a PxPruningStructure with the internal data-structures of the scene-query system. Implementation-dependent merge data for dynamic actors.
+
+
+ Releases the context.
+
+
+ Retrieves the controller manager associated with this context. The associated controller manager
+
+
+ Adds an obstacle to the context. Handle for newly-added obstacle
+
+
+ Removes an obstacle from the context. True if success
+
+
+ Updates data for an existing obstacle. True if success
+
+
+ Retrieves number of obstacles in the context. Number of obstacles in the context
+
+
+ Retrieves desired obstacle. Desired obstacle
+
+
+ Retrieves desired obstacle by given handle. Desired obstacle
+
+
+ Called when current controller hits a shape. This is called when the CCT moves and hits a shape. This will not be called when a moving shape hits a non-moving CCT.
+
+
+ Called when current controller hits another controller.
+
+
+ Called when current controller hits a user-defined obstacle.
+
+
+ Filtering method for CCT-vs-CCT. true to keep the pair, false to filter it out
+
+
+ returns true if the current settings are valid True if the descriptor is valid.
+
+
+ Returns the character controller type The controllers type.
+
+
+ Return the type of controller
+
+
+ Releases the controller.
+
+
+ Moves the character using a \"collide-and-slide\" algorithm. Collision flags, collection of ::PxControllerCollisionFlags
+
+
+ Sets controller's position. The position controlled by this function is the center of the collision shape. This is a 'teleport' function, it doesn't check for collisions. The character's position must be such that it does not overlap the static geometry. To move the character under normal conditions use the [`move`]() function. Currently always returns true.
+
+
+ Retrieve the raw position of the controller. The position retrieved by this function is the center of the collision shape. To retrieve the bottom position of the shape, a.k.a. the foot position, use the getFootPosition() function. The position is updated by calls to move(). Calling this method without calling move() will return the last position or the initial position of the controller. The controller's center position
+
+
+ Set controller's foot position. The position controlled by this function is the bottom of the collision shape, a.k.a. the foot position. The foot position takes the contact offset into account This is a 'teleport' function, it doesn't check for collisions. To move the character under normal conditions use the [`move`]() function. Currently always returns true.
+
+
+ Retrieve the \"foot\" position of the controller, i.e. the position of the bottom of the CCT's shape. The foot position takes the contact offset into account The controller's foot position
+
+
+ Get the rigid body actor associated with this controller (see PhysX documentation). The behavior upon manually altering this actor is undefined, you should primarily use it for reading const properties. the actor associated with the controller.
+
+
+ The step height.
+
+
+ Retrieve the step height. The step offset for the controller.
+
+
+ Sets the non-walkable mode for the CCT.
+
+
+ Retrieves the non-walkable mode for the CCT. The current non-walkable mode.
+
+
+ Retrieve the contact offset. The contact offset for the controller.
+
+
+ Sets the contact offset.
+
+
+ Retrieve the 'up' direction. The up direction for the controller.
+
+
+ Sets the 'up' direction.
+
+
+ Retrieve the slope limit. The slope limit for the controller.
+
+
+ Sets the slope limit. This feature can not be enabled at runtime, i.e. if the slope limit is zero when creating the CCT (which disables the feature) then changing the slope limit at runtime will not have any effect, and the call will be ignored.
+
+
+ Flushes internal geometry cache. The character controller uses caching in order to speed up collision testing. The cache is automatically flushed when a change to static objects is detected in the scene. For example when a static shape is added, updated, or removed from the scene, the cache is automatically invalidated. However there may be situations that cannot be automatically detected, and those require manual invalidation of the cache. Currently the user must call this when the filtering behavior changes (the PxControllerFilters parameter of the PxController::move call). While the controller in principle could detect a change in these parameters, it cannot detect a change in the behavior of the filtering function.
+
+
+ Retrieve the scene associated with the controller. The physics scene
+
+
+ Returns the user data associated with this controller. The user pointer associated with the controller.
+
+
+ Sets the user data associated with this controller.
+
+
+ Returns information about the controller's internal state.
+
+
+ Returns the controller's internal statistics.
+
+
+ Resizes the controller. This function attempts to resize the controller to a given size, while making sure the bottom position of the controller remains constant. In other words the function modifies both the height and the (center) position of the controller. This is a helper function that can be used to implement a 'crouch' functionality for example.
+
+
+ (re)sets the structure to the default.
+
+
+ returns true if the current settings are valid True if the descriptor is valid.
+
+
+ Gets controller's half height. The half height of the controller.
+
+
+ Gets controller's half side extent. The half side extent of the controller.
+
+
+ Gets controller's half forward extent. The half forward extent of the controller.
+
+
+ Sets controller's half height. this doesn't check for collisions. Currently always true.
+
+
+ Sets controller's half side extent. this doesn't check for collisions. Currently always true.
+
+
+ Sets controller's half forward extent. this doesn't check for collisions. Currently always true.
+
+
+ (re)sets the structure to the default.
+
+
+ returns true if the current settings are valid True if the descriptor is valid.
+
+
+ Gets controller's radius. The radius of the controller.
+
+
+ Sets controller's radius. this doesn't check for collisions. Currently always true.
+
+
+ Gets controller's height. The height of the capsule controller.
+
+
+ Resets controller's height. this doesn't check for collisions. Currently always true.
+
+
+ Gets controller's climbing mode. The capsule controller's climbing mode.
+
+
+ Sets controller's climbing mode.
+
+
+ Retrieve behavior flags for a shape. When the CCT touches a shape, the CCT's behavior w.r.t. this shape can be customized by users. This function retrieves the desired PxControllerBehaviorFlag flags capturing the desired behavior. See comments about deprecated functions at the start of this class Desired behavior flags for the given shape
+
+
+ Retrieve behavior flags for a controller. When the CCT touches a controller, the CCT's behavior w.r.t. this controller can be customized by users. This function retrieves the desired PxControllerBehaviorFlag flags capturing the desired behavior. The flag PxControllerBehaviorFlag::eCCT_CAN_RIDE_ON_OBJECT is not supported. See comments about deprecated functions at the start of this class Desired behavior flags for the given controller
+
+
+ Retrieve behavior flags for an obstacle. When the CCT touches an obstacle, the CCT's behavior w.r.t. this obstacle can be customized by users. This function retrieves the desired PxControllerBehaviorFlag flags capturing the desired behavior. See comments about deprecated functions at the start of this class Desired behavior flags for the given obstacle
+
+
+ Releases the controller manager. This will release all associated controllers and obstacle contexts. This function is required to be called to release foundation usage.
+
+
+ Returns the scene the manager is adding the controllers to. The associated physics scene.
+
+
+ Returns the number of controllers that are being managed. The number of controllers.
+
+
+ Retrieve one of the controllers in the manager. The controller with the specified index.
+
+
+ Creates a new character controller. The new controller
+
+
+ Releases all the controllers that are being managed.
+
+
+ Retrieves debug data. The render buffer filled with debug-render data
+
+
+ Sets debug rendering flags
+
+
+ Returns the number of obstacle contexts that are being managed. The number of obstacle contexts.
+
+
+ Retrieve one of the obstacle contexts in the manager. The obstacle context with the specified index.
+
+
+ Creates an obstacle context. New obstacle context
+
+
+ Computes character-character interactions. This function is an optional helper to properly resolve interactions between characters, in case they overlap (which can happen for gameplay reasons, etc). You should call this once per frame, before your PxController::move() calls. The function will not move the characters directly, but it will compute overlap information for each character that will be used in the next move() call. You need to provide a proper time value here so that interactions are resolved in a way that do not depend on the framerate. If you only have one character in the scene, or if you can guarantee your characters will never overlap, then you do not need to call this function. Releasing the manager will automatically release all the associated obstacle contexts.
+
+
+ Enables or disables runtime tessellation. Large triangles can create accuracy issues in the sweep code, which in turn can lead to characters not sliding smoothly against geometries, or even penetrating them. This feature allows one to reduce those issues by tessellating large triangles at runtime, before performing sweeps against them. The amount of tessellation is controlled by the 'maxEdgeLength' parameter. Any triangle with at least one edge length greater than the maxEdgeLength will get recursively tessellated, until resulting triangles are small enough. This features only applies to triangle meshes, convex meshes, heightfields and boxes.
+
+
+ Enables or disables the overlap recovery module. The overlap recovery module can be used to depenetrate CCTs from static objects when an overlap is detected. This can happen in three main cases: - when the CCT is directly spawned or teleported in another object - when the CCT algorithm fails due to limited FPU accuracy - when the \"up vector\" is modified, making the rotated CCT shape overlap surrounding objects When activated, the CCT module will automatically try to resolve the penetration, and move the CCT to a safe place where it does not overlap other objects anymore. This only concerns static objects, dynamic objects are ignored by the recovery module. When the recovery module is not activated, it is possible for the CCTs to go through static objects. By default, the recovery module is enabled. The recovery module currently works with all geometries except heightfields.
+
+
+ Enables or disables the precise sweeps. Precise sweeps are more accurate, but also potentially slower than regular sweeps. By default, precise sweeps are enabled.
+
+
+ Enables or disables vertical sliding against ceilings. Geometry is seen as \"ceilings\" when the following condition is met: dot product(contact normal, up direction) < 0.0f This flag controls whether characters should slide vertically along the geometry in that case. By default, sliding is allowed.
+
+
+ Shift the origin of the character controllers and obstacle objects by the specified vector. The positions of all character controllers, obstacle objects and the corresponding data structures will get adjusted to reflect the shifted origin location (the shift vector will get subtracted from all character controller and obstacle object positions). It is the user's responsibility to keep track of the summed total origin shift and adjust all input/output to/from PhysXCharacterKinematic accordingly. This call will not automatically shift the PhysX scene and its objects. You need to call PxScene::shiftOrigin() seperately to keep the systems in sync.
+
+
+ Returns true if the descriptor is valid. true if the current settings are valid
+
+
+ (re)sets the structure to the default.
+
+
+ Returns true if the descriptor is valid. True if the current settings are valid
+
+
+ (re)sets the structure to the default.
+
+
+ Returns true if the descriptor is valid. true if the current settings are valid
+
+
+ Desc initialization to default value.
+
+
+ Returns true if the descriptor is valid. true if the current settings are valid.
+
+
+ Returns type of midphase mesh structure. PxMeshMidPhase::Enum
+
+
+ Initialize the midphase mesh structure descriptor
+
+
+ Returns true if the descriptor is valid. true if the current settings are valid.
+
+
+ Initialize the BVH descriptor
+
+
+ Returns true if the descriptor is valid. true if the current settings are valid.
+
+
+ Cooks a bounding volume hierarchy. The results are written to the stream. PxCookBVH() allows a BVH description to be cooked into a binary stream suitable for loading and performing BVH detection at runtime. true on success.
+
+
+ Cooks and creates a bounding volume hierarchy without going through a stream. This method does the same as cookBVH, but the produced BVH is not stored into a stream but is either directly inserted in PxPhysics, or created as a standalone object. Use this method if you are unable to cook offline. PxInsertionCallback can be obtained through PxPhysics::getPhysicsInsertionCallback() or PxCooking::getStandaloneInsertionCallback(). PxBVH pointer on success
+
+
+ Cooks a convex mesh. The results are written to the stream. To create a triangle mesh object it is necessary to first 'cook' the mesh data into a form which allows the SDK to perform efficient collision detection. cookConvexMesh() allows a mesh description to be cooked into a binary stream suitable for loading and performing collision detection at runtime. The number of vertices and the number of convex polygons in a cooked convex mesh is limited to 255. If those limits are exceeded in either the user-provided data or the final cooked mesh, an error is reported. true on success.
+
+
+ Cooks and creates a convex mesh without going through a stream. This method does the same as cookConvexMesh, but the produced mesh is not stored into a stream but is either directly inserted in PxPhysics, or created as a standalone object. Use this method if you are unable to cook offline. PxInsertionCallback can be obtained through PxPhysics::getPhysicsInsertionCallback() or PxCooking::getStandaloneInsertionCallback(). PxConvexMesh pointer on success
+
+
+ Verifies if the convex mesh is valid. Prints an error message for each inconsistency found. The convex mesh descriptor must contain an already created convex mesh - the vertices, indices and polygons must be provided. This function should be used if PxConvexFlag::eDISABLE_MESH_VALIDATION is planned to be used in release builds. true if all the validity conditions hold, false otherwise.
+
+
+ Computed hull polygons from given vertices and triangles. Polygons are needed for PxConvexMeshDesc rather than triangles. Please note that the resulting polygons may have different number of vertices. Some vertices may be removed. The output vertices, indices and polygons must be used to construct a hull. The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those array's. true on success
+
+
+ Verifies if the triangle mesh is valid. Prints an error message for each inconsistency found. The following conditions are true for a valid triangle mesh: 1. There are no duplicate vertices (within specified vertexWeldTolerance. See PxCookingParams::meshWeldTolerance) 2. There are no large triangles (within specified PxTolerancesScale.) true if all the validity conditions hold, false otherwise.
+
+
+ Cooks and creates a triangle mesh without going through a stream. This method does the same as cookTriangleMesh, but the produced mesh is not stored into a stream but is either directly inserted in PxPhysics, or created as a standalone object. Use this method if you are unable to cook offline. PxInsertionCallback can be obtained through PxPhysics::getPhysicsInsertionCallback() or PxCooking::getStandaloneInsertionCallback(). PxTriangleMesh pointer on success.
+
+
+ Cooks a triangle mesh. The results are written to the stream. To create a triangle mesh object it is necessary to first 'cook' the mesh data into a form which allows the SDK to perform efficient collision detection. PxCookTriangleMesh() allows a mesh description to be cooked into a binary stream suitable for loading and performing collision detection at runtime. true on success
+
+
+ Set the actors for this joint. An actor may be NULL to indicate the world frame. At most one of the actors may be NULL.
+
+
+ Get the actors for this joint.
+
+
+ Set the joint local pose for an actor. This is the relative pose which locates the joint frame relative to the actor.
+
+
+ get the joint local pose for an actor. return the local pose for this joint
+
+
+ get the relative pose for this joint This function returns the pose of the joint frame of actor1 relative to actor0
+
+
+ get the relative linear velocity of the joint This function returns the linear velocity of the origin of the constraint frame of actor1, relative to the origin of the constraint frame of actor0. The value is returned in the constraint frame of actor0
+
+
+ get the relative angular velocity of the joint This function returns the angular velocity of actor1 relative to actor0. The value is returned in the constraint frame of actor0
+
+
+ set the break force for this joint. if the constraint force or torque on the joint exceeds the specified values, the joint will break, at which point it will not constrain the two actors and the flag PxConstraintFlag::eBROKEN will be set. The force and torque are measured in the joint frame of the first actor
+
+
+ get the break force for this joint.
+
+
+ set the constraint flags for this joint.
+
+
+ set a constraint flags for this joint to a specified value.
+
+
+ get the constraint flags for this joint. the constraint flags
+
+
+ set the inverse mass scale for actor0.
+
+
+ get the inverse mass scale for actor0. inverse mass scale for actor0
+
+
+ set the inverse inertia scale for actor0.
+
+
+ get the inverse inertia scale for actor0. inverse inertia scale for actor0
+
+
+ set the inverse mass scale for actor1.
+
+
+ get the inverse mass scale for actor1. inverse mass scale for actor1
+
+
+ set the inverse inertia scale for actor1.
+
+
+ get the inverse inertia scale for actor1. inverse inertia scale for actor1
+
+
+ Retrieves the PxConstraint corresponding to this joint. This can be used to determine, among other things, the force applied at the joint. the constraint
+
+
+ Sets a name string for the object that can be retrieved with getName(). This is for debugging and is not used by the SDK. The string is not copied by the SDK, only the pointer is stored.
+
+
+ Retrieves the name string set with setName(). Name string associated with object.
+
+
+ Deletes the joint. This call does not wake up the connected rigid bodies.
+
+
+ Retrieves the scene which this joint belongs to. Owner Scene. NULL if not part of a scene.
+
+
+ Helper function to setup a joint's global frame This replaces the following functions from previous SDK versions: void NxJointDesc::setGlobalAnchor(const NxVec3 & wsAnchor); void NxJointDesc::setGlobalAxis(const NxVec3 & wsAxis); The function sets the joint's localPose using world-space input parameters.
+
+
+ Return the current distance of the joint
+
+
+ Set the allowed minimum distance for the joint. The minimum distance must be no more than the maximum distance Default 0.0f Range [0, PX_MAX_F32)
+
+
+ Get the allowed minimum distance for the joint. the allowed minimum distance
+
+
+ Set the allowed maximum distance for the joint. The maximum distance must be no less than the minimum distance. Default 0.0f Range [0, PX_MAX_F32)
+
+
+ Get the allowed maximum distance for the joint. the allowed maximum distance
+
+
+ Set the error tolerance of the joint.
+
+
+ Get the error tolerance of the joint. the distance beyond the joint's [min, max] range before the joint becomes active. Default 0.25f * PxTolerancesScale::length Range (0, PX_MAX_F32) This value should be used to ensure that if the minimum distance is zero and the spring function is in use, the rest length of the spring is non-zero.
+
+
+ Set the strength of the joint spring. The spring is used if enabled, and the distance exceeds the range [min-error, max+error]. Default 0.0f Range [0, PX_MAX_F32)
+
+
+ Get the strength of the joint spring. stiffness the spring strength of the joint
+
+
+ Set the damping of the joint spring. The spring is used if enabled, and the distance exceeds the range [min-error, max+error]. Default 0.0f Range [0, PX_MAX_F32)
+
+
+ Get the damping of the joint spring. the degree of damping of the joint spring of the joint
+
+
+ Set the contact distance for the min & max distance limits. This is similar to the PxJointLimitParameters::contactDistance parameter for regular limits. The two most common values are 0 and infinite. Infinite means the internal constraints are always created, resulting in the best simulation quality but slower performance. Zero means the internal constraints are only created when the limits are violated, resulting in best performance but worse simulation quality. Default 0.0f Range [0, PX_MAX_F32)
+
+
+ Get the contact distance. the contact distance
+
+
+ Set the flags specific to the Distance Joint. Default PxDistanceJointFlag::eMAX_DISTANCE_ENABLED
+
+
+ Set a single flag specific to a Distance Joint to true or false.
+
+
+ Get the flags specific to the Distance Joint. the joint flags
+
+
+ Returns string name of PxDistanceJoint, used for serialization
+
+
+ Set the current contact of the joint
+
+
+ Set the current contact normal of the joint
+
+
+ Set the current penetration of the joint
+
+
+ Return the current contact of the joint
+
+
+ Return the current contact normal of the joint
+
+
+ Return the current penetration value of the joint
+
+
+ Returns string name of PxContactJoint, used for serialization
+
+
+ Returns string name of PxFixedJoint, used for serialization
+
+
+ Returns true if the current settings are valid. true if the current settings are valid
+
+
+ Returns true if the limit is valid true if the current settings are valid
+
+
+ Returns true if the limit is valid. true if the current settings are valid
+
+
+ Returns true if the limit is valid. true if the current settings are valid
+
+
+ Returns true if the limit is valid. true if the current settings are valid
+
+
+ Returns true if the limit is valid. true if the current settings are valid
+
+
+ returns the displacement of the joint along its axis.
+
+
+ returns the velocity of the joint along its axis
+
+
+ sets the joint limit parameters. The limit range is [-PX_MAX_F32, PX_MAX_F32], but note that the width of the limit (upper-lower) must also be a valid float.
+
+
+ gets the joint limit parameters.
+
+
+ Set the flags specific to the Prismatic Joint. Default PxPrismaticJointFlags(0)
+
+
+ Set a single flag specific to a Prismatic Joint to true or false.
+
+
+ Get the flags specific to the Prismatic Joint. the joint flags
+
+
+ Returns string name of PxPrismaticJoint, used for serialization
+
+
+ return the angle of the joint, in the range (-2*Pi, 2*Pi]
+
+
+ return the velocity of the joint
+
+
+ set the joint limit parameters. The limit is activated using the flag PxRevoluteJointFlag::eLIMIT_ENABLED The limit angle range is (-2*Pi, 2*Pi).
+
+
+ get the joint limit parameters. the joint limit parameters
+
+
+ set the target velocity for the drive model. The motor will only be able to reach this velocity if the maxForce is sufficiently large. If the joint is spinning faster than this velocity, the motor will actually try to brake (see PxRevoluteJointFlag::eDRIVE_FREESPIN.) The sign of this variable determines the rotation direction, with positive values going the same way as positive joint angles. Setting a very large target velocity may cause undesirable results. Range: (-PX_MAX_F32, PX_MAX_F32) Default: 0.0
+
+
+ gets the target velocity for the drive model. the drive target velocity
+
+
+ sets the maximum torque the drive can exert. The value set here may be used either as an impulse limit or a force limit, depending on the flag PxConstraintFlag::eDRIVE_LIMITS_ARE_FORCES Range: [0, PX_MAX_F32) Default: PX_MAX_F32
+
+
+ gets the maximum torque the drive can exert. the torque limit
+
+
+ sets the gear ratio for the drive. When setting up the drive constraint, the velocity of the first actor is scaled by this value, and its response to drive torque is scaled down. So if the drive target velocity is zero, the second actor will be driven to the velocity of the first scaled by the gear ratio Range: [0, PX_MAX_F32) Default: 1.0
+
+
+ gets the gear ratio. the drive gear ratio
+
+
+ sets the flags specific to the Revolute Joint. Default PxRevoluteJointFlags(0)
+
+
+ sets a single flag specific to a Revolute Joint.
+
+
+ gets the flags specific to the Revolute Joint. the joint flags
+
+
+ Returns string name of PxRevoluteJoint, used for serialization
+
+
+ Set the limit cone. If enabled, the limit cone will constrain the angular movement of the joint to lie within an elliptical cone. the limit cone
+
+
+ Get the limit cone.
+
+
+ get the swing angle of the joint from the Y axis
+
+
+ get the swing angle of the joint from the Z axis
+
+
+ Set the flags specific to the Spherical Joint. Default PxSphericalJointFlags(0)
+
+
+ Set a single flag specific to a Spherical Joint to true or false.
+
+
+ Get the flags specific to the Spherical Joint. the joint flags
+
+
+ Returns string name of PxSphericalJoint, used for serialization
+
+
+ returns true if the drive is valid
+
+
+ Set the motion type around the specified axis. Each axis may independently specify that the degree of freedom is locked (blocking relative movement along or around this axis), limited by the corresponding limit, or free. Default: all degrees of freedom are locked
+
+
+ Get the motion type around the specified axis. the motion type around the specified axis
+
+
+ get the twist angle of the joint, in the range (-2*Pi, 2*Pi]
+
+
+ get the swing angle of the joint from the Y axis
+
+
+ get the swing angle of the joint from the Z axis
+
+
+ Set the distance limit for the joint. A single limit constraints all linear limited degrees of freedom, forming a linear, circular or spherical constraint on motion depending on the number of limited degrees. This is similar to a distance limit.
+
+
+ Get the distance limit for the joint. the distance limit structure
+
+
+ Set the linear limit for a given linear axis. This function extends the previous setDistanceLimit call with the following features: - there can be a different limit for each linear axis - each limit is defined by two values, i.e. it can now be asymmetric This can be used to create prismatic joints similar to PxPrismaticJoint, or point-in-quad joints, or point-in-box joints.
+
+
+ Get the linear limit for a given linear axis. the linear limit pair structure from desired axis
+
+
+ Set the twist limit for the joint. The twist limit controls the range of motion around the twist axis. The limit angle range is (-2*Pi, 2*Pi).
+
+
+ Get the twist limit for the joint. the twist limit structure
+
+
+ Set the swing cone limit for the joint. The cone limit is used if either or both swing axes are limited. The extents are symmetrical and measured in the frame of the parent. If only one swing degree of freedom is limited, the corresponding value from the cone limit defines the limit range.
+
+
+ Get the cone limit for the joint. the swing limit structure
+
+
+ Set a pyramidal swing limit for the joint. The pyramid limits will only be used in the following cases: - both swing Y and Z are limited. The limit shape is then a pyramid. - Y is limited and Z is locked, or vice versa. The limit shape is an asymmetric angular section, similar to what is supported for the twist axis. The remaining cases (Y limited and Z is free, or vice versa) are not supported.
+
+
+ Get the pyramidal swing limit for the joint. the swing limit structure
+
+
+ Set the drive parameters for the specified drive type. Default The default drive spring and damping values are zero, the force limit is zero, and no flags are set.
+
+
+ Get the drive parameters for the specified drive type.
+
+
+ Set the drive goal pose The goal is relative to the constraint frame of actor[0] Default the identity transform
+
+
+ Get the drive goal pose.
+
+
+ Set the target goal velocity for drive. The velocity is measured in the constraint frame of actor[0]
+
+
+ Get the target goal velocity for joint drive.
+
+
+ Set the linear tolerance threshold for projection. Projection is enabled if PxConstraintFlag::ePROJECTION is set for the joint. If the joint separates by more than this distance along its locked degrees of freedom, the solver will move the bodies to close the distance. Setting a very small tolerance may result in simulation jitter or other artifacts. Sometimes it is not possible to project (for example when the joints form a cycle). Range: [0, PX_MAX_F32) Default: 1e10f
+
+
+ Get the linear tolerance threshold for projection. the linear tolerance threshold
+
+
+ Set the angular tolerance threshold for projection. Projection is enabled if PxConstraintFlag::ePROJECTION is set for the joint. If the joint deviates by more than this angle around its locked angular degrees of freedom, the solver will move the bodies to close the angle. Setting a very small tolerance may result in simulation jitter or other artifacts. Sometimes it is not possible to project (for example when the joints form a cycle). Range: [0,Pi] Default: Pi Angular projection is implemented only for the case of two or three locked angular degrees of freedom.
+
+
+ Get the angular tolerance threshold for projection. tolerance the angular tolerance threshold in radians
+
+
+ Returns string name of PxD6Joint, used for serialization
+
+
+ Set the hinge/revolute joints connected by the gear joint. The passed joints can be either PxRevoluteJoint, PxD6Joint or PxArticulationJointReducedCoordinate. The joints must define degrees of freedom around the twist axis. They cannot be null. Note that these joints are only used to compute the positional error correction term, used to adjust potential drift between jointed actors. The gear joint can run without calling this function, but in that case some visible overlap may develop over time between the teeth of the gear meshes. Calling this function resets the internal positional error correction term. true if success
+
+
+ Set the desired gear ratio. For two gears with n0 and n1 teeth respectively, the gear ratio is n0/n1. You may need to use a negative gear ratio if the joint frames of involved actors are not oriented in the same direction. Calling this function resets the internal positional error correction term.
+
+
+ Get the gear ratio. Current ratio
+
+
+ Set the hinge & prismatic joints connected by the rack & pinion joint. The passed hinge joint can be either PxRevoluteJoint, PxD6Joint or PxArticulationJointReducedCoordinate. It cannot be null. The passed prismatic joint can be either PxPrismaticJoint or PxD6Joint. It cannot be null. Note that these joints are only used to compute the positional error correction term, used to adjust potential drift between jointed actors. The rack & pinion joint can run without calling this function, but in that case some visible overlap may develop over time between the teeth of the rack & pinion meshes. Calling this function resets the internal positional error correction term. true if success
+
+
+ Set the desired ratio directly. You may need to use a negative gear ratio if the joint frames of involved actors are not oriented in the same direction. Calling this function resets the internal positional error correction term.
+
+
+ Get the ratio. Current ratio
+
+
+ Set the desired ratio indirectly. This is a simple helper function that computes the ratio from passed data: ratio = (PI*2*nbRackTeeth)/(rackLength*nbPinionTeeth) Calling this function resets the internal positional error correction term. true if success
+
+
+ Gets filtering constant K0 and K1. See comments for PxGroupsMask
+
+
+ Setups filtering's K0 and K1 value. See comments for PxGroupsMask
+
+
+ Retrieves filtering operation. See comments for PxGroupsMask
+
+
+ Setups filtering operations. See comments for PxGroupsMask
+
+
+ Translate the center of mass by a given vector and adjust the inertia tensor accordingly.
+
+
+ Sum up individual mass properties. The summed up mass properties.
+
+
+ Find the mesh triangles which touch the specified geometry object. Number of overlaps found. Triangle indices can then be accessed through the [`getResults`]() function.
+
+
+ Find the height field triangles which touch the specified geometry object. Number of overlaps found. Triangle indices can then be accessed through the [`getResults`]() function.
+
+
+ Retrieves array of triangle indices after a findOverlap call. Indices of touched triangles
+
+
+ Retrieves number of triangle indices after a findOverlap call. Number of touched triangles
+
+
+ Deletes the dispatcher. Do not keep a reference to the deleted instance.
+
+
+ Enables profiling at task level. By default enabled only in profiling builds.
+
+
+ Checks if profiling is enabled at task level. True if tasks should be profiled.
+
+
+ Performs a raycast against objects in the scene. Touching hits are not ordered. Shooting a ray from within an object leads to different results depending on the shape type. Please check the details in article SceneQuery. User can ignore such objects by using one of the provided filter mechanisms. This query call writes to a list associated with the query object and is NOT thread safe (for performance reasons there is no lock and overlapping writes from different threads may result in undefined behavior). Returns a PxRaycastBuffer pointer that will store the result of the query after execute() is completed. This will point either to an element of the buffer allocated on construction or to a user buffer passed to the constructor.
+
+
+ Performs a sweep test against objects in the scene. Touching hits are not ordered. If a shape from the scene is already overlapping with the query shape in its starting position, the hit is returned unless eASSUME_NO_INITIAL_OVERLAP was specified. This query call writes to a list associated with the query object and is NOT thread safe (for performance reasons there is no lock and overlapping writes from different threads may result in undefined behavior). Returns a PxSweepBuffer pointer that will store the result of the query after execute() is completed. This will point either to an element of the buffer allocated on construction or to a user buffer passed to the constructor.
+
+
+ Performs an overlap test of a given geometry against objects in the scene. Filtering: returning eBLOCK from user filter for overlap queries will cause a warning (see [`PxQueryHitType`]). eBLOCK should not be returned from user filters for overlap(). Doing so will result in undefined behavior, and a warning will be issued. If the PxQueryFlag::eNO_BLOCK flag is set, the eBLOCK will instead be automatically converted to an eTOUCH and the warning suppressed. This query call writes to a list associated with the query object and is NOT thread safe (for performance reasons there is no lock and overlapping writes from different threads may result in undefined behavior). Returns a PxOverlapBuffer pointer that will store the result of the query after execute() is completed. This will point either to an element of the buffer allocated on construction or to a user buffer passed to the constructor.
+
+
+ Adds a pruner to the system. The internal PhysX scene-query system uses two regular pruners (one for static shapes, one for dynamic shapes) and an optional compound pruner. Our custom scene query system supports an arbitrary number of regular pruners. This can be useful to reduce the load on each pruner, in particular during updates, when internal trees are rebuilt in the background. On the other hand this implementation simply iterates over all created pruners to perform queries, so their cost might increase if a large number of pruners is used. In any case this serves as an example of how the PxSceneQuerySystem API can be used to customize scene queries. A pruner index
+
+
+ Start custom build-steps for all pruners This function is used in combination with customBuildstep() and finishCustomBuildstep() to let users take control of the pruners' build-step & commit calls - basically the pruners' update functions. These functions should be used with the PxSceneQueryUpdateMode::eBUILD_DISABLED_COMMIT_DISABLED update mode, otherwise the build-steps will happen automatically in fetchResults. For N pruners it can be more efficient to use these custom build-step functions to perform the updates in parallel: - call startCustomBuildstep() first (one synchronous call) - for each pruner, call customBuildstep() (asynchronous calls from multiple threads) - once it is done, call finishCustomBuildstep() to finish the update (synchronous call) The multi-threaded update is more efficient here than what it is in PxScene, because the \"flushShapes()\" call is also multi-threaded (while it is not in PxScene). Note that users are responsible for locks here, and these calls should not overlap with other SQ calls. In particular one should not add new objects to the SQ system or perform queries while these calls are happening. The number of pruners in the system.
+
+
+ Perform a custom build-step for a given pruner.
+
+
+ Finish custom build-steps Call this function once after all the customBuildstep() calls are done.
+
+
+ Gets a pruner index for an actor/shape. This user-defined function tells the system in which pruner a given actor/shape should go. The returned index must be valid, i.e. it must have been previously returned to users by PxCustomSceneQuerySystem::addPruner. A pruner index for this actor/shape.
+
+
+ Pruner filtering callback. This will be called for each query to validate whether it should process a given pruner. True to process the pruner, false to skip it entirely
+
+
+ Sets the sampling radius Returns true if the sampling was successful and false if there was a problem. Usually an internal overflow is the problem for very big meshes or very small sampling radii.
+
+
+ Adds new Poisson Samples inside the sphere specified
+
+
+ Adds new Poisson Samples inside the box specified
+
+
+ Checks whether a point is inside the triangle mesh Returns true if the point is inside the triangle mesh
+
+
+ The type this Serializer is meant to operate on.
+
+
+ Convert from a RepX object to a key-value pair hierarchy
+
+
+ Convert from a descriptor to a live object. Must be an object of this Serializer type. The new live object. It can be an invalid object if the instantiation cannot take place.
+
+
+ Connects the SDK to the PhysX Visual Debugger application.
+
+
+ Disconnects the SDK from the PhysX Visual Debugger application. If we are still connected, this will kill the entire debugger connection.
+
+
+ Return if connection to PVD is created.
+
+
+ returns the PVD data transport returns NULL if no transport is present.
+
+
+ Retrieves the PVD flags. See PxPvdInstrumentationFlags.
+
+
+ Releases the pvd instance.
+
+
+ Connects to the Visual Debugger application. return True if success
+
+
+ Disconnects from the Visual Debugger application. If we are still connected, this will kill the entire debugger connection.
+
+
+ Return if connection to PVD is created.
+
+
+ write bytes to the other endpoint of the connection. should lock before witre. If an error occurs this connection will assume to be dead.
+
+
+ send any data and block until we know it is at least on the wire.
+
+
+ Return size of written data.
+
+
+
diff --git a/PhysxBase.cs b/PhysxBase.cs
new file mode 100644
index 0000000..fe113fc
--- /dev/null
+++ b/PhysxBase.cs
@@ -0,0 +1,50 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Numerics;
+using System.Text;
+using System.Threading.Tasks;
+using MagicPhysX; // for enable Extension Methods.
+using MagicPhysX.Toolkit;
+using static MagicPhysX.NativeMethods; // recommend to use C API.
+
+
+namespace Physx
+{
+ public unsafe struct PhysxBase : IDisposable
+ {
+ public PhysxBase() { }
+ public void Dispose()
+ {
+ foreach (var item in _physicsActors)
+ {
+ ((PxRigidActor*)item.ToPointer())->ReleaseMut();
+ }
+ _physicsActors.Clear();
+ }
+ public void AddPhysicsActors(PxRigidActor* actor)
+ {
+ _physicsActors.Add((nint)(actor));
+ //_physicsActors.Add(actor);
+ }
+ public void RemoveActor(PxRigidActor* actor)
+ {
+ _physicsActors.Remove((nint)actor);
+ }
+ public void PickUpActorBase(PxRigidActor* actor)
+ {
+ _physicsActors.Remove((nint)actor);
+ }
+ public void RemoveAllActor()
+ {
+ foreach (var item in _physicsActors)
+ {
+ ((PxRigidActor*)item.ToPointer())->ReleaseMut();
+ }
+ _physicsActors.Clear();
+ }
+
+ public List _physicsActors;
+
+ }
+}
diff --git a/PhysxCommon.cs b/PhysxCommon.cs
new file mode 100644
index 0000000..7358440
--- /dev/null
+++ b/PhysxCommon.cs
@@ -0,0 +1,406 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Numerics;
+using System.Text;
+using System.Threading.Tasks;
+using MagicPhysX; // for enable Extension Methods.
+using MagicPhysX.Toolkit;
+using static System.Formats.Asn1.AsnWriter;
+using static MagicPhysX.NativeMethods; // recommend to use C API.
+
+namespace Physx
+{
+
+ using PxI64 = Int64;
+ using PxU64 = UInt64;
+ using PxI32 = Int32;
+ using PxU32 = UInt32;
+ using PxI16 = Int16;
+ using PxU16 = UInt16;
+ using PxI8 = Byte;
+ using PxU8 = SByte;
+ //using PxF32 = System.Runtime.InteropServices.NFloat;
+ //using PxF64 =double;
+ //using PxReal = float;
+
+
+ public unsafe class PhysxCommon : IDisposable
+ {
+
+ public const float PxPi = 3.141592653589793f;
+ public const float PxHalfPi = 1.57079632679489661923f;
+ public const float PxTwoPi = 6.28318530717958647692f;
+ public const float PxInvPi = 0.31830988618379067154f;
+ public const float PxInvTwoPi = 0.15915494309189533577f;
+ public const float PxPiDivTwo = 1.57079632679489661923f;
+ public const float PxPiDivFour = 0.78539816339744830962f;
+
+
+ public static PxFoundation* _Foundation;
+ public static PxPhysics* _Physics;
+ public static PxMaterial* _Material;
+ public static PxDefaultCpuDispatcher* _Dispatcher;
+ public static PxPvd* _Pvd;
+
+ public static PxAllocatorCallback _Allocator;
+ public static PxDefaultErrorCallback _ErrorCallback;
+
+ bool disposedValue;
+
+
+ public PhysxCommon() { }
+ public static PhysxCommon Instance { get { return instance; } }
+ private static readonly PhysxCommon instance = new PhysxCommon();
+
+
+ //系统自动调用
+ ~PhysxCommon()
+ {
+ Dispose(disposing: false);
+ }
+
+ private void Dispose(bool disposing)
+ {
+ if (!disposedValue)
+ {
+ if (disposing)
+ {
+ // cleanup managed code
+
+ }
+
+ // cleanup unmanaged resource
+ disposedValue = true;
+ }
+ }
+
+ //手动调用
+ public void Dispose()
+ {
+ Dispose(disposing: true);
+ GC.SuppressFinalize(this);
+ }
+
+ //physx_common::~physx_common() { Destory(); }
+
+ public bool InitPhyxsSDK()
+ {
+
+ // create physics
+ uint PX_PHYSICS_VERSION_MAJOR = 5;
+ uint PX_PHYSICS_VERSION_MINOR = 1;
+ uint PX_PHYSICS_VERSION_BUGFIX = 3;
+ uint versionNumber = (PX_PHYSICS_VERSION_MAJOR << 24) + (PX_PHYSICS_VERSION_MINOR << 16) + (PX_PHYSICS_VERSION_BUGFIX << 8);
+ if (_Foundation == null)
+ {
+ fixed (PxAllocatorCallback* allocPtr = &_Allocator)
+ {
+ fixed (PxDefaultErrorCallback* errorPtr = &_ErrorCallback)
+ {
+ //_Foundation = phys_PxCreateFoundation(versionNumber, allocPtr,
+ //errorPtr);
+ // _Foundation =
+ }
+ }
+
+ }
+ if (_Foundation == null)
+ {
+ //LogMgr::GetInstance()->Error(
+ // "physx_common::InitPhyxsSDK() error:px_foundation_ is null");
+ return false;
+ }
+
+
+ //if (!px_pvd_)
+ //{
+ // px_pvd_ = PxCreatePvd(*px_foundation_);
+ //}
+ //if (px_pvd_ == nullptr) return false;
+
+
+ if (_Physics == null)
+ {
+
+ var tolerancesScale = new PxTolerancesScale { length = 1, speed = 10 };
+ _Physics = phys_PxCreatePhysics(versionNumber, _Foundation, &tolerancesScale, true, _Pvd, null);
+
+ }
+ if (_Physics == null)
+ {
+ //LogMgr::GetInstance()->Error(
+ // "physx_common::InitPhyxsSDK() error: px_physics_ is null");
+ return false;
+ }
+
+ if (_Dispatcher == null)
+ //_Dispatcher = phys_PxDefaultCpuDispatcherCreate(0);
+ phys_PxDefaultCpuDispatcherCreate(1, null, PxDefaultCpuDispatcherWaitForWorkMode.WaitForWork, 0);
+ if (_Material == null)
+ // _Material = _Physics->createMaterial(0.0f, 0.0f, 0.0f);
+ _Material = PxPhysics_createMaterial_mut(_Physics, 0.0f, 0.0f, 0.0f);
+
+ return true;
+ }
+
+ //public void Destory()
+ //{
+ //if (instance_ != nullptr)
+ //{
+ // ReleaseSDK();
+ // delete instance_;
+ // instance_ = nullptr;
+ //}
+ //}
+
+
+ bool IsConnectedPvd()
+ {
+ // return _Pvd !=null ? _Pvd->PxPvd_isConnected_mut() : false;
+ return _Pvd != null ? PxPvd_isConnected_mut(_Pvd, true) : false;
+ }
+
+ public void ConnectPvdServer()
+ {
+ if (IsConnectedPvd() == false)
+ return;
+ if (_Pvd == null)
+ return;
+
+ //PxPvdTransport* transport = PxDefaultPvdSocketTransportCreate(g_pGameWorld->m_Settings.Ip_Pvd, 5425, 10);
+ byte hostip = 10;
+ PxPvdTransport* transport = phys_PxDefaultPvdSocketTransportCreate(&hostip, 5425, 10);
+
+ if (transport == null)
+ return;
+
+ bool is_connected = _Pvd->ConnectMut(transport, PxPvdInstrumentationFlags.All);
+ if (!is_connected)
+ {
+ //LogMgr::GetInstance()->Error(
+ // "physx_common::InitPhyxsSDK() error:pvd connect error.");
+ }
+ }
+
+ public void DisconnectPvdServer()
+ {
+ if (!IsConnectedPvd())
+ return;
+ if (_Pvd == null) return;
+
+ _Pvd->DisconnectMut();
+ }
+
+ public void ReleaseSDK()
+ {
+ if (_Physics != null)
+ {
+ _Dispatcher->ReleaseMut();
+ _Physics->ReleaseMut();
+ if (_Pvd != null)
+ {
+ PxPvdTransport* transport = _Pvd->GetTransportMut();
+ if (transport != null)
+ {
+ transport->ReleaseMut();
+ transport = null;
+ }
+ _Pvd->ReleaseMut();
+ _Pvd = null;
+ }
+
+ _Foundation->ReleaseMut();
+ _Dispatcher = null;
+ _Physics = null;
+ _Foundation = null;
+ }
+ }
+
+ public PxPhysics* GetPhysics() { return _Physics; }
+ public PxDefaultCpuDispatcher* GetCpuDispatcher() { return _Dispatcher; }
+ public PxMaterial* GetDefaultMaterial() { return _Material; }
+
+ /////////////////////////////////////////////////////////////////////////
+ // maths tools
+ /////////////////////////////////////////////////////////////////////////
+ void SetEulerYXZ(ref float yaw, ref float pitch,
+ ref float roll, ref PxQuat quat)
+ {
+ float halfYaw = yaw * 0.5f;
+ float halfPitch = pitch * 0.5f;
+ float halfRoll = roll * 0.5f;
+ float cosYaw = MathF.Cos(halfYaw);
+ float sinYaw = MathF.Sin(halfYaw);
+ float cosPitch = MathF.Cos(halfPitch);
+ float sinPitch = MathF.Sin(halfPitch);
+ float cosRoll = MathF.Cos(halfRoll);
+ float sinRoll = MathF.Sin(halfRoll);
+
+ //效率更高
+ quat.x = cosRoll * sinPitch * cosYaw + sinRoll * cosPitch * sinYaw;
+ quat.y = cosRoll * cosPitch * sinYaw - sinRoll * sinPitch * cosYaw;
+ quat.z = sinRoll * cosPitch * cosYaw - cosRoll * sinPitch * sinYaw;
+ quat.w = cosRoll * cosPitch * cosYaw + sinRoll * sinPitch * sinYaw;
+ }
+
+ //PxVec3 GetQuatRotate(KVector3D& dir, KVector3D& velocity)
+ //{
+ // PxQuat px_qua;
+ // SetEulerYXZ((float)((PI_F * dir.nY) / (1000 * 180)), (float)((PI_F * dir.nX) / (1000 * 180)),
+ // (float)((PI_F * dir.nZ) / (1000 * 180)), px_qua);
+
+ // return px_qua.rotate(PxVec3((float)velocity.nX, (float)velocity.nY,
+ // (float)velocity.nZ));
+ //}
+
+ PxVec3 QuatToEuler(PxQuat* q)
+ {
+ //PxVec3 dir = -PxMat33(q)[2];
+ PxVec3 dir = PxVec3_new_3(-q->Mat33New6().column2.x, -q->Mat33New6().column2.y, -q->Mat33New6().column2.z);
+ float r = MathF.Sqrt(dir.x * dir.x + dir.z * dir.z);
+ PxVec3 rot = PxVec3_new_3(0.0f, PxHalfPi, 0.0f);
+ if (r != 0.0f)
+ {
+ rot.x = -MathF.Atan(dir.y / r);
+ rot.y = MathF.Asin(dir.x / r);
+ if (dir.z > 0.0f) rot.y = PxPi - rot.y;
+ }
+ return rot;
+ }
+
+ PxVec3 GetEuler(PxVec3 forward)
+ {
+ PxVec3 euler = PxVec3_new_3(0, 0, 0);
+ PxVec3 tmp_forward = forward;
+ tmp_forward.y = 0;
+ //tmp_forward = BaseBehavior::SafeNormalized(tmp_forward);
+
+ // xz平面
+ //float angle = BaseBehavior::PxVec3Angle(PxVec3(0, 0, 1), tmp_forward) /
+ // PxPi * 180; // 角度值
+ //TODO:需要重写
+ float angle = 1.0f;
+ if (tmp_forward.x >= 0)
+ {
+ euler.y = angle;
+ }
+ else
+ {
+ euler.y = -angle;
+ }
+
+ // pitch角度
+ tmp_forward = forward;
+ tmp_forward.z = MathF.Sqrt(tmp_forward.x * tmp_forward.x + tmp_forward.z * tmp_forward.z);
+ tmp_forward.x = 0;
+ //tmp_forward = BaseBehavior::SafeNormalized(tmp_forward);
+ //angle = BaseBehavior::PxVec3Angle(PxVec3(0, 0, 1), tmp_forward) /
+ // PxPi * 180; // 角度值
+ if (tmp_forward.y >= 0)
+ {
+ euler.x = -angle;
+ }
+ else
+ {
+ euler.x = angle;
+ }
+ return euler;
+ }
+
+ float GetAngle(PxVec3* v0, PxVec3* v1)
+ {
+ float m = v0->MagnitudeSquared() * v1->MagnitudeSquared();
+ float s = MathF.Sqrt(m);
+
+ if (s < (float)(1e-20f))
+ {
+ return 0.0f;
+ }
+
+ s = 1.0f / s;
+ return MathF.Acos(v0->Dot(v1) * s);
+ }
+
+ void QuatToMatrix(float* quat, float* matrix)
+ {
+ float xx = quat[0] * quat[0];
+ float yy = quat[1] * quat[1];
+ float zz = quat[2] * quat[2];
+ float xy = quat[0] * quat[1];
+ float xz = quat[0] * quat[2];
+ float yz = quat[1] * quat[2];
+ float wx = quat[3] * quat[0];
+ float wy = quat[3] * quat[1];
+ float wz = quat[3] * quat[2];
+
+ matrix[0 * 4 + 0] = 1 - 2 * (yy + zz);
+ matrix[1 * 4 + 0] = 2 * (xy - wz);
+ matrix[2 * 4 + 0] = 2 * (xz + wy);
+
+ matrix[0 * 4 + 1] = 2 * (xy + wz);
+ matrix[1 * 4 + 1] = 1 - 2 * (xx + zz);
+ matrix[2 * 4 + 1] = 2 * (yz - wx);
+
+ matrix[0 * 4 + 2] = 2 * (xz - wy);
+ matrix[1 * 4 + 2] = 2 * (yz + wx);
+ matrix[2 * 4 + 2] = 1 - 2 * (xx + yy);
+
+ matrix[3 * 4 + 0] = matrix[3 * 4 + 1] = matrix[3 * 4 + 2] =
+ (float)0.0f;
+ matrix[0 * 4 + 3] = matrix[1 * 4 + 3] = matrix[2 * 4 + 3] =
+ (float)0.0f;
+ matrix[3 * 4 + 3] = (float)1.0f;
+ }
+
+ PxVec3 ToEulerAngle(float* quat)
+ {
+ // float matrix[16];
+
+ float* matrix = stackalloc float[16];
+ QuatToMatrix(quat, matrix);
+
+ float m11 = matrix[0], m12 = matrix[4], m13 = matrix[8];
+ float m21 = matrix[1], m22 = matrix[5], m23 = matrix[9];
+ float m31 = matrix[2], m32 = matrix[6], m33 = matrix[10];
+
+ if (m23 < -1)
+ {
+ m23 = -1;
+ }
+
+ if (m23 > 1)
+ {
+ m23 = 1;
+ }
+
+ float _x, _y, _z;
+ _x = MathF.Asin(-m23);
+
+ if (MathF.Abs(m23) < 0.99999)
+ {
+ _y = MathF.Atan2(m13, m33);
+ _z = MathF.Atan2(m21, m22);
+ }
+ else
+ {
+ _y = MathF.Atan2(-m31, m11);
+ _z = 0;
+ }
+
+ return PxVec3_new_3(_x, _y, _z);
+ }
+
+ public double Distance2(PxVec3* a, PxVec3* b)
+ {
+ PxVec3 tmp = a->Multiply(b);
+ return tmp.Dot(&tmp);
+ }
+
+ public double Distane(PxVec3* a, ref PxVec3* b)
+ {
+ return Math.Sqrt(Distance2(a, b));
+ }
+
+ }
+}
diff --git a/PhysxTriger.cs b/PhysxTriger.cs
new file mode 100644
index 0000000..65bf106
--- /dev/null
+++ b/PhysxTriger.cs
@@ -0,0 +1,281 @@
+using System;
+using System.Collections.Generic;
+using System.Diagnostics.Metrics;
+using System.Linq;
+using System.Runtime.InteropServices;
+using System.Security.Cryptography.X509Certificates;
+using System.Text;
+using System.Threading.Tasks;
+using MagicPhysX; // for enable Extension Methods.
+using MagicPhysX.Toolkit;
+using static MagicPhysX.NativeMethods; // recommend to use C API.
+
+namespace Physx
+{
+ //delegate void TRIGGER_FUNC(PxRigidActor* actorA, PxRigidActor* actorB, UInt32 c);
+ //先用原来的命名方式 后续修改为微软命名方式
+
+
+ public unsafe struct TriggerCallBack : IDisposable
+ {
+
+ public PxShape* shape_;
+ public TRIGGER_FUNC enter_func_;
+ public TRIGGER_FUNC leave_func_;
+ public UInt32 effectType_;
+ public UInt64 endStamp_;
+ //std::shared_ptr shape_name_ptr_;
+ public IntPtr StrPtr;
+
+ public delegate void TRIGGER_FUNC(PxRigidActor* actorA, PxRigidActor* actorB, UInt32 c);
+ public TriggerCallBack()
+ {
+
+
+ }
+
+ public TriggerCallBack(PxShape* shape, UInt32 effectType, UInt64 effectValue, TRIGGER_FUNC enter, TRIGGER_FUNC leave)
+ {
+ shape_ = shape;
+ enter_func_ = enter;
+ leave_func_ = leave;
+ effectType_ = effectType;
+ }
+
+ public void Dispose()
+ {
+ //TODO 这里需要详细测试 如何释放内存 shape_ 是delete 指向的对象 还是只是 置为null
+
+
+ }
+
+ //TriggerCallBack(PxShape* shape, UInt32 effectType,
+ // UInt64 effectValue, TRIGGER_FUNC** enter,
+ // TRIGGER_FUNC** leave);
+ //~TriggerCallBack();
+ public void OnEnter(PxRigidActor* tActor, PxRigidActor* oActor, UInt32 args = 0)
+ {
+
+ if (enter_func_ != null)
+ {
+ enter_func_(tActor, oActor, args);
+ }
+
+ }
+ public void OnLeave(PxRigidActor* tActor, PxRigidActor* oActor, UInt32 args = 0)
+ {
+ if (leave_func_ != null)
+ {
+ leave_func_(tActor, oActor, args);
+ }
+ }
+ public void ResetCall()
+ {
+ enter_func_ = null;
+ leave_func_ = null;
+ }
+ public bool IsNeedDelete()
+ {
+ if (endStamp_ > 0)
+ {
+ //return endStamp_ < KG_GetTimeStamp();
+ }
+ return false;
+ }
+ //TODO;需要测试
+ public bool EuqalShapeName(IntPtr strPtr)
+ {
+ return strPtr.Equals(strPtr);
+ }
+ }
+
+
+
+
+ /////////////////////////////////////////////////////////////////////////
+ // TriggerManager
+ /////////////////////////////////////////////////////////////////////////
+ public unsafe struct TriggerManager
+ {
+
+ //TriggerManager();
+ //~TriggerManager();
+
+ // add a TriggerCallBackPtr
+ public void Push(TriggerCallBack* ptr)
+ {
+
+ callbacks_.Add((nint)ptr);
+ }
+
+ // remve a trigger by shape
+ public void Remove(PxShape* shape)
+ {
+ if (shape == null) return;
+ foreach (IntPtr it in callbacks_)
+ {
+ TriggerCallBack* call = (TriggerCallBack*)it.ToPointer();
+ if (call->EuqalShapeName((IntPtr)shape->GetName()))
+ {
+ callbacks_.Remove(it);
+
+ //TODO 需要测试
+ //因为it 原先是智能指针实现 这里需要释放智能指针指向的对象
+ //需要考虑引用次数?
+ //call->Dispose();
+ return;
+ }
+ }
+ }
+
+ // reset all triggers of a actor shapes
+ public void ResetTriggersInActor(PxRigidActor* actor)
+ {
+ if (actor == null) return;
+
+ UInt32 num = actor->GetNbShapes();
+ //NativeMethodsGroupingExtensions.GetNbShapes(ref *actor);
+
+ if (num < 1) return;
+
+ //std::vector shapes(nb);
+ //List shapes = new List((int)nb);
+ //
+ PxShape*[] shapes = new PxShape*[num];
+ //UInt32 nbShapes = actor->GetShapes(reinterpret_cast(&shapes[0]), nb);
+
+ fixed (PxShape** p = shapes)
+ {
+ UInt32 nbShapes = actor->GetShapes(p, num, 0);
+ if (num != nbShapes) return;
+ }
+
+ for (UInt32 i = 0; i < num; i++)
+ {
+ if (((int)shapes[i]->GetFlags() & (int)PxShapeFlag.TriggerShape) != 0)
+ {
+ //TriggerCallBackPtr ptr = FindTrigger(shapes[i]);
+ TriggerCallBack* TriggerCallBackPtr = FindTrigger(shapes[i]);
+ if (TriggerCallBackPtr != null)
+ {
+ TriggerCallBackPtr->ResetCall();
+ //(IntPtr)(TriggerCallBackPtr)->ResetCall();
+ }
+ }
+ }
+ }
+
+ // when release actor, remove all TriggerCallBackPtrs of the actor
+ public void OnReleaseActor(PxRigidActor* actor)
+ {
+ if (actor == null) return;
+
+ UInt32 num = actor->GetNbShapes();
+
+ if (num < 1) return;
+
+ //std::vector shapes(nb);
+ PxShape*[] shapes = new PxShape*[num];
+ fixed (PxShape** p = shapes)
+ {
+ UInt32 nbShapes = actor->GetShapes(p, num, 0);
+ if (num != nbShapes) return;
+ }
+
+
+ for (UInt32 i = 0; i < num; i++)
+ {
+ if (((int)shapes[i]->GetFlags() & (int)PxShapeFlag.TriggerShape) != 0)
+ {
+ Remove(shapes[i]);
+ }
+ }
+ }
+
+ // find a TriggerCallBackPtr by shape
+ public TriggerCallBack* FindTrigger(PxShape* shape)
+ {
+
+ if (shape == null) return null;
+
+ if (((int)shape->GetFlags() & (int)PxShapeFlag.TriggerShape) != 0)
+ {
+
+ }
+ else
+ {
+ //LogMgr::GetInstance()->Error(
+ // "TriggerManager::FindTrigger is not triggerrrrrrrrrrrrrrrrrrrr\n");
+ }
+ foreach (IntPtr it in callbacks_)
+ {
+ TriggerCallBack* call = (TriggerCallBack*)it.ToPointer();
+ if (call->EuqalShapeName((IntPtr)shape->GetName()))
+ {
+ return call;
+ }
+ }
+ return null;
+ }
+
+
+ public void Update()
+ {
+ if (callbacks_.Count() == 0) return;
+ foreach (IntPtr it in callbacks_)
+ {
+ TriggerCallBack* call = (TriggerCallBack*)it.ToPointer();
+ {
+ PxRigidActor* actor = call->shape_->GetActor();
+ if (actor != null)
+ {
+ UInt32 nb = actor->GetNbShapes();
+ if (nb <= 2)
+ {
+ //KHero* hero = static_cast(actor->userData)->is < KHero *> ();
+ //if (hero)
+ //{
+ // auto cur = hero->attribute_manager_.GetCurrent();
+ // cur.hp = 0;
+ // hero->attribute_manager_.SetCurrent(cur);
+ // hero->Die(nullptr);
+ //}
+ }
+ }
+ callbacks_.Remove(it);
+ }
+ }
+ }
+
+ public void Clear()
+ {
+ callbacks_.Clear();
+ }
+
+ public void PrintV()
+ {
+ //LogMgr::GetInstance()->Error("TriggerManager::PrintV ============\n");
+
+ //for (auto it : callbacks_)
+ //{
+ // printf("shape=%p,", it->shape_);
+ // physx::PxSphereGeometry geo;
+ // if (it->shape_->getSphereGeometry(geo))
+ // {
+ // printf("radius=%f\n", geo.radius);
+ // }
+ //}
+ }
+
+ //禁止拷贝构造 c#中是否有这样语法
+ // private:
+ //TriggerManager& operator=(const TriggerManager&);
+
+
+ //TriggerCallBack* 是否存在指向内容的释放
+ //List callbacks_;
+ List callbacks_;
+ };
+
+
+}
diff --git a/PhysxWorld.cs b/PhysxWorld.cs
new file mode 100644
index 0000000..c8dcdeb
--- /dev/null
+++ b/PhysxWorld.cs
@@ -0,0 +1,1300 @@
+using System;
+using System.Collections.Generic;
+using System.Diagnostics.Metrics;
+using System.Linq;
+using System.Numerics;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+using System.Security.Cryptography.X509Certificates;
+using System.Text;
+using System.Threading.Tasks;
+using MagicPhysX; // for enable Extension Methods.
+using MagicPhysX.Toolkit;
+using Physx;
+using static System.Formats.Asn1.AsnWriter;
+using static System.Runtime.InteropServices.JavaScript.JSType;
+using static MagicPhysX.NativeMethods; // recommend to use C API.
+using static PhysX.PhysxWorldRaycastResultCb_1;
+
+
+
+
+
+//测试bug问题总结 使用注意点 C Api(踩坑血泪史)
+/*
+ 1 physx_create_foundation 只可以初始化一次,否则后续api 调用会出现 api调用访问非法内存
+ 2 出现调用api 接口访问非法内存错误, 一般都是当前位置参数错误,或者前面生成参数某些步骤错误(重要)
+ 3 创建PxGemometry 只能值传递,不可以返回指针 PxBoxGeometry_new 同类型的调用方式也有同样问题
+ 4 PxShapeFlag.SimulationShape 和 PxShapeFlag.TriggerShape 是互斥的不可同时设置为true ! 同时
+ 当一个设置为true时 另一个必须设置为false(翻源码得知 文档中也有说明 ) 否则会崩
+ 5 addforce 设置外力时 给与物体速度时 需要确保actor已经加入scence了
+ 6 当触发onTriger回调方法时候,两个shap 都是PxShapeFlag.TriggerShape属性的时候是无法触发的
+ 7 如果创建刚体的时候设置gemomry参数时候,刚体会自带一个shap ,否则会不会创建。需要另外添加shap
+ 8 shap添加进刚体,调用release方法 是因为physx内部内存管理机制, shap是引用计数的。在添加到一个刚体之后
+ 需要调用relase方法,否则容易引起内存泄露。
+ 9 PxShapeFlag.SimulationShape 模式下 先执行filetershader 后执行 filterback (目前filterback func 无法生成,库不支持)
+10 raycast 回调函数目前无法触发 (大概率使用原因,后续验证下)
+ */
+
+
+
+namespace PhysX
+{
+ //先使用原来的命名方法 后续改为微软命名风格
+ public enum PhysxShapeType
+ {
+ PX_BOX = 1,
+ PX_SPHERE = 2,
+ PX_CAPSULE = 3
+ };
+ public enum PhysxObjectType
+ {
+ PX_INVALIDE,
+ PX_STATICOBJECT,
+ PX_AIRSHIP,
+ PX_SPELL,
+ PX_SPELLTARGETSTATOCOBJECT,
+ PX_MONSTERGROUP,
+ PX_TRIGGER,
+ PX_MONSTER
+ };
+
+ public enum PhysxCollisionTypes
+ {
+ PX_COL_NOTHING = 0, //(handler);故不实现
+
+ public unsafe static class PxConstValue
+ {
+ public const int MaskAirShipCollidesWith = (int)(PhysxCollisionTypes.PX_COL_STATIC_OBJ | PhysxCollisionTypes.PX_COL_SPELL_OBJ | PhysxCollisionTypes.PX_COL_TRIGGER_OBJ);
+ public const int MaskStaticCollidesWith = (int)(PhysxCollisionTypes.PX_COL_SPELL_OBJ | PhysxCollisionTypes.PX_COL_AIR_SHIP | PhysxCollisionTypes.PX_COL_MONSTER_GROUP_OBJ);
+ public const int MaskSpellCollidesWith = (int)(PhysxCollisionTypes.PX_COL_STATIC_OBJ | PhysxCollisionTypes.PX_COL_AIR_SHIP | PhysxCollisionTypes.PX_COL_SPELL_TARGET_STATIC_OBJ | PhysxCollisionTypes.PX_COL_MONSTER);
+ public const int MaskSpellTargetCollidesWith = (int)PhysxCollisionTypes.PX_COL_SPELL_OBJ;
+ public const int MaskAirShipNoColldierWith = (int)PhysxCollisionTypes.PX_COL_NOTHING;
+ public const int MaskMonsterGroupColldierWith = (int)PhysxCollisionTypes.PX_COL_STATIC_OBJ;
+ public const int MaskTriggerColldierWith = (int)(PhysxCollisionTypes.PX_COL_AIR_SHIP | PhysxCollisionTypes.PX_COL_MONSTER);
+ public const int MaskMonsterColldersWith = (int)(PhysxCollisionTypes.PX_COL_SPELL_OBJ | PhysxCollisionTypes.PX_COL_TRIGGER_OBJ);
+
+ public static PhysxObjectType PhysxGetUserType(PxRigidActor* actor)
+ {
+ if (actor->userData == null)
+ {
+ return PhysxObjectType.PX_STATICOBJECT;
+ }
+ else
+ {
+ //TODO 需要补充业务代码
+ //return actor0->getPhysxType();
+ }
+ return PhysxObjectType.PX_INVALIDE;
+ }
+
+ //public delegate* unmanaged[Cdecl] tmp;
+ public static PxFilterFlags PhysxWorldFilterShader(
+ UInt32 attributes0,
+ PxFilterData filterData0,
+ UInt32 attributes1,
+ PxFilterData filterData1, PxPairFlags* pairFlags,
+ void* constantBlock, UInt32 constantBlockSize)
+ {
+ // let triggers through
+ if (phys_PxFilterObjectIsTrigger(attributes0) ||
+ phys_PxFilterObjectIsTrigger(attributes1))
+ {
+ *pairFlags = PxPairFlags.ContactDefault;
+
+ if (((filterData0.word0 & filterData1.word1) != 0) &&
+ ((filterData1.word0 & filterData0.word1) != 0))
+ {
+ *pairFlags = PxPairFlags.SolveContact |
+ PxPairFlags.DetectDiscreteContact |
+ PxPairFlags.NotifyTouchFound |
+ PxPairFlags.NotifyTouchLost |
+ PxPairFlags.NotifyContactPoints;
+ }
+ return 0 | PxFilterFlags.Callback;
+ }
+ return PxFilterFlags.Callback;
+ }
+ }
+
+
+ //create_raycast_filter_callback_func
+ public unsafe struct MyOwnerFilterCallbackPhysx //: public physx::PxSimulationFilterCallback
+ {
+ public static PxFilterFlags pairFound(
+ UInt32 pairID, UInt32 attributes0,
+ PxFilterData filterData0, PxActor* a0,
+ PxShape* s0, UInt32 attributes1,
+ PxFilterData filterData1, PxActor* a1,
+ PxShape* s1, PxPairFlags* pairFlags)
+ {
+ *pairFlags = PxPairFlags.ContactDefault;
+ PxRigidActor* first = (PxRigidActor*)a0;
+ PxRigidActor* second = (PxRigidActor*)a1;
+ if (first == null || second == null)
+ {
+ PhysxObjectType type0 = PxConstValue.PhysxGetUserType(first);
+ PhysxObjectType type1 = PxConstValue.PhysxGetUserType(second);
+ if ((type0 == PhysxObjectType.PX_SPELL) && (type1 == PhysxObjectType.PX_AIRSHIP || type1 == PhysxObjectType.PX_MONSTER))
+ {
+ return PxFilterFlags.Kill;
+ }
+ }
+ return PxFilterFlags.Kill;
+ }
+ public static void pairLost(UInt32 pairID,
+ UInt32 attributes0,
+ PxFilterData filterData0,
+ UInt32 attributes1,
+ PxFilterData filterData1, bool objectRemoved)
+ {
+
+ }
+
+ public static bool statusChange(UInt32* pairID, PxPairFlags* pairFlags,
+ PxFilterFlags* filterFlags)
+ {
+ return false;
+ }
+ }
+
+
+ /////////////////////////////////////////////////////////////////////////
+ // PhysxWorldRaycastResultCb
+ /////////////////////////////////////////////////////////////////////////
+ public unsafe struct PhysxWorldRaycastResultCb_1
+ {
+ //userdata部分
+ public struct RaycastUserData
+ {
+ public PxVec3 m_rayFromWorld; // used to calculate hitPointWorld from hitFraction
+ public PxVec3 m_rayToWorld;
+ public PxVec3 m_hitNormalWorld;
+ public PxVec3 m_hitPointWorld;
+ public PxRigidActor* actor_;
+ }
+ public RaycastUserData userData;
+
+ public PhysxWorldRaycastResultCb_1(PxVec3* rayFromWorld, PxVec3* rayToWorld)
+ {
+ userData.m_rayFromWorld = *rayFromWorld;
+ userData.m_rayToWorld = *rayToWorld;
+ }
+
+ //uint flag
+ public delegate* callback;
+ public static PxQueryHitType preFilter(PxRigidActor* actor, PxFilterData* filterData, PxShape* shape,
+ uint flags, void* userData)
+ {
+ ////filterData need adjust???
+ //子弹屏蔽
+ if ((RaycastUserData*)userData != null)
+ {
+ PxRigidActor* obj0 = actor;
+ //TODO 根据自己理解暂时修改 userData 为PhysxWorldRaycastResultCb 中的自定义数据
+ PxRigidActor* obj1 = ((RaycastUserData*)userData)->actor_;
+ if (obj0 != null && obj1 != null)
+ {
+ int type0 = (int)PxConstValue.PhysxGetUserType(obj0);
+ int type1 = (int)PxConstValue.PhysxGetUserType(obj1);
+ if ((type0 == (int)PhysxObjectType.PX_SPELL) && (type1 == (int)PhysxObjectType.PX_AIRSHIP))
+ {
+ //业务代码先屏蔽
+ }
+ else if ((type0 == (int)PhysxObjectType.PX_AIRSHIP) && (type1 == (int)PhysxObjectType.PX_SPELL))
+ {
+ //业务代码先屏蔽
+ }
+ else if ((type0 == (int)PhysxObjectType.PX_SPELLTARGETSTATOCOBJECT) && (type1 == (int)PhysxObjectType.PX_SPELL))
+ {
+ //业务代码先屏蔽
+ }
+ else if ((type1 == (int)PhysxObjectType.PX_SPELLTARGETSTATOCOBJECT) && (type0 == (int)PhysxObjectType.PX_SPELL))
+ {
+ //业务代码先屏蔽
+ }
+ }
+ }
+ return PxQueryHitType.Block;
+ }
+ }
+
+ //此接口废弃 此接口使用的继承方式 c#中无法使用c++风格的api 只能数据和方法分离 不就是传说中的Ecs么
+ //public static extern PxQueryFilterCallback* create_raycast_filter_callback_func
+ //public unsafe struct PhysxWorldRaycastResultCb /* :PxQueryFilterCallback */
+ //{
+ //};
+
+
+ //释放内存逻辑暂不实现 需要根据业务详细考虑
+ public unsafe struct WorldUserData : IDisposable
+ {
+ public WorldUserData()
+ {
+ px_scene_ = null;
+ stamp_ = 0;
+ _physxBase = new PhysxBase();
+ // trigger_mgr_ = null;
+ }
+
+ public void Dispose()
+ {
+
+ }
+
+ public string PVD_HOST = "127.0.0.1";
+ public float DEFAULT_DENSITY = 10.0f;
+
+ public PhysxBase _physxBase;
+ public UInt64 test_sync_time_;
+ public bool is_init_world_;
+ public PxScene* px_scene_;
+ public UInt64 stamp_;
+ public TriggerManager trigger_mgr_;
+
+ //是否是这样弄?
+ public PxTriggerPair pairs;
+ public UInt32 count = 128;
+
+ public int userid;
+
+ }
+
+ //public static extern PxFilterFlags PxSimulationFilterCallback_pairFound_mut
+ //先使用原来的风格 后续改为微软命名风格
+ //主要继承PxSimulationEventCallback 然后触发PxSimulationEventCallback中回调函数
+ public unsafe struct PhysxWorld : IDisposable // : public PhysxBase, public physx::PxSimulationEventCallback {
+ {
+ //继承而来
+ //PhysxBase _physxBase;
+ SimulationEventCallbackInfo* _event_call_back;
+ PxSimulationFilterCallback* filter_callback_;
+
+
+ WorldUserData _worldUserData;
+
+ //Interlocked.Add;
+ //原子操作
+ static UInt64 atomic_next_id_;
+ //UInt64 test_sync_time_;
+
+ public PhysxWorld() { }
+ //~PhysxWorld();
+
+ public void Dispose()
+ {
+ //destroy_simulation_event_callbacks(_event_call_back);
+ if (_worldUserData.px_scene_ != null)
+ {
+ //TODO 构造px_scene_ 使用的 scentdesc 是否需要释放?
+ _worldUserData.px_scene_->ReleaseMut();
+ }
+ }
+
+ public void SetPvdHost(string host)
+ {
+ _worldUserData.PVD_HOST = host;
+ }
+
+ //长方体
+ public PxBoxGeometry* CreateBoxGeo(float lon, float wide, float height)
+ {
+ PxBoxGeometry temp = PxBoxGeometry_new(lon, wide, height);
+ return &temp;
+ }
+ //球体
+ public PxSphereGeometry* CreateSphereGeo(float radius)
+ {
+ PxSphereGeometry temp = PxSphereGeometry_new(radius);
+ return &temp;
+ }
+ //胶囊体
+ public PxCapsuleGeometry* CreateCapsuleGeo(float radius, float height, int capsuleAxis)
+ {
+ PxCapsuleGeometry temp = PxCapsuleGeometry_new(radius, height * 0.5f);
+ return &temp;
+ }
+
+ //创建几何体
+ public PxGeometry* CreateGeometry(int shape_type, PxVec3* min_position, PxVec3* max_position)
+ {
+ PxGeometry* geometry = null;
+
+ PxVec3 size;
+ size.x = (MathF.Abs(max_position->x - min_position->x));
+ size.y = (MathF.Abs(max_position->y - min_position->y));
+ size.z = (MathF.Abs(max_position->z - min_position->z));
+
+ switch (shape_type)
+ {
+ case (int)PhysxShapeType.PX_SPHERE:
+ {
+ float max_r = MathF.Max(size.x, size.y);
+
+ max_r = MathF.Max(max_r, size.z);
+
+ geometry = (PxGeometry*)CreateSphereGeo(max_r * 0.5f);
+
+ break;
+ }
+
+ case (int)PhysxShapeType.PX_BOX:
+ {
+ geometry = (PxGeometry*)CreateBoxGeo(size.x * 0.5f, size.y * 0.5f, size.z * 0.5f);
+
+ break;
+ }
+
+ case (int)PhysxShapeType.PX_CAPSULE:
+ {
+ float len = MathF.Max(size.x, size.y);
+ len = MathF.Max(len, size.z);
+ int direction = 0;
+ float radius = 0.0f;
+ float height = len;
+
+ if (len == size.x)
+ {
+ direction = 0;
+ radius = MathF.Max(size.y, size.z) * 0.5f;
+ }
+ else if (len == size.y)
+ {
+ direction = 1;
+ radius = MathF.Max(size.x, size.z) * 0.5f;
+ }
+ else if (len == size.z)
+ {
+ direction = 2;
+ radius = MathF.Max(size.x, size.y) * 0.5f;
+ }
+
+ if (MathF.Abs(radius) < 0.000001) return geometry;
+ if (MathF.Abs(height) < 0.000001) return geometry;
+
+ geometry = (PxGeometry*)CreateCapsuleGeo(radius, height - 2 * radius, direction);
+
+ break;
+ }
+ }
+ return geometry;
+ }
+
+ //创建一个形状
+ PxShape* CreateShap(PxGeometry* geometry, bool isExclusive = false,
+ PxShapeFlags shapeFlags = PxShapeFlags.Visualization |
+ PxShapeFlags.SceneQueryShape |
+ PxShapeFlags.SimulationShape)
+ {
+ return PxPhysics_createShape_mut(PhysxCommon.Instance.GetPhysics(),
+ geometry, PhysxCommon.Instance.GetDefaultMaterial(), isExclusive, shapeFlags);
+ }
+
+ /////////////////////////////////////////////////////////////////////////
+ // implement add Trigger shape
+ /////////////////////////////////////////////////////////////////////////
+
+ bool AddBoxTrigger(PxRigidDynamic* actor, float lon,
+ float wide, float height,
+ UInt32 effectType, UInt32 effectValue,
+ TriggerCallBack.TRIGGER_FUNC enter, TriggerCallBack.TRIGGER_FUNC leave)
+ {
+ PxBoxGeometry* box = CreateBoxGeo(lon, wide, height);
+ PxShape* shap = CreateShap((PxGeometry*)box, true); //! must be exclusive
+ if (shap == null)
+ {
+ return false;
+ }
+ return AddTriggerFromShape(actor, shap, effectType, effectValue, enter, leave);
+ }
+
+ bool AddSphereTrigger(PxRigidDynamic* actor, float radius,
+ UInt32 effectType, UInt64 effectValue,
+ TriggerCallBack.TRIGGER_FUNC enter, TriggerCallBack.TRIGGER_FUNC leave)
+ {
+ if (radius < 0.001f)
+ {
+ return false;
+ }
+
+ PxSphereGeometry* sphere = CreateSphereGeo(radius);
+ PxShape* shap = CreateShap((PxGeometry*)sphere, true);
+ if (shap == null)
+ {
+ return false;
+ }
+ return AddTriggerFromShape(actor, shap, effectType, effectValue, enter, leave);
+ }
+
+ bool AddSphereTrigger(void* userPointer, PxVec3 startPosition,
+ PxQuat startOrientation,
+ UInt32 filterGroup, UInt32 filterMask,
+ float radius, UInt32 effectType,
+ UInt64 effectValue, TriggerCallBack.TRIGGER_FUNC enter,
+ TriggerCallBack.TRIGGER_FUNC leave)
+ {
+ if (radius < 0.001f) return false;
+
+ PxSphereGeometry* sphere = CreateSphereGeo(radius);
+ PxShape* shap = CreateShap((PxGeometry*)sphere, true);
+ if (shap == null) return false;
+
+ PxFilterData filterData;
+ filterData.word0 = filterGroup; // word0 = own ID
+ filterData.word1 = filterMask; // word1 = ID mask to filter pairs that
+ // trigger a contact callback;
+
+ shap->SetSimulationFilterDataMut(&filterData);
+ shap->SetFlagMut(PxShapeFlag.SimulationShape, false);
+ shap->SetFlagMut(PxShapeFlag.TriggerShape, true);
+
+ PxTransform tf = new PxTransform();
+ tf.p = startPosition;
+ tf.q = startOrientation;
+ PxRigidDynamic* actor = shap != null ?
+ //PxCreateDynamic( physx_common::GetInst()->GetPhysics(), PxTransform(startPosition, startOrientation), *shap, 10.0f): null;
+ phys_PxCreateDynamic_1(PhysxCommon.Instance.GetPhysics(), &tf, shap, 10.0f) : null;
+
+ if (actor == null)
+ {
+ shap->ReleaseMut();
+ return false;
+ }
+ return true;
+ }
+
+ bool AddCapsuleTrigger(PxRigidDynamic* actor, float radius,
+ float height, UInt32 effectType,
+ UInt64 effectValue, TriggerCallBack.TRIGGER_FUNC enter,
+ TriggerCallBack.TRIGGER_FUNC leave)
+ {
+ PxCapsuleGeometry* capsule = CreateCapsuleGeo(radius, height, 0);
+ PxShape* shap = (PxShape*)CreateShap((PxGeometry*)capsule, true);
+ if (shap == null) return false;
+
+ return AddTriggerFromShape(actor, shap, effectType, effectValue, enter, leave);
+ }
+
+ bool AddTriggerFromShape(PxRigidDynamic* actor, PxShape* shape,
+ UInt32 effectType, UInt64 effectValue,
+ TriggerCallBack.TRIGGER_FUNC enter, TriggerCallBack.TRIGGER_FUNC leave)
+ {
+
+ if (shape == null) return false;
+
+ PxFilterData filterData;
+ filterData.word0 = (uint)PhysxCollisionTypes.PX_COL_TRIGGER_OBJ; // word0 = own ID
+ filterData.word1 = (uint)PxConstValue.MaskTriggerColldierWith; // word1 = ID mask to filter pairs that // trigger a contact callback;
+
+ shape->SetSimulationFilterDataMut(&filterData);
+ ((PxRigidActor*)actor)->AttachShapeMut(shape);
+ shape->SetFlagMut(PxShapeFlag.SimulationShape, false);
+ shape->SetFlagMut(PxShapeFlag.TriggerShape, true);
+ //trigger_mgr_.Push(std::make_shared( shape, effectType, effectValue, std::forward(enter), std::forward(leave)));
+ //需要注意 TriggerCallBack * 的释放 智能指针
+
+ TriggerCallBack tmp = new TriggerCallBack(shape, effectType, effectValue, enter, leave);
+ _worldUserData.trigger_mgr_.Push(&tmp);
+
+ //TODO 这一步删除 c++实现中 make智能指针了 这里会删除外部数据shape
+ //shape->ReleaseMut();
+ return true;
+ }
+
+ void DeleteTriggerCallBack(PxRigidActor* actor)
+ {
+ if (actor != null)
+ {
+ _worldUserData.trigger_mgr_.OnReleaseActor(actor);
+ }
+ }
+
+ void ResetTrigger(PxRigidActor* actor)
+ {
+ if (actor != null)
+ {
+ _worldUserData.trigger_mgr_.ResetTriggersInActor(actor);
+ }
+ }
+ /////////////////////////////////////////////////////////////////////////
+ PxRigidActor* AddCollisionToDynamicsWord(
+ int mass, void* userPointer, int userIndex, int userIndex2,
+ int shape_type, PxVec3* min_position, PxVec3* max_position,
+ PxVec3 startPosition, PxQuat startOrientation,
+ PxVec3* hero_position = null)
+ {
+
+ //这一部是错误的 api 有bug 不可以返回指针类型 必须在当前栈对象创建PxGemometry
+ PxGeometry* geometry = CreateGeometry(shape_type, min_position, max_position);
+
+ if (geometry == null)
+ {
+ return null;
+ }
+
+
+ PxVec3 center;
+ center.x = ((max_position->x + min_position->x) * 0.5f);
+ center.y = ((max_position->y + min_position->y) * 0.5f);
+ center.z = ((max_position->z + min_position->z) * 0.5f);
+ float fmax = float.MaxValue;
+ if (mass <= 0)
+ {
+ startPosition = center;
+ }
+
+ //PxSceneWriteLock scopedLock(*px_scene_);
+ _worldUserData.px_scene_->LockWriteMut(null, 0);
+ PxRigidActor* rigActor = null;
+ if (userIndex == (int)PhysxObjectType.PX_STATICOBJECT)
+ {
+ //TODO
+ //需要确认 继承关系 才可以类型强转
+ var identity = PxTransform_new_2(PxIDENTITY.PxIdentity);
+ var pxTran = new PxTransform { p = startPosition, q = startOrientation };
+ rigActor = (PxRigidActor*)phys_PxCreateStatic(
+ PhysxCommon.Instance.GetPhysics(), &pxTran, geometry,
+ PhysxCommon.Instance.GetDefaultMaterial(), &identity);
+ }
+ else
+ {
+ var identity = PxTransform_new_2(PxIDENTITY.PxIdentity);
+ var pxTran = new PxTransform { p = startPosition, q = startOrientation };
+ rigActor = (PxRigidActor*)phys_PxCreateDynamic(
+ PhysxCommon.Instance.GetPhysics(), &pxTran, geometry,
+ PhysxCommon.Instance.GetDefaultMaterial(), 10.0f, &identity);
+
+ if (rigActor == null)
+ {
+ //TODO 销毁api
+ //delete geometry;
+ return null;
+ }
+
+ //rigActor->SetActorFlag(PxActorFlag.DisableGravity, true);
+ PxActor_setActorFlag_mut((PxActor*)rigActor, PxActorFlag.DisableGravity, true);
+ //rigActor setAngularDamping(0);
+ PxRigidBody_setAngularDamping_mut((PxRigidBody*)rigActor, 0);
+ PxRigidBody_setLinearDamping_mut((PxRigidBody*)rigActor, 0);
+ PxRigidBody_setLinearDamping_mut((PxRigidBody*)rigActor, 0);
+ PxVec3 tmp = new Vector3(0, 0, 0);
+ ((PxRigidDynamic*)rigActor)->SetLinearVelocityMut(&tmp, false);
+
+ PxShape* treasureShape = null;
+ rigActor->GetShapes(&treasureShape, 1, 0);
+
+ treasureShape->SetContactOffsetMut(0.2f);
+ treasureShape->SetRestOffsetMut(0.01f);
+ if (shape_type == (int)PhysxShapeType.PX_CAPSULE)
+ {
+ //胶囊调整为沿z轴线缩放
+ //PxTransform relativePose( PxQuat(PxHalfPi, PxVec3(0, 1, 0)));
+ var quat = new PxQuat { w = PhysxCommon.PxHalfPi, x = 0, y = 1, z = 0 };
+ var relativePose = new PxTransform { p = startPosition, q = startOrientation };
+ treasureShape->SetLocalPoseMut(&relativePose);
+ }
+ }
+
+ if (rigActor == null)
+ {
+ //TODO:
+ //delete geometry;
+ return null;
+ }
+
+ // add collision mask
+ if (mass > 0)
+ {
+ if (userIndex == (int)PhysxObjectType.PX_MONSTERGROUP)
+ {
+ SetupFiltering(rigActor, (int)PhysxCollisionTypes.PX_COL_MONSTER_GROUP_OBJ, PxConstValue.MaskMonsterGroupColldierWith);
+ }
+ else if (userIndex == (int)PhysxObjectType.PX_TRIGGER)
+ {
+ SetupFiltering(rigActor, (int)PhysxCollisionTypes.PX_COL_TRIGGER_OBJ, PxConstValue.MaskTriggerColldierWith);
+ }
+ else if (userIndex == (int)PhysxObjectType.PX_MONSTER)
+ {
+ SetupFiltering(rigActor, (int)PhysxCollisionTypes.PX_COL_MONSTER, PxConstValue.MaskMonsterColldersWith);
+ }
+ else
+ {
+ SetupFiltering(rigActor, (int)PhysxCollisionTypes.PX_COL_AIR_SHIP, PxConstValue.MaskAirShipCollidesWith);
+ }
+ }
+ else
+ SetupFiltering(rigActor, (int)PhysxCollisionTypes.PX_COL_STATIC_OBJ, PxConstValue.MaskStaticCollidesWith);
+
+ _worldUserData._physxBase.AddPhysicsActors(rigActor);
+
+ if (mass > 0)
+ {
+ if ((PxRigidDynamic*)rigActor != null)
+ {
+ ((PxRigidBody*)rigActor)->SetMassMut(fmax);
+ ((PxRigidBody*)rigActor)->SetRigidBodyFlagMut(PxRigidBodyFlag.EnableCcd, true);
+ }
+ }
+ else
+ {
+ // rigActor->is()->setMass(mass);
+ }
+ //rigActor->userData = ClassType::CreateClassType(userPointer, (PhysxObjectType)userIndex);
+ _worldUserData.px_scene_->AddActorMut((PxActor*)rigActor, null);
+ _worldUserData.px_scene_->UnlockWriteMut();
+ return rigActor;
+ }
+
+ PxRigidActor* AddSpellCollison(
+ int mass, void* userPointer, int userIndex, int shape_type, int range,
+ PxVec3 startPosition, PxQuat startOrientation,
+ PxVec3* spell_position = null)
+ {
+ return default(PxRigidActor*);
+ }
+ PxRigidActor* AddFlyerCollison(
+ int mass, void* userPointer, int userIndex,
+ //Eternity::FlatBuffer::FlyerColliderData* collider_data,
+ void* collider_data, //用户数据
+ PxVec3 startPosition, PxQuat startOrientation)
+ {
+ //return default(PxRigidActor*);
+ return null;
+ }
+ public bool AddActorToDaynamicWorld(PxRigidActor* actor)
+ {
+ _worldUserData.px_scene_->AddActorMut((PxActor*)actor, null);
+ return true;
+ }
+ public void PickUpActor(PxRigidActor* actor)
+ {
+ _worldUserData.px_scene_->RemoveActorMut((PxActor*)actor, true);
+ }
+ int StepSimulation(/*KScene* secene,*/ UInt64 delta_time = 0)
+ {
+
+ //update 时间更新代码
+ UInt32 error = 0;
+ _worldUserData.px_scene_->SimulateMut(delta_time * 0.001f, null, null, 0, controlSimulation: true);
+ _worldUserData.px_scene_->FetchResultsMut(true, &error);
+
+ _worldUserData.trigger_mgr_.Update();
+ SyncUser();
+ return 1;
+ }
+
+
+ // world 类自身方法 start
+ public void OnInit()
+ {
+ if (filter_callback_ != null)
+ {
+ //delete filter_callback_;
+ //filter_callback_->dispose();
+ filter_callback_ = null;
+ }
+
+ MyOwnerFilterCallbackPhysx tmp = new MyOwnerFilterCallbackPhysx();
+
+ filter_callback_ = (PxSimulationFilterCallback*)&tmp;
+ _worldUserData.trigger_mgr_.Clear();
+
+ if (!PhysxCommon.Instance.InitPhyxsSDK())
+ {
+ //LogMgr::GetInstance()->Error(
+ // "[PhysxWorld]InitPhyxsSDK() cannot init physxSDK!!!!");
+ return;
+ }
+
+ _worldUserData = new WorldUserData();
+ CreatePxScene();
+ _worldUserData.is_init_world_ = true;
+ }
+
+ void CreatePxScene()
+ {
+ if (_worldUserData.px_scene_ != null)
+ {
+ _worldUserData.px_scene_->ReleaseMut();
+ _worldUserData.px_scene_ = null;
+ }
+
+ PxSceneDesc sceneDesc = PxSceneDesc_new(PxPhysics_getTolerancesScale(PhysxCommon.Instance.GetPhysics()));
+ sceneDesc.gravity = new Vector3(0.0f, 0.0f, 0.0f);
+ sceneDesc.cpuDispatcher = (PxCpuDispatcher*)PhysxCommon.Instance.GetCpuDispatcher();
+
+ delegate* callback;
+ callback = &(PxConstValue.PhysxWorldFilterShader);
+ sceneDesc.filterShader = (void*)(delegate* unmanaged[Cdecl])callback;
+
+ //sceneDesc.simulationEventCallback = this;
+ //TODO 根据自己理解实现 应该就是这么搞。。
+ delegate* tmpContact = &onContact;
+ _event_call_back->collision_callback = (delegate* unmanaged[Cdecl])tmpContact;
+ _event_call_back->collision_user_data = (void*)_event_call_back->collision_callback;
+
+ delegate* tmpTrigger = &onTrigger;
+ _event_call_back->trigger_callback = (delegate* unmanaged[Cdecl])tmpTrigger;
+ _event_call_back->trigger_user_data = (void*)_event_call_back->trigger_callback;
+
+ //其余方法没有重载 不需要设置回调函数
+ sceneDesc.simulationEventCallback = create_simulation_event_callbacks(_event_call_back);
+ //TODO: 这个需要关注下
+ //sceneDesc.simulationEventCallback->OnContactMut();
+
+ //TODO count该如何传参数?
+ fixed (PxTriggerPair* ptr = &_worldUserData.pairs)
+ {
+ sceneDesc.simulationEventCallback->OnTriggerMut(ptr, _worldUserData.count);
+ }
+
+ _worldUserData.px_scene_ = PxPhysics_createScene_mut(PhysxCommon.Instance.GetPhysics(), &sceneDesc);
+ if (_worldUserData.px_scene_ == null)
+ {
+ //LogMgr::GetInstance()->Error(
+ // "PhysxWorld::CreatePxScene() error:px_scene_ is null");
+ return;
+ }
+ }
+
+ void ChangePVDStatus(bool flag = false)
+ {
+ if (_worldUserData.px_scene_ == null) return;
+
+ PxPvdSceneClient* pvdClient = _worldUserData.px_scene_->GetScenePvdClientMut();
+ if (pvdClient != null)
+ {
+ pvdClient->SetScenePvdFlagMut(PxPvdSceneFlag.TransmitConstraints, flag);
+ pvdClient->SetScenePvdFlagMut(PxPvdSceneFlag.TransmitContacts, flag);
+ pvdClient->SetScenePvdFlagMut(PxPvdSceneFlag.TransmitScenequeries, flag);
+ }
+ }
+
+ PxScene* GetActiveScene() { return _worldUserData.px_scene_; }
+ bool IsInitWorld() { return _worldUserData.is_init_world_; }
+
+ void SyncUser()
+ {
+ UInt32 nbDynamics = _worldUserData.px_scene_->GetNbActors(PxActorTypeFlags.RigidDynamic);
+ if (nbDynamics < 1) { return; }
+
+ //std::vector actors(nbDynamics);
+ PxRigidActor*[] actors = new PxRigidActor*[nbDynamics];
+ fixed (PxRigidActor** actorPtr = actors)
+ {
+ _worldUserData.px_scene_->GetActors(PxActorTypeFlags.RigidDynamic, (PxActor**)actorPtr, nbDynamics, 0);
+ }
+
+ //PxSceneWriteLock scopedLock(*px_scene_);
+ //PxSceneWriteLock* sceneLock = PxSceneWriteLock_new_alloc(px_scene_, null, 0);
+ _worldUserData.px_scene_->LockWriteMut(null, 0);
+ for (UInt32 a = 0; a < nbDynamics; ++a)
+ {
+ //PxRigidActor* actor = actors[a]->is < PxRigidActor > ();
+ PxRigidActor* actor = actors[a];
+ if (actor == null)
+ {
+ continue;
+ }
+
+ // PxRigidDynamic* dynamic = static_cast(actor);
+ PxRigidDynamic* dynamic = (PxRigidDynamic*)(actor);
+ PxShape* shape;
+ actor->GetShapes(&shape, 1, 0);
+
+ PhysxObjectType type0 = PxConstValue.PhysxGetUserType(actor);
+ if (type0 == PhysxObjectType.PX_AIRSHIP ||
+ type0 == PhysxObjectType.PX_MONSTER ||
+ type0 == PhysxObjectType.PX_MONSTERGROUP ||
+ type0 == PhysxObjectType.PX_TRIGGER)
+ {
+ //业务代码
+ }
+ else if (type0 == PhysxObjectType.PX_SPELL)
+ {
+ //业务代码
+ }
+ }
+ _worldUserData.px_scene_->UnlockWriteMut();
+ //PxSceneWriteLock_delete(sceneLock);
+ }
+
+ void DeleteCollisionWorld()
+ {
+ if (!_worldUserData.is_init_world_ || _worldUserData.px_scene_ == null) return;
+ UInt32 error;
+ //px_scene_->simulate(STEP_SECOND);
+ //px_scene_->SimulateMut(10);
+ //px_scene_->fetchResults(true, &error);
+ //TODO 10 是为了语法不报错 需要填写实际业务代码实际STEP_SECOND
+ _worldUserData.px_scene_->SimulateMut(10, null, null, 0, controlSimulation: true);
+ _worldUserData.px_scene_->FetchResultsMut(true, &error);
+ //PxScene_fetchResults_mut(px_scene_, true, &error);
+
+ _worldUserData.trigger_mgr_.Clear();
+
+
+ foreach (PxRigidActor* it in _worldUserData._physxBase._physicsActors)
+ {
+ if ((it != null) && (it->userData != null))
+ {
+ //TODO
+ //释放用户数据
+ it->userData = null;
+ }
+ }
+
+ _worldUserData._physxBase.RemoveAllActor();
+
+ if (filter_callback_ != null)
+ {
+ //TODO:
+ //delete filter_callback_;
+ filter_callback_ = null;
+ }
+
+ //px_scene_->release();
+ _worldUserData.px_scene_->ReleaseMut();
+ _worldUserData.px_scene_ = null;
+ _worldUserData.is_init_world_ = false;
+ }
+
+ void RemoveAirShipOrSpell(PxRigidActor* obj)
+ {
+ if (obj != null)
+ {
+ DeleteTriggerCallBack(obj);
+
+
+ UInt32 error;
+ _worldUserData.px_scene_->SimulateMut(10, null, null, 0, controlSimulation: true);
+ _worldUserData.px_scene_->FetchResultsMut(true, &error);
+
+ //PxSceneWriteLock scopedLock(*px_scene_);
+ PxSceneWriteLock* sceneLock = PxSceneWriteLock_new_alloc(_worldUserData.px_scene_, null, 0);
+ if (obj->userData != null)
+ {
+ //delete obj->userData;
+ //TODO 释放用户数据
+ obj->userData = null;
+ }
+ _worldUserData._physxBase.RemoveActor(obj);
+ PxSceneWriteLock_delete(sceneLock);
+ }
+ }
+
+ void SetupFiltering(PxRigidActor* actor, UInt32 filterGroup,
+ UInt32 filterMask)
+ {
+ _worldUserData.px_scene_->LockWriteMut(null, 0);
+ PxFilterData filterData = default;
+ filterData.word0 = filterGroup; // word0 = own ID
+ filterData.word1 = filterMask; // word1 = ID mask to filter pairs that
+ filterData.word3 |= (1 << 29); // trigger a contact callback;
+
+
+ UInt32 numShapes = actor->GetNbShapes();
+ PxShape*[] shapes = new PxShape*[numShapes];
+ fixed (PxShape** p = shapes)
+ {
+ actor->GetShapes(p, numShapes, 0);
+ for (UInt32 i = 0; i < numShapes; i++)
+ {
+ PxShape* shape = shapes[i];
+ //shape->setSimulationFilterData(filterData);
+ shape->SetSimulationFilterDataMut(&filterData);
+ }
+ }
+
+ _worldUserData.px_scene_->UnlockWriteMut();
+ }
+ // world 类自身方法 end
+
+
+
+ //工具方法 start 既然是工具方法是否可以修改为static 放到common?
+ bool RayTest(
+ PxRigidActor* actor, PxVec3 start_position,
+ PxVec3 normalizedDir, int mask, int group,
+ PhysxCollisionHitResult* hit_result,
+ float distance = float.MaxValue)
+ {
+
+ if (actor == null) return false;
+
+ PxRaycastHit* rayHit= stackalloc PxRaycastHit[1];
+
+ PxQueryFilterData filterData;
+ filterData.flags = (PxQueryFlags)mask;
+
+
+ PhysxWorldRaycastResultCb_1 CB = new PhysxWorldRaycastResultCb_1(&start_position, &normalizedDir);
+ CB.callback = &(PhysxWorldRaycastResultCb_1.preFilter);
+
+ PxQueryFilterCallback* fliterCallBack = create_raycast_filter_callback_func(
+ (delegate* unmanaged[Cdecl])(CB.callback), (void*)&CB.userData);
+ //根据原意图推测为
+ bool hasBlock = PxSceneQueryExt_raycastSingle(_worldUserData.px_scene_, &start_position, &normalizedDir, distance, PxHitFlags.Default,rayHit, &filterData, fliterCallBack, null);
+
+
+ PxQueryFilterCallback_delete(fliterCallBack);
+ if (hasBlock)
+ {
+ hit_result->hit_type = PxConstValue.PhysxGetUserType(rayHit->actor);
+ hit_result->pos = rayHit->position;
+ PxVec3 disPos = start_position.Multiply(&hit_result->pos);
+ float length = disPos.Magnitude();
+ //TODO:
+ //hit_result->user_ptr = rayHit.block.actor->userData;
+ hit_result->shape_ptr = rayHit->shape;
+ hit_result->actor_ptr = rayHit->actor;
+ return true;
+ }
+ return false;
+ }
+
+ bool SweepCheck(PxGeometry* geometry,
+ PxTransform* shapePose,
+ PxVec3* unitDir,
+ PhysxCollisionHitResult* hit_result)
+ {
+ if (_worldUserData.px_scene_ == null) return false;
+
+ //PxSweepBuffer sweepHit =default;
+ PxSweepHit sweepHit = default(PxSweepHit);
+ PxQueryFilterData filterData = default;
+ filterData.flags = PxQueryFlags.Static;
+ float distance = 0.1f;
+
+ bool hasHit = PxSceneQueryExt_sweepSingle(_worldUserData.px_scene_, geometry, shapePose, unitDir, distance, PxHitFlags.Default, &sweepHit, &filterData, null, null, 0.0f);
+ if (hasHit = true)
+ {
+ //hit_result->hit_type = PxConstValue.PhysxGetUserType(sweepHit.actor);
+ //// hit_result.pos = sweepHit.block.position;
+ //hit_result->user_ptr = sweepHit.actor->userData;
+ //hit_result->shape_ptr = sweepHit.shape;
+ //hit_result->actor_ptr = sweepHit.actor;
+ return true;
+ }
+ //PxSceneQueryExt_sweepMultiple
+ return false;
+ }
+
+ bool OverlapCheck(PxGeometry* geometry,
+ PxTransform* shapePose,
+ List hero_list)
+ {
+ if (_worldUserData.px_scene_ == null) return false;
+
+ PxOverlapHit* hitBuffer = stackalloc PxOverlapHit[128];
+
+ PxQueryFilterData filterData;
+ filterData.flags = PxQueryFlags.Dynamic;
+
+ bool hasOverLap = PxSceneQueryExt_overlapAny(_worldUserData.px_scene_, geometry, shapePose, hitBuffer, null,null);
+
+ if (hasOverLap )
+ {
+ return true;
+ }
+
+ return false;
+ }
+
+ bool RayCastStatic(
+ PxVec3 start_pos, PxVec3 normalized_dir,
+ float distance = float.MaxValue)
+ {
+ //PxRaycastBuffer rayHits = default;
+ PxRaycastHit rayHit = default;
+ PxQueryFilterData filterData;
+ filterData.flags = PxQueryFlags.Static;
+
+ //注意normalized_dir 需要经过 标准向量化
+ bool hasblock = PxSceneQueryExt_raycastSingle(_worldUserData.px_scene_, &start_pos, &normalized_dir, distance, PxHitFlags.Default, &rayHit, &filterData, null, null);
+
+ if (hasblock == true)
+ {
+ return true;
+ }
+ return false;
+ }
+
+ void RayCastDynamic(PxVec3 start_pos, PxVec3 normalized_dir,
+ float distance, List* hero_list)
+ {
+
+ PxRaycastHit* rayHit = stackalloc PxRaycastHit[128];
+ PxQueryFilterData filterData = default;
+ filterData.flags = PxQueryFlags.Dynamic;
+
+
+ //如果查询数据超过128 最多返回128 经测试不会崩溃
+ int buffSize = PxSceneQueryExt_raycastMultiple(_worldUserData.px_scene_ , & start_pos, &normalized_dir, distance, PxHitFlags.Default, rayHit, 128 , null, &filterData, null ,null);
+
+ for (int i = 0; i < buffSize; i++)
+ {
+ PxRigidActor* tmp = rayHit[i].actor;
+ PhysxObjectType type = PxConstValue.PhysxGetUserType(tmp);
+ if (type == PhysxObjectType.PX_AIRSHIP ||
+ type == PhysxObjectType.PX_MONSTER)
+ {
+ }
+ }
+ }
+
+ //工具方法 end
+
+
+ // 静态回调方法
+ public static void onTrigger(void* userData, PxTriggerPair* pairs, UInt32 count)
+ {
+ if (userData == null) { return; }
+ WorldUserData* _worldUserData = (WorldUserData*)userData;
+ for (UInt32 i = 0; i < count; i++)
+ {
+ PxTriggerPair* tp = &pairs[i];
+ // ignore pairs when shapes have been deleted
+ if ((tp->flags & (PxTriggerPairFlags.RemovedShapeTrigger |
+ PxTriggerPairFlags.RemovedShapeOther)) != 0)
+ {
+ continue;
+ }
+
+ if (tp->otherActor == null || tp->triggerActor == null)
+ {
+ continue;
+ }
+
+ //TriggerCallBackPtr cb_ptr = trigger_mgr_.FindTrigger(tp->triggerShape);
+ //记得释放指针 TriggerCallBackPtr是智能指针定义
+ TriggerCallBack* cb_ptr = _worldUserData->trigger_mgr_.FindTrigger(tp->triggerShape);
+
+ if (cb_ptr == null)
+ {
+ continue;
+ }
+
+ if ((tp->status & PxPairFlag.NotifyTouchFound) != 0)
+ {
+ cb_ptr->OnEnter((PxRigidActor*)tp->triggerActor, (PxRigidActor*)tp->otherActor, cb_ptr->effectType_);
+ }
+ else if ((tp->status & PxPairFlag.NotifyTouchLost) != 0)
+ {
+ cb_ptr->OnLeave((PxRigidActor*)tp->triggerActor, (PxRigidActor*)tp->otherActor, cb_ptr->effectType_);
+ }
+ }
+ }
+
+ public static void onContact(void* userData, PxContactPairHeader* pairHeader, PxContactPair* pairs, UInt32 nbPairs)
+ {
+
+
+ if (userData == null) { return; }
+ WorldUserData* _worldUserData = (WorldUserData*)userData;
+
+ //List contactPoints;
+ IntPtr[] contactPoints = new IntPtr[128];
+
+ for (UInt32 i = 0; i < nbPairs; i++)
+ {
+ PxContactPair* cp = &pairs[i];
+ //TODO:这部分转化需要测试
+ PhysxObjectType type0 = PxConstValue.PhysxGetUserType((PxRigidActor*)pairHeader->actors[0]);
+ PhysxObjectType type1 = PxConstValue.PhysxGetUserType((PxRigidActor*)pairHeader->actors[1]);
+
+ if (((int)cp->events & (int)(PxPairFlag.NotifyTouchFound |
+ PxPairFlag.NotifyTouchCcd)) != 0)
+ {
+ UInt32 contactCount = cp->contactCount;
+ if (contactCount < 1) continue;
+ //contactPoints.Capacity(contactCount);
+ //contactPoints.Re
+ Array.Resize(ref contactPoints, (int)contactCount);
+ //structgen_pad0 函数地址
+ fixed (IntPtr* contactPointsPtr = contactPoints)
+ {
+ //TODO: 这部分代码需要验证
+ PxContactPairPoint* conPtr0 = (PxContactPairPoint*)contactPointsPtr->ToPointer();
+ cp->ExtractContacts(conPtr0, contactCount);
+ }
+
+ for (UInt32 j = 0; j < contactCount; j++)
+ {
+ if ((type0 == PhysxObjectType.PX_AIRSHIP &&
+ type1 == PhysxObjectType.PX_STATICOBJECT) ||
+ (type1 == PhysxObjectType.PX_AIRSHIP &&
+ type0 == PhysxObjectType.PX_STATICOBJECT))
+ {
+ PxRigidDynamic* dynamic = null;
+ //KHero* hero = null;
+ void* hero = null; // 用户数据
+ if (type0 == PhysxObjectType.PX_AIRSHIP)
+ {
+ //dynamic = Unsafe.AsRef(ptr);
+ dynamic = (PxRigidDynamic*)(pairHeader->actors[0]);
+ }
+ else
+ {
+ //dynamic = Unsafe.AsRef(ptr);
+ dynamic = (PxRigidDynamic*)(pairHeader->actors[0]);
+ }
+ if (dynamic != null)
+ {
+ //hero = static_cast(dynamic->userData)->is < KHero *> ();
+ //if (!hero || hero->hit_wall_) continue;
+
+ //UInt64 now = KG_GetTickCount();
+ //TODO:需要根据实际业务完善
+ UInt64 now = 100;
+ if (now - _worldUserData->test_sync_time_ <= 1000) continue;
+ if (type1 != PhysxObjectType.PX_STATICOBJECT) continue;
+
+ //auto player = hero->GetOwnerPlayer();
+ //if (!player) continue;
+
+ //PxRigidStatic* static_actor = static_cast(pairHeader.actors[1]);
+ PxRigidStatic* static_actor = (PxRigidStatic*)(pairHeader->actors[1]);
+
+ UInt32 num = ((PxRigidActor*)(static_actor))->GetNbShapes();
+ PxShape*[] shapes = new PxShape*[num];
+ fixed (PxShape** p = shapes)
+ {
+ UInt32 nbShapes = ((PxRigidActor*)(static_actor))->GetShapes(p, num, 0);
+ if (num != nbShapes) continue;
+ }
+
+ //将碰撞盒子发给客户端显示
+ //List geometry_list;
+ for (UInt32 k = 0; k < num; k++)
+ {
+ //if (shapes[k]->GetGeometryType() != PxGeometryType.Box)
+ // continue;
+
+ //必须这么写 和system GetType重名了 总是会调用System GetType
+ var geoType = NativeMethodsGroupingExtensions.GetType(ref *shapes[k]->GetGeometry());
+ if (geoType != PxGeometryType.Box)
+ continue;
+
+ PxVec3 st_pos = ((PxRigidActor*)(static_actor))->GetGlobalPose().p;
+ PxQuat st_quat = ((PxRigidActor*)(static_actor))->GetGlobalPose().q;
+ //GeometryInfo info;
+
+ if (shapes[k]->GetGeometry() != null)
+ {
+ PxBoxGeometry* box_geometry = (PxBoxGeometry*)(shapes[k]->GetGeometry());
+ //业务代码
+ }
+ }
+ _worldUserData->test_sync_time_ = now;
+
+ }
+ continue;
+ }
+ else if ((type0 == PhysxObjectType.PX_AIRSHIP ||
+ type0 == PhysxObjectType.PX_MONSTER) &&
+ type1 == PhysxObjectType.PX_SPELL)
+ {
+ //业务代码
+
+ }
+ else if (type0 == PhysxObjectType.PX_SPELL &&
+ (type1 == PhysxObjectType.PX_AIRSHIP ||
+ type1 == PhysxObjectType.PX_MONSTER))
+ {
+ //业务代码
+ }
+ else if (type0 == PhysxObjectType.PX_SPELL &&
+ type1 == PhysxObjectType.PX_STATICOBJECT)
+ {
+ //业务代码
+
+ }
+ else if (type0 == PhysxObjectType.PX_STATICOBJECT &&
+ type1 == PhysxObjectType.PX_SPELL)
+ {
+ //业务代码
+
+ }
+ }
+ }
+ else if (((int)cp->events & (int)PxPairFlag.NotifyTouchLost) != 0)
+ {
+ if ((type0 == PhysxObjectType.PX_AIRSHIP &&
+ type1 == PhysxObjectType.PX_STATICOBJECT) ||
+ (type1 == PhysxObjectType.PX_AIRSHIP &&
+ type0 == PhysxObjectType.PX_STATICOBJECT))
+ {
+ PxRigidDynamic* dynamic = null;
+ //KHero* hero = null;
+ void* hero = null; //业务代码
+ if (type0 == PhysxObjectType.PX_AIRSHIP)
+ {
+ dynamic = (PxRigidDynamic*)(pairHeader->actors[0]);
+
+ }
+ else
+ {
+ dynamic = (PxRigidDynamic*)(pairHeader->actors[1]);
+ }
+ if (dynamic != null)
+ {
+ if (dynamic->userData != null)
+ {
+ // hero = static_cast(dynamic->userData)->is < KHero *> ();
+ }
+ if (hero == null)
+ {
+ // hero->hit_wall_ = false;
+ }
+ }
+ }
+ }
+ }
+
+ }
+ public static void onConstraintBreak(void* userData, PxConstraintInfo* info, UInt32 flag) { }
+ public static void onWake(void* userData, PxActor** actors, UInt32 count) { }
+ public static void onSleep(void* userData, PxActor** actors, UInt32 count) { }
+ public static void onAdvance(void* userData, PxRigidBody** ppRigid, PxTransform* pTrans, UInt32 nb) { }
+
+ }
+}
diff --git a/PhysxWorldManager.cs b/PhysxWorldManager.cs
new file mode 100644
index 0000000..54de05c
--- /dev/null
+++ b/PhysxWorldManager.cs
@@ -0,0 +1,85 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using MagicPhysX; // for enable Extension Methods.
+using MagicPhysX.Toolkit;
+using PhysX;
+using static MagicPhysX.NativeMethods; // recommend to use C API.
+
+namespace Physx
+{
+ public unsafe struct PhysxWorldManager
+ {
+ public PhysxWorldManager()
+ {
+ //TODO 后续根据实际业务来写
+ //stamp_ = KG_GetTimeStamp();
+ stamp_ = 0;
+ physx_world_manager_.Clear();
+ }
+ //virtual ~PhysxWorldManager();
+ bool AddPhysxWorld(UInt64 area_id)
+ {
+ var itl = physx_world_manager_.ContainsKey(area_id);
+ if (itl = true)
+ return false;
+ var physx_world = new PhysxWorld();
+ // physx_world
+ if (physx_world.Equals(default(PhysxWorld)) == false)
+ return false;
+
+ physx_world.OnInit();
+ //physx_world_manager_.Add< area_id, physx_world});
+ physx_world_manager_.Add(area_id, (nint)(&physx_world));
+ return true;
+
+ }
+ PhysxWorld* GetPhysxWorld(UInt64 area_id)
+ {
+ nint ret = 0;
+ if (physx_world_manager_.TryGetValue(area_id, out ret))
+ {
+ return (PhysxWorld*)(ret.ToPointer());
+ }
+ return null;
+ }
+ bool AddActorToPhysxWorld(UInt64 area_id, PxRigidActor* obj)
+ {
+ var physx_world = GetPhysxWorld(area_id);
+ if (physx_world == null)
+ {
+ return false;
+ }
+ physx_world->AddActorToDaynamicWorld(obj);
+ return true;
+ }
+ bool PickUpActorFromPhysxWorld(UInt64 area_id, PxRigidActor* obj)
+ {
+ var physx_world = GetPhysxWorld(area_id);
+ if (physx_world == null)
+ {
+ return false;
+ }
+ physx_world->PickUpActor(obj);
+ return true;
+ }
+ //暂不实现 业务代码
+ //bool SwitchPhysxWorld(KScene* scene, UInt64 cur_area_id, UInt64 to_area_id, KHero* hero)
+ //{
+
+ //}
+ //bool UpdatePhysxWorld(KScene* secene)
+ //{
+ // return false;
+ //}
+ bool HasPhysxWorld()
+ {
+ return physx_world_manager_.Count() > 0;
+ }
+
+ Dictionary physx_world_manager_;
+ UInt64 stamp_;
+ }
+}
diff --git a/SpaceNation.Core.Physx.csproj b/SpaceNation.Core.Physx.csproj
new file mode 100644
index 0000000..71aa781
--- /dev/null
+++ b/SpaceNation.Core.Physx.csproj
@@ -0,0 +1,21 @@
+
+
+
+ net7.0
+ enable
+ enable
+ True
+
+
+
+
+
+
+ C:\Users\Win11\.nuget\packages\magicphysx\1.0.0\lib\net6.0\MagicPhysX.dll
+
+
+ CPhysxlib\MagicPhysX.Toolkit.dll
+
+
+
+
diff --git a/bin/Debug/net7.0/MagicPhysX.Toolkit.dll b/bin/Debug/net7.0/MagicPhysX.Toolkit.dll
new file mode 100644
index 0000000..2639360
Binary files /dev/null and b/bin/Debug/net7.0/MagicPhysX.Toolkit.dll differ
diff --git a/bin/Debug/net7.0/MagicPhysX.Toolkit.xml b/bin/Debug/net7.0/MagicPhysX.Toolkit.xml
new file mode 100644
index 0000000..037f9f3
--- /dev/null
+++ b/bin/Debug/net7.0/MagicPhysX.Toolkit.xml
@@ -0,0 +1,427 @@
+
+
+
+ MagicPhysX.Toolkit
+
+
+
+
+ A box-shaped primitive collider.
+
+
+
+
+ The center of the box, measured in the object's local space.
+
+
+
+
+ The size of the box, measured in the object's local space.
+
+
+
+
+ A capsule-shaped primitive collider.
+
+
+
+
+ The center of the capsule, measured in the object's local space.
+
+
+
+
+ The radius of the sphere, measured in the object's local space.
+
+
+
+
+ The height of the capsule measured in the object's local space.
+
+
+
+
+ A base class of all colliders.
+
+
+
+
+ The center of the plane in the object's local space.
+
+
+
+
+ A sphere-shaped primitive collider.
+
+
+
+
+ The center of the sphere in the object's local space.
+
+
+
+
+ The radius of the sphere measured in the object's local space.
+
+
+
+
+ The collision detection mode constants used for Rigidbody.collisionDetectionMode.
+
+
+
+
+ Continuous collision detection is off for this Rigidbody.
+
+
+
+
+ Continuous collision detection is on for colliding with static mesh geometry.
+
+
+
+
+ Continuous collision detection is on for colliding with static and dynamic geometry.
+
+
+
+
+ Speculative continuous collision detection is on for static and dynamic geometries
+
+
+
+
+ Use ForceMode to specify how to apply a force using Rigidbody.AddForce or ArticulationBody.AddForce.
+
+
+
+
+ Add a continuous force to the rigidbody, using its mass.
+
+
+
+
+ Add an instant force impulse to the rigidbody, using its mass.
+
+
+
+
+ Add an instant velocity change to the rigidbody, ignoring its mass.
+
+
+
+
+ Add a continuous acceleration to the rigidbody, ignoring its mass.
+
+
+
+
+ Receive collision and trigger events from all contact pairs except kinematic-kinematic and kinematic-static pairs.
+
+
+
+
+ Receive collision and trigger events from kinematic-kinematic contact pairs.
+
+
+
+
+ Receive collision and trigger events from kinematic-static contact pairs.
+
+
+
+
+ Receive collision and trigger events from all contact pairs.
+
+
+
+
+ A basic strong friction algorithm which typically leads to the most stable results at low solver iteration counts. This method uses only up to four scalar solver constraints per pair of touching objects.
+
+
+
+
+ A simplification of the Coulomb friction model, in which the friction for a given point of contact is applied in the alternating tangent directions of the contact’s normal. This requires more solver iterations than patch friction but is not as accurate as the two-directional model. For Articulation bodies to work with this friction type, set the Solver Type to Temporal Gauss Seidel.
+
+
+
+
+ Like the one-directional model, but applies friction in both tangent directions simultaneously. This requires more solver iterations but is more accurate. More expensive than patch friction for scenarios with many contact points because it is applied at every contact point. For Articulation bodies to work with this friction type, set the Solver Type to Temporal Gauss Seidel.
+
+
+
+
+ The default PhysX solver.
+
+
+
+
+ This solver offers a better convergence and a better handling of high-mass ratios, minimizes energy introduced when correcting penetrations and improves the resistance of joints
+ to overstretch. It usually helps when you experience some erratic behavior during simulation with the default solver.
+
+
+
+
+ Control of an object's position through physics simulation.
+
+
+
+
+ The velocity vector of the rigidbody. It represents the rate of change of Rigidbody position.
+
+
+
+
+ The angular velocity vector of the rigidbody measured in radians per second.
+
+
+
+
+ The drag of the object.
+
+
+
+
+ The angular drag of the object.
+
+
+
+
+ The mass of the rigidbody.
+
+
+
+
+ Controls whether gravity affects this rigidbody.
+
+
+
+
+ Maximum velocity of a rigidbody when moving out of penetrating state.
+
+
+
+
+ Controls whether physics affects the rigidbody.
+
+
+
+
+ Controls whether physics will change the rotation of the object.
+
+
+
+
+ Controls which degrees of freedom are allowed for the simulation of this Rigidbody.
+
+
+
+
+ The Rigidbody's collision detection mode.
+
+
+
+
+ The center of mass relative to the transform's origin.
+
+
+
+
+ The center of mass of the rigidbody in world space (Read Only).
+
+
+
+
+ The inertia tensor of this body, defined as a diagonal matrix in a reference frame positioned at this body's center of mass and rotated by Rigidbody.inertiaTensorRotation.
+
+
+
+
+ Should collision detection be enabled? (By default always enabled).
+
+
+
+
+ The position of the rigidbody.
+
+
+
+
+ The rotation of the Rigidbody.
+
+
+
+
+ The solverIterations determines how accurately Rigidbody joints and collision contacts are resolved. Overrides Physics.defaultSolverIterations. Must be positive.
+
+
+
+
+ The mass-normalized energy threshold, below which objects start going to sleep.
+
+
+
+
+ The maximimum angular velocity of the rigidbody measured in radians per second. (Default 7) range { 0, infinity }.
+
+
+
+
+ The solverVelocityIterations affects how how accurately Rigidbody joints and collision contacts are resolved. Overrides Physics.defaultSolverVelocityIterations. Must be positive.
+
+
+
+
+ Sets the mass based on the attached colliders assuming a constant density.
+
+
+
+
+
+ Forces a rigidbody to sleep at least one frame.
+
+
+
+
+ Is the rigidbody sleeping?
+
+
+
+
+ Forces a rigidbody to wake up.
+
+
+
+
+ Reset the center of mass of the rigidbody.
+
+
+
+
+ Reset the inertia tensor value and rotation.
+
+
+
+
+ Adds a force to the Rigidbody.
+
+ Force vector in world coordinates.
+ Type of force to apply.
+
+
+
+ Adds a force to the Rigidbody.
+
+ Force vector in world coordinates.
+
+
+
+ Adds a force to the rigidbody relative to its coordinate system.
+
+ Force vector in local coordinates.
+ Type of force to apply.
+
+
+
+ Adds a force to the rigidbody relative to its coordinate system.
+
+ Force vector in local coordinates.
+
+
+
+ Adds a torque to the rigidbody.
+
+ Torque vector in world coordinates.
+ The type of torque to apply.
+
+
+
+ Adds a torque to the rigidbody.
+
+ Torque vector in world coordinates.
+
+
+
+ Adds a torque to the rigidbody relative to its coordinate system.
+
+ Torque vector in local coordinates.
+ Type of force to apply.
+
+
+
+ Adds a torque to the rigidbody relative to its coordinate system.
+
+ Torque vector in local coordinates.
+
+
+
+ Applies force at position. As a result this will apply a torque and force on the object.
+
+ Force vector in world coordinates.
+ Position in world coordinates.
+ Type of force to apply.
+
+
+
+ Applies force at position. As a result this will apply a torque and force on the object.
+
+ Force vector in world coordinates.
+ Position in world coordinates.
+
+
+
+ Use these flags to constrain motion of Rigidbodies.
+
+
+
+
+ No constraints.
+
+
+
+
+ Freeze motion along the X-axis.
+
+
+
+
+ Freeze motion along the Y-axis.
+
+
+
+
+ Freeze motion along the Z-axis.
+
+
+
+
+ Freeze motion along all axes.
+
+
+
+
+ Freeze rotation along the X-axis.
+
+
+
+
+ Freeze rotation along the Y-axis.
+
+
+
+
+ Freeze rotation along the Z-axis.
+
+
+
+
+ Freeze rotation along all axes.
+
+
+
+
+ Freeze rotation and motion along all axes.
+
+
+
+
diff --git a/bin/Debug/net7.0/MagicPhysX.dll b/bin/Debug/net7.0/MagicPhysX.dll
new file mode 100644
index 0000000..846b1af
Binary files /dev/null and b/bin/Debug/net7.0/MagicPhysX.dll differ
diff --git a/bin/Debug/net7.0/MagicPhysX.xml b/bin/Debug/net7.0/MagicPhysX.xml
new file mode 100644
index 0000000..7a82349
--- /dev/null
+++ b/bin/Debug/net7.0/MagicPhysX.xml
@@ -0,0 +1,8783 @@
+
+
+
+ MagicPhysX
+
+
+
+ Destroy the returned callback object using PxQueryFilterCallback_delete.
+
+
+ Destroy the returned callback object using PxQueryFilterCallback_delete.
+
+
+ New interface to handle simulation events, replacing create_contact_callback.
+
+
+ Override the default filter shader in the scene with a custom function. If call_default_filter_shader_first is set to true, this will first call the built-in PhysX filter (that matches Physx 2.8 behavior) before your callback.
+
+
+ (hidden) Should only be used in testing etc! This isn't generated as we don't generate op functions.
+
+
+ Allocates size bytes of memory, which must be 16-byte aligned. This method should never return NULL. If you run out of memory, then you should terminate the app or take some other appropriate action. Threading: This function should be thread safe as it can be called in the context of the user thread and physics processing thread(s). The allocated block of memory.
+
+
+ Frees memory previously allocated by allocate(). Threading: This function should be thread safe as it can be called in the context of the user thread and physics processing thread(s).
+
+
+ Destroys the instance it is called on. The operation will fail, if there are still modules referencing the foundation object. Release all dependent modules prior to calling this method.
+
+
+ retrieves error callback
+
+
+ Sets mask of errors to report.
+
+
+ Retrieves mask of errors to be reported.
+
+
+ Retrieves the allocator this object was created with.
+
+
+ Retrieves if allocation names are being passed to allocator callback.
+
+
+ Set if allocation names are being passed to allocator callback. Enabled by default in debug and checked build, disabled by default in profile and release build.
+
+
+ Creates an instance of the foundation class The foundation class is needed to initialize higher level SDKs. There may be only one instance per process. Calling this method after an instance has been created already will result in an error message and NULL will be returned. Foundation instance on success, NULL if operation failed
+
+
+ Get the callback that will be used for all profiling.
+
+
+ Set the callback that will be used for all profiling.
+
+
+ Get the allocator callback
+
+
+ Get the broadcasting allocator callback
+
+
+ Get the error callback
+
+
+ Get the broadcasting error callback
+
+
+ Get the warn once timestamp
+
+
+ Decrement the ref count of PxFoundation
+
+
+ Increment the ref count of PxFoundation
+
+
+ Sets the bytes of the provided buffer to zero. Pointer to memory block (same as input)
+
+
+ Sets the bytes of the provided buffer to the specified value. Pointer to memory block (same as input)
+
+
+ Copies the bytes of one memory block to another. The memory blocks must not overlap. Use [`PxMemMove`] if memory blocks overlap. Pointer to destination memory block
+
+
+ Copies the bytes of one memory block to another. The memory blocks can overlap. Use [`PxMemCopy`] if memory blocks do not overlap. Pointer to destination memory block
+
+
+ Mark a specified amount of memory with 0xcd pattern. This is used to check that the meta data definition for serialized classes is complete in checked builds.
+
+
+ Return the index of the highest set bit. Undefined for zero arg.
+
+
+ Return the index of the highest set bit. Undefined for zero arg.
+
+
+ Returns the index of the highest set bit. Returns 32 for v=0.
+
+
+ Prefetch aligned 64B x86, 32b ARM around
+
+
+ Prefetch bytes starting at
+
+
+ Return the index of the highest set bit. Not valid for zero arg.
+
+
+ Return the index of the highest set bit. Not valid for zero arg.
+
+
+ default constructor leaves data uninitialized.
+
+
+ zero constructor.
+
+
+ Assigns scalar parameter to all elements. Useful to initialize to zero or one.
+
+
+ Initializes from 3 scalar parameters.
+
+
+ tests for exact zero vector
+
+
+ returns true if all 3 elems of the vector are finite (not NAN or INF, etc.)
+
+
+ is normalized - used by API parameter validation
+
+
+ returns the squared magnitude Avoids calling PxSqrt()!
+
+
+ returns the magnitude
+
+
+ returns the scalar product of this and other.
+
+
+ cross product
+
+
+ returns a unit vector
+
+
+ normalizes the vector in place
+
+
+ normalizes the vector in place. Does nothing if vector magnitude is under PX_NORMALIZATION_EPSILON. Returns vector magnitude if >= PX_NORMALIZATION_EPSILON and 0.0f otherwise.
+
+
+ normalizes the vector in place. Asserts if vector magnitude is under PX_NORMALIZATION_EPSILON. returns vector magnitude.
+
+
+ a[i] * b[i], for all i.
+
+
+ element-wise minimum
+
+
+ returns MIN(x, y, z);
+
+
+ element-wise maximum
+
+
+ returns MAX(x, y, z);
+
+
+ returns absolute values of components;
+
+
+ Default constructor, does not do any initialization.
+
+
+ identity constructor
+
+
+ Constructor from a scalar: sets the real part w to the scalar value, and the imaginary parts (x,y,z) to zero
+
+
+ Constructor. Take note of the order of the elements!
+
+
+ Creates from angle-axis representation. Axis must be normalized! Angle is in radians! Unit: Radians
+
+
+ Creates from orientation matrix.
+
+
+ returns true if quat is identity
+
+
+ returns true if all elements are finite (not NAN or INF, etc.)
+
+
+ returns true if finite and magnitude is close to unit
+
+
+ returns true if finite and magnitude is reasonably close to unit to allow for some accumulation of error vs isValid
+
+
+ converts this quaternion to angle-axis representation
+
+
+ Gets the angle between this quat and the identity quaternion. Unit: Radians
+
+
+ Gets the angle between this quat and the argument Unit: Radians
+
+
+ This is the squared 4D vector length, should be 1 for unit quaternions.
+
+
+ returns the scalar product of this and other.
+
+
+ maps to the closest unit quaternion.
+
+
+ brief computes rotation of x-axis
+
+
+ brief computes rotation of y-axis
+
+
+ brief computes rotation of z-axis
+
+
+ rotates passed vec by this (assumed unitary)
+
+
+ inverse rotates passed vec by this (assumed unitary)
+
+
+ Transform transform to parent (returns compound transform: first src, then *this)
+
+
+ returns true if finite and q is a unit quaternion
+
+
+ returns true if finite and quat magnitude is reasonably close to unit to allow for some accumulation of error vs isValid
+
+
+ returns true if all elems are finite (not NAN or INF, etc.)
+
+
+ Transform transform from parent (returns compound transform: first src, then this->inverse)
+
+
+ return a normalized transform (i.e. one in which the quaternion has unit magnitude)
+
+
+ Default constructor
+
+
+ identity constructor
+
+
+ zero constructor
+
+
+ Construct from three base vectors
+
+
+ constructor from a scalar, which generates a multiple of the identity matrix
+
+
+ Construct from float[9]
+
+
+ Construct from a quaternion
+
+
+ Construct from diagonal, off-diagonals are zero.
+
+
+ Computes the outer product of two vectors
+
+
+ Get transposed matrix
+
+
+ Get the real inverse
+
+
+ Get determinant
+
+
+ Transform vector by matrix, equal to v' = M*v
+
+
+ Transform vector by matrix transpose, v' = M^t*v
+
+
+ Default constructor, not performing any initialization for performance reason. Use empty() function below to construct empty bounds.
+
+
+ Construct from two bounding points
+
+
+ Return empty bounds.
+
+
+ returns the AABB containing v0 and v1.
+
+
+ returns the AABB from center and extents vectors.
+
+
+ Construct from center, extent, and (not necessarily orthogonal) basis
+
+
+ Construct from pose and extent
+
+
+ gets the transformed bounds of the passed AABB (resulting in a bigger AABB). This version is safe to call for empty bounds.
+
+
+ gets the transformed bounds of the passed AABB (resulting in a bigger AABB). Calling this method for empty bounds leads to undefined behavior. Use [`transformSafe`]() instead.
+
+
+ gets the transformed bounds of the passed AABB (resulting in a bigger AABB). This version is safe to call for empty bounds.
+
+
+ gets the transformed bounds of the passed AABB (resulting in a bigger AABB). Calling this method for empty bounds leads to undefined behavior. Use [`transformSafe`]() instead.
+
+
+ Sets empty to true
+
+
+ Sets the bounds to maximum size [-PX_MAX_BOUNDS_EXTENTS, PX_MAX_BOUNDS_EXTENTS].
+
+
+ expands the volume to include v
+
+
+ expands the volume to include b.
+
+
+ indicates whether the intersection of this and b is empty or not.
+
+
+ computes the 1D-intersection between two AABBs, on a given axis.
+
+
+ indicates if these bounds contain v.
+
+
+ checks a box is inside another box.
+
+
+ returns the center of this axis aligned box.
+
+
+ get component of the box's center along a given axis
+
+
+ get component of the box's extents along a given axis
+
+
+ returns the dimensions (width/height/depth) of this axis aligned box.
+
+
+ returns the extents, which are half of the width/height/depth.
+
+
+ scales the AABB. This version is safe to call for empty bounds.
+
+
+ scales the AABB. Calling this method for empty bounds leads to undefined behavior. Use [`scaleSafe`]() instead.
+
+
+ fattens the AABB in all 3 dimensions by the given distance. This version is safe to call for empty bounds.
+
+
+ fattens the AABB in all 3 dimensions by the given distance. Calling this method for empty bounds leads to undefined behavior. Use [`fattenSafe`]() instead.
+
+
+ checks that the AABB values are not NaN
+
+
+ checks that the AABB values describe a valid configuration.
+
+
+ Finds the closest point in the box to the point p. If p is contained, this will be p, otherwise it will be the closest point on the surface of the box.
+
+
+ Reports an error code.
+
+
+ callback when memory is allocated.
+
+
+ callback when memory is deallocated.
+
+
+ The default constructor.
+
+
+ The default constructor.
+
+
+ Allocates size bytes of memory, which must be 16-byte aligned. This method should never return NULL. If you run out of memory, then you should terminate the app or take some other appropriate action. Threading: This function should be thread safe as it can be called in the context of the user thread and physics processing thread(s). The allocated block of memory.
+
+
+ Frees memory previously allocated by allocate(). Threading: This function should be thread safe as it can be called in the context of the user thread and physics processing thread(s).
+
+
+ The default constructor.
+
+
+ The default destructor.
+
+
+ Reports an error code.
+
+
+ Enables floating point exceptions for the scalar and SIMD unit
+
+
+ Disables floating point exceptions for the scalar and SIMD unit
+
+
+ read from the stream. The number of bytes read may be less than the number requested. the number of bytes read from the stream.
+
+
+ return the length of the input data size in bytes of the input data
+
+
+ seek to the given offset from the start of the data.
+
+
+ return the current offset from the start of the data the offset to seek to.
+
+
+ write to the stream. The number of bytes written may be less than the number sent. the number of bytes written to the stream by this call.
+
+
+ default constructor leaves data uninitialized.
+
+
+ zero constructor.
+
+
+ Assigns scalar parameter to all elements. Useful to initialize to zero or one.
+
+
+ Initializes from 3 scalar parameters.
+
+
+ Initializes from 3 scalar parameters.
+
+
+ Initializes from an array of scalar parameters.
+
+
+ tests for exact zero vector
+
+
+ returns true if all 3 elems of the vector are finite (not NAN or INF, etc.)
+
+
+ is normalized - used by API parameter validation
+
+
+ returns the squared magnitude Avoids calling PxSqrt()!
+
+
+ returns the magnitude
+
+
+ returns the scalar product of this and other.
+
+
+ returns a unit vector
+
+
+ normalizes the vector in place
+
+
+ a[i] * b[i], for all i.
+
+
+ element-wise minimum
+
+
+ element-wise maximum
+
+
+ Default constructor
+
+
+ identity constructor
+
+
+ zero constructor
+
+
+ Construct from four 4-vectors
+
+
+ constructor that generates a multiple of the identity matrix
+
+
+ Construct from three base vectors and a translation
+
+
+ Construct from float[16]
+
+
+ Construct from a quaternion
+
+
+ Construct from a diagonal vector
+
+
+ Construct from Mat33 and a translation
+
+
+ Get transposed matrix
+
+
+ Transform vector by matrix, equal to v' = M*v
+
+
+ Transform vector by matrix, equal to v' = M*v
+
+
+ Rotate vector by matrix, equal to v' = M*v
+
+
+ Rotate vector by matrix, equal to v' = M*v
+
+
+ Constructor
+
+
+ Constructor from a normal and a distance
+
+
+ Constructor from a normal and a distance
+
+
+ Constructor from a point on the plane and a normal
+
+
+ Constructor from three points
+
+
+ projects p into the plane
+
+
+ find an arbitrary point in the plane
+
+
+ equivalent plane with unit normal
+
+
+ transform plane
+
+
+ inverse-transform plane
+
+
+ finds the shortest rotation between two vectors. a rotation about an axis normal to the two vectors which takes one to the other via the shortest path
+
+
+ creates a transform from the endpoints of a segment, suitable for an actor transform for a PxCapsuleGeometry A PxTransform which will transform the vector (1,0,0) to the capsule axis shrunk by the halfHeight
+
+
+ creates a transform from a plane equation, suitable for an actor transform for a PxPlaneGeometry a PxTransform which will transform the plane PxPlane(1,0,0,0) to the specified plane
+
+
+ creates a plane equation from a transform, such as the actor transform for a PxPlaneGeometry the plane
+
+
+ Spherical linear interpolation of two quaternions. Returns left when t=0, right when t=1 and a linear interpolation of left and right when 0 < t < 1. Returns angle between -PI and PI in radians
+
+
+ integrate transform.
+
+
+ Compute the exponent of a PxVec3
+
+
+ computes a oriented bounding box around the scaled basis. Bounding box extent.
+
+
+ return Returns the log of a PxQuat
+
+
+ return Returns 0 if v.x is largest element of v, 1 if v.y is largest element, 2 if v.z is largest element.
+
+
+ Compute tan(theta/2) given sin(theta) and cos(theta) as inputs. Returns tan(theta/2)
+
+
+ Compute the closest point on an 2d ellipse to a given 2d point. Returns the 2d position on the surface of the ellipse that is closest to point.
+
+
+ Compute from an input quaternion q a pair of quaternions (swing, twist) such that q = swing * twist with the caveats that swing.x = twist.y = twist.z = 0.
+
+
+ Compute the angle between two non-unit vectors Returns the angle (in radians) between the two vector v0 and v1.
+
+
+ Compute two normalized vectors (right and up) that are perpendicular to an input normalized vector (dir).
+
+
+ Compute three normalized vectors (dir, right and up) that are parallel to (dir) and perpendicular to (right, up) the normalized direction vector (p1 - p0)/||p1 - p0||.
+
+
+ Compute (i+1)%3
+
+
+ The constructor for Mutex creates a mutex. It is initially unlocked.
+
+
+ The destructor for Mutex deletes the mutex.
+
+
+ Acquire (lock) the mutex. If the mutex is already locked by another thread, this method blocks until the mutex is unlocked.
+
+
+ Acquire (lock) the mutex. If the mutex is already locked by another thread, this method returns false without blocking.
+
+
+ Release (unlock) the mutex.
+
+
+ Size of this class.
+
+
+ Mark the beginning of a nested profile block Returns implementation-specific profiler data for this event
+
+
+ Mark the end of a nested profile block eventName plus contextId can be used to uniquely match up start and end of a zone.
+
+
+ Wait on the object for at most the given number of ms. Returns true if the object is signaled. Sync::waitForever will block forever or until the object is signaled.
+
+
+ Signal the synchronization object, waking all threads waiting on it
+
+
+ Reset the synchronization object
+
+
+ Size of this class.
+
+
+ default constructor leaves data uninitialized.
+
+
+ zero constructor.
+
+
+ Assigns scalar parameter to all elements. Useful to initialize to zero or one.
+
+
+ Initializes from 2 scalar parameters.
+
+
+ tests for exact zero vector
+
+
+ returns true if all 2 elems of the vector are finite (not NAN or INF, etc.)
+
+
+ is normalized - used by API parameter validation
+
+
+ returns the squared magnitude Avoids calling PxSqrt()!
+
+
+ returns the magnitude
+
+
+ returns the scalar product of this and other.
+
+
+ returns a unit vector
+
+
+ normalizes the vector in place
+
+
+ a[i] * b[i], for all i.
+
+
+ element-wise minimum
+
+
+ returns MIN(x, y);
+
+
+ element-wise maximum
+
+
+ returns MAX(x, y);
+
+
+ Registers a reference value corresponding to a PxBase object. This method is assumed to be called in the implementation of PxSerializer::registerReferences for serialized references that need to be resolved on deserialization. A reference needs to be associated with exactly one PxBase object in either the collection or the external references collection. Different kinds of references are supported and need to be specified. In the most common case (PX_SERIAL_REF_KIND_PXBASE) the PxBase object matches the reference value (which is the pointer to the PxBase object). Integer references maybe registered as well (used for internal material indices with PX_SERIAL_REF_KIND_MATERIAL_IDX). Other kinds could be added with the restriction that for pointer types the kind value needs to be marked with the PX_SERIAL_REF_KIND_PTR_TYPE_BIT.
+
+
+ Returns the collection that is being serialized.
+
+
+ Serializes object data and object extra data. This function is assumed to be called within the implementation of PxSerializer::exportData and PxSerializer::exportExtraData.
+
+
+ Aligns the serialized data. This function is assumed to be called within the implementation of PxSerializer::exportData and PxSerializer::exportExtraData.
+
+
+ Helper function to write a name to the extraData if serialization is configured to save names. This function is assumed to be called within the implementation of PxSerializer::exportExtraData.
+
+
+ Retrieves a pointer to a deserialized PxBase object given a corresponding deserialized reference value This method is assumed to be called in the implementation of PxSerializer::createObject in order to update reference values on deserialization. To update a PxBase reference the corresponding deserialized pointer value needs to be provided in order to retrieve the location of the corresponding deserialized PxBase object. (PxDeserializationContext::translatePxBase simplifies this common case). For other kinds of references the reverence values need to be updated by deduction given the corresponding PxBase instance. PxBase object associated with the reference value
+
+
+ Helper function to read a name from the extra data during deserialization. This function is assumed to be called within the implementation of PxSerializer::createObject.
+
+
+ Function to align the extra data stream to a power of 2 alignment This function is assumed to be called within the implementation of PxSerializer::createObject.
+
+
+ Register a serializer for a concrete type
+
+
+ Unregister a serializer for a concrete type, and retrieves the corresponding serializer object. Unregistered serializer corresponding to type, NULL for types for which no serializer has been registered.
+
+
+ Returns PxSerializer corresponding to type Registered PxSerializer object corresponding to type
+
+
+ Register a RepX serializer for a concrete type
+
+
+ Unregister a RepX serializer for a concrete type, and retrieves the corresponding serializer object. Unregistered PxRepxSerializer corresponding to type, NULL for types for which no RepX serializer has been registered.
+
+
+ Returns RepX serializer given the corresponding type name Registered PxRepXSerializer object corresponding to type name
+
+
+ Releases PxSerializationRegistry instance. This unregisters all PhysX and PhysXExtension serializers. Make sure to unregister all custom type serializers before releasing the PxSerializationRegistry.
+
+
+ Adds a PxBase object to the collection. Adds a PxBase object to the collection. Optionally a PxSerialObjectId can be provided in order to resolve dependencies between collections. A PxSerialObjectId value of PX_SERIAL_OBJECT_ID_INVALID means the object remains without id. Objects can be added regardless of other objects they require. If the object is already in the collection, the ID will be set if it was PX_SERIAL_OBJECT_ID_INVALID previously, otherwise the operation fails.
+
+
+ Removes a PxBase member object from the collection. Object needs to be contained by the collection.
+
+
+ Returns whether the collection contains a certain PxBase object. Whether object is contained.
+
+
+ Adds an id to a member PxBase object. If the object is already associated with an id within the collection, the id is replaced. May only be called for objects that are members of the collection. The id needs to be unique within the collection.
+
+
+ Removes id from a contained PxBase object. May only be called for ids that are associated with an object in the collection.
+
+
+ Adds all PxBase objects and their ids of collection to this collection. PxBase objects already in this collection are ignored. Object ids need to be conflict free, i.e. the same object may not have two different ids within the two collections.
+
+
+ Removes all PxBase objects of collection from this collection. PxBase objects not present in this collection are ignored. Ids of objects which are removed are also removed.
+
+
+ Gets number of PxBase objects in this collection. Number of objects in this collection
+
+
+ Gets the PxBase object of this collection given its index. PxBase object at index index
+
+
+ Copies member PxBase pointers to a user specified buffer. number of members PxBase objects that have been written to the userBuffer
+
+
+ Looks for a PxBase object given a PxSerialObjectId value. If there is no PxBase object in the collection with the given id, NULL is returned. PxBase object with the given id value or NULL
+
+
+ Gets number of PxSerialObjectId names in this collection. Number of PxSerialObjectId names in this collection
+
+
+ Copies member PxSerialObjectId values to a user specified buffer. number of members PxSerialObjectId values that have been written to the userBuffer
+
+
+ Gets the PxSerialObjectId name of a PxBase object within the collection. The PxBase object needs to be a member of the collection. PxSerialObjectId name of the object or PX_SERIAL_OBJECT_ID_INVALID if the object is unnamed
+
+
+ Deletes a collection object. This function only deletes the collection object, i.e. the container class. It doesn't delete objects that are part of the collection.
+
+
+ Creates a collection object. Objects can only be serialized or deserialized through a collection. For serialization, users must add objects to the collection and serialize the collection as a whole. For deserialization, the system gives back a collection of deserialized objects to users. The new collection object.
+
+
+ Releases the PxBase instance, please check documentation of release in derived class.
+
+
+ Returns string name of dynamic type. Class name of most derived type of this object.
+
+
+ Returns concrete type of object. PxConcreteType::Enum of serialized object
+
+
+ Set PxBaseFlag
+
+
+ Set PxBaseFlags
+
+
+ Returns PxBaseFlags PxBaseFlags
+
+
+ Whether the object is subordinate. A class is subordinate, if it can only be instantiated in the context of another class. Whether the class is subordinate
+
+
+ Decrements the reference count of the object and releases it if the new reference count is zero.
+
+
+ Returns the reference count of the object. At creation, the reference count of the object is 1. Every other object referencing this object increments the count by 1. When the reference count reaches 0, and only then, the object gets destroyed automatically. the current reference count.
+
+
+ Acquires a counted reference to this object. This method increases the reference count of the object by 1. Decrement the reference count by calling release()
+
+
+ constructor sets to default
+
+
+ Returns true if the descriptor is valid. true if the current settings are valid (returns always true).
+
+
+ Allocate a new string. *Always* a valid null terminated string. \"\" is returned if \"\" or null is passed in.
+
+
+ Release the string table and all the strings associated with it.
+
+
+ Returns string name of dynamic type. Class name of most derived type of this object.
+
+
+ Adds required objects to the collection. This method does not add the required objects recursively, e.g. objects required by required objects.
+
+
+ Whether the object is subordinate. A class is subordinate, if it can only be instantiated in the context of another class. Whether the class is subordinate
+
+
+ Exports object's extra data to stream.
+
+
+ Exports object's data to stream.
+
+
+ Register references that the object maintains to other objects.
+
+
+ Returns size needed to create the class instance. sizeof class instance.
+
+
+ Create object at a given address, resolve references and import extra data. Created PxBase pointer (needs to be identical to address before increment).
+
+
+ *******************************************************************************************************************
+
+
+ Builds object (TriangleMesh, Heightfield, ConvexMesh or BVH) from given data in PxPhysics. PxBase Created object in PxPhysics.
+
+
+ Set the user-provided dispatcher object for CPU tasks
+
+
+ Get the user-provided dispatcher object for CPU tasks The CPU dispatcher object.
+
+
+ Reset any dependencies between Tasks Will be called at the start of every frame before tasks are submitted.
+
+
+ Called by the owning scene to start the task graph. All tasks with ref count of 1 will be dispatched.
+
+
+ Called by the owning scene at the end of a simulation step.
+
+
+ Called by the worker threads to inform the PxTaskManager that a task has completed processing.
+
+
+ Retrieve a task by name The ID of the task with that name, or eNOT_PRESENT if not found
+
+
+ Submit a task with a unique name. The ID of the task with that name, or eNOT_PRESENT if not found
+
+
+ Submit an unnamed task. The ID of the task with that name, or eNOT_PRESENT if not found
+
+
+ Retrieve a task given a task ID The task associated with the ID
+
+
+ Release the PxTaskManager object, referenced dispatchers will not be released
+
+
+ Construct a new PxTaskManager instance with the given [optional] dispatchers
+
+
+ Called by the TaskManager when a task is to be queued for execution. Upon receiving a task, the dispatcher should schedule the task to run. After the task has been run, it should call the release() method and discard its pointer.
+
+
+ Returns the number of available worker threads for this dispatcher. The SDK will use this count to control how many tasks are submitted. By matching the number of tasks with the number of execution units task overhead can be reduced.
+
+
+ The user-implemented run method where the task's work should be performed run() methods must be thread safe, stack friendly (no alloca, etc), and must never block.
+
+
+ Return a user-provided task name for profiling purposes. It does not have to be unique, but unique names are helpful. The name of this task
+
+
+ Implemented by derived implementation classes
+
+
+ Implemented by derived implementation classes
+
+
+ Implemented by derived implementation classes
+
+
+ Implemented by derived implementation classes A task may assume in its release() method that the task system no longer holds references to it - so it may safely run its destructor, recycle itself, etc. provided no additional user references to the task exist
+
+
+ Return PxTaskManager to which this task was submitted Note, can return NULL if task was not submitted, or has been completed.
+
+
+ Release method implementation
+
+
+ Inform the PxTaskManager this task must finish before the given
+
+
+ Inform the PxTaskManager this task cannot start until the given
+
+
+ Manually increment this task's reference count. The task will not be allowed to run until removeReference() is called.
+
+
+ Manually decrement this task's reference count. If the reference count reaches zero, the task will be dispatched.
+
+
+ Return the ref-count for this task
+
+
+ Return the unique ID for this task
+
+
+ Called by PxTaskManager at submission time for initialization Perform simulation step initialization here.
+
+
+ Initialize this task and specify the task that will have its ref count decremented on completion. Submission is deferred until the task's mRefCount is decremented to zero. Note that we only use the PxTaskManager to query the appropriate dispatcher.
+
+
+ Initialize this task and specify the task that will have its ref count decremented on completion. This overload of setContinuation() queries the PxTaskManager from the continuation task, which cannot be NULL.
+
+
+ Retrieves continuation task
+
+
+ Manually decrement this task's reference count. If the reference count reaches zero, the task will be dispatched.
+
+
+ Return the ref-count for this task
+
+
+ Manually increment this task's reference count. The task will not be allowed to run until removeReference() is called.
+
+
+ called by CpuDispatcher after run method has completed Decrements the continuation task's reference count, if specified.
+
+
+ Returns the type of the geometry. The type of the object.
+
+
+ Constructor to initialize half extents from scalar parameters.
+
+
+ Constructor to initialize half extents from vector parameter.
+
+
+ Returns true if the geometry is valid. True if the current settings are valid A valid box has a positive extent in each direction (halfExtents.x > 0, halfExtents.y > 0, halfExtents.z > 0). It is illegal to call PxRigidActor::createShape and PxPhysics::createShape with a box that has zero extent in any direction.
+
+
+ Raycast test against a BVH. false if query has been aborted
+
+
+ Sweep test against a BVH. false if query has been aborted
+
+
+ Overlap test against a BVH. false if query has been aborted
+
+
+ Frustum culling test against a BVH. This is similar in spirit to an overlap query using a convex object around the frustum. However this specialized query has better performance, and can support more than the 6 planes of a frustum, which can be useful in portal-based engines. On the other hand this test only returns a conservative number of bounds, i.e. some of the returned bounds may actually be outside the frustum volume, close to it but not touching it. This is usually an ok performance trade-off when the function is used for view-frustum culling. false if query has been aborted
+
+
+ Returns the number of bounds in the BVH. You can use [`getBounds`]() to retrieve the bounds. These are the user-defined bounds passed to the BVH builder, not the internal bounds around each BVH node. Number of bounds in the BVH.
+
+
+ Retrieve the read-only bounds in the BVH. These are the user-defined bounds passed to the BVH builder, not the internal bounds around each BVH node.
+
+
+ Retrieve the bounds in the BVH. These bounds can be modified. Call refit() after modifications are done. These are the user-defined bounds passed to the BVH builder, not the internal bounds around each BVH node.
+
+
+ Refit the BVH. This function \"refits\" the tree, i.e. takes the new (leaf) bounding boxes into account and recomputes all the BVH bounds accordingly. This is an O(n) operation with n = number of bounds in the BVH. This works best with minor bounds modifications, i.e. when the bounds remain close to their initial values. With large modifications the tree quality degrades more and more, and subsequent query performance suffers. It might be a better strategy to create a brand new BVH if bounds change drastically. This function refits the whole tree after an arbitrary number of bounds have potentially been modified by users (via getBoundsForModification()). If you only have a small number of bounds to update, it might be more efficient to use setBounds() and partialRefit() instead.
+
+
+ Update single bounds. This is an alternative to getBoundsForModification() / refit(). If you only have a small set of bounds to update, it can be inefficient to call the refit() function, because it refits the whole BVH. Instead, one can update individual bounds with this updateBounds() function. It sets the new bounds and marks the corresponding BVH nodes for partial refit. Once all the individual bounds have been updated, call partialRefit() to only refit the subset of marked nodes. true if success
+
+
+ Refits subset of marked nodes. This is an alternative to the refit() function, to be called after updateBounds() calls. See updateBounds() for details.
+
+
+ Generic BVH traversal function. This can be used to implement custom BVH traversal functions if provided ones are not enough. In particular this can be used to visualize the tree's bounds. false if query has been aborted
+
+
+ Constructor, initializes to a capsule with passed radius and half height.
+
+
+ Returns true if the geometry is valid. True if the current settings are valid. A valid capsule has radius > 0, halfHeight >= 0. It is illegal to call PxRigidActor::createShape and PxPhysics::createShape with a capsule that has zero radius or height.
+
+
+ Returns the number of vertices. Number of vertices.
+
+
+ Returns the vertices. Array of vertices.
+
+
+ Returns the index buffer. Index buffer.
+
+
+ Returns the number of polygons. Number of polygons.
+
+
+ Returns the polygon data. True if success.
+
+
+ Decrements the reference count of a convex mesh and releases it if the new reference count is zero.
+
+
+ Returns the mass properties of the mesh assuming unit density. The following relationship holds between mass and volume: mass = volume * density The mass of a unit density mesh is equal to its volume, so this function returns the volume of the mesh. Similarly, to obtain the localInertia of an identically shaped object with a uniform density of d, simply multiply the localInertia of the unit density mesh by d.
+
+
+ Returns the local-space (vertex space) AABB from the convex mesh. local-space bounds
+
+
+ Returns the local-space Signed Distance Field for this mesh if it has one. local-space SDF.
+
+
+ This method decides whether a convex mesh is gpu compatible. If the total number of vertices are more than 64 or any number of vertices in a polygon is more than 32, or convex hull data was not cooked with GPU data enabled during cooking or was loaded from a serialized collection, the convex hull is incompatible with GPU collision detection. Otherwise it is compatible. True if the convex hull is gpu compatible
+
+
+ Constructor initializes to identity scale.
+
+
+ Constructor from scalar.
+
+
+ Constructor to initialize to arbitrary scale and identity scale rotation.
+
+
+ Constructor to initialize to arbitrary scaling.
+
+
+ Returns true if the scaling is an identity transformation.
+
+
+ Returns the inverse of this scaling transformation.
+
+
+ Converts this transformation to a 3x3 matrix representation.
+
+
+ Returns true if combination of negative scale components will cause the triangle normal to flip. The SDK will flip the normals internally.
+
+
+ Constructor. By default creates an empty object with a NULL mesh and identity scale.
+
+
+ Returns true if the geometry is valid. True if the current settings are valid for shape creation. A valid convex mesh has a positive scale value in each direction (scale.x > 0, scale.y > 0, scale.z > 0). It is illegal to call PxRigidActor::createShape and PxPhysics::createShape with a convex that has zero extent in any direction.
+
+
+ Constructor.
+
+
+ Returns true if the geometry is valid. True if the current settings are valid A valid sphere has radius > 0. It is illegal to call PxRigidActor::createShape and PxPhysics::createShape with a sphere that has zero radius.
+
+
+ Constructor.
+
+
+ Returns true if the geometry is valid. True if the current settings are valid
+
+
+ Constructor. By default creates an empty object with a NULL mesh and identity scale.
+
+
+ Returns true if the geometry is valid. True if the current settings are valid for shape creation. A valid triangle mesh has a positive scale value in each direction (scale.scale.x > 0, scale.scale.y > 0, scale.scale.z > 0). It is illegal to call PxRigidActor::createShape and PxPhysics::createShape with a triangle mesh that has zero extents in any direction.
+
+
+ Constructor.
+
+
+ Returns true if the geometry is valid. True if the current settings are valid A valid height field has a positive scale value in each direction (heightScale > 0, rowScale > 0, columnScale > 0). It is illegal to call PxRigidActor::createShape and PxPhysics::createShape with a height field that has zero extents in any direction.
+
+
+ Default constructor. Creates an empty object with no particles.
+
+
+ Returns true if the geometry is valid. True if the current settings are valid for shape creation.
+
+
+ Default constructor.
+
+
+ Returns true if the geometry is valid. True if the current settings are valid for shape creation.
+
+
+ Constructor. By default creates an empty object with a NULL mesh and identity scale.
+
+
+ Returns true if the geometry is valid. True if the current settings are valid for shape creation. A valid tetrahedron mesh has a positive scale value in each direction (scale.scale.x > 0, scale.scale.y > 0, scale.scale.z > 0). It is illegal to call PxRigidActor::createShape and PxPhysics::createShape with a tetrahedron mesh that has zero extents in any direction.
+
+
+ For raycast hits: true for shapes overlapping with raycast origin. For sweep hits: true for shapes overlapping at zero sweep distance.
+
+
+ For internal use
+
+
+ Default constructor
+
+
+ Invalid type
+
+
+ Return custom type. The type purpose is for user to differentiate custom geometries. Not used by PhysX. Unique ID of a custom geometry type. User should use DECLARE_CUSTOM_GEOMETRY_TYPE and IMPLEMENT_CUSTOM_GEOMETRY_TYPE intead of overwriting this function.
+
+
+ Return local bounds. Bounding box in the geometry local space.
+
+
+ Raycast. Cast a ray against the geometry in given pose. Number of hits.
+
+
+ Overlap. Test if geometries overlap. True if there is overlap. False otherwise.
+
+
+ Sweep. Sweep one geometry against the other. True if there is hit. False otherwise.
+
+
+ Compute custom geometry mass properties. For geometries usable with dynamic rigidbodies.
+
+
+ Compatible with PhysX's PCM feature. Allows to optimize contact generation.
+
+
+ Default constructor. Creates an empty object with a NULL callbacks pointer.
+
+
+ Constructor.
+
+
+ Returns true if the geometry is valid. True if the current settings are valid for shape creation.
+
+
+ Returns the custom type of the custom geometry.
+
+
+ Raycast test against a geometry object. All geometry types are supported except PxParticleSystemGeometry, PxTetrahedronMeshGeometry and PxHairSystemGeometry. Number of hits between the ray and the geometry object
+
+
+ Overlap test for two geometry objects. All combinations are supported except: PxPlaneGeometry vs. {PxPlaneGeometry, PxTriangleMeshGeometry, PxHeightFieldGeometry} PxTriangleMeshGeometry vs. PxHeightFieldGeometry PxHeightFieldGeometry vs. PxHeightFieldGeometry Anything involving PxParticleSystemGeometry, PxTetrahedronMeshGeometry or PxHairSystemGeometry. True if the two geometry objects overlap
+
+
+ Sweep a specified geometry object in space and test for collision with a given object. The following combinations are supported. PxSphereGeometry vs. {PxSphereGeometry, PxPlaneGeometry, PxCapsuleGeometry, PxBoxGeometry, PxConvexMeshGeometry, PxTriangleMeshGeometry, PxHeightFieldGeometry} PxCapsuleGeometry vs. {PxSphereGeometry, PxPlaneGeometry, PxCapsuleGeometry, PxBoxGeometry, PxConvexMeshGeometry, PxTriangleMeshGeometry, PxHeightFieldGeometry} PxBoxGeometry vs. {PxSphereGeometry, PxPlaneGeometry, PxCapsuleGeometry, PxBoxGeometry, PxConvexMeshGeometry, PxTriangleMeshGeometry, PxHeightFieldGeometry} PxConvexMeshGeometry vs. {PxSphereGeometry, PxPlaneGeometry, PxCapsuleGeometry, PxBoxGeometry, PxConvexMeshGeometry, PxTriangleMeshGeometry, PxHeightFieldGeometry} True if the swept geometry object geom0 hits the object geom1
+
+
+ Compute minimum translational distance (MTD) between two geometry objects. All combinations of geom objects are supported except: - plane/plane - plane/mesh - plane/heightfield - mesh/mesh - mesh/heightfield - heightfield/heightfield - anything involving PxParticleSystemGeometry, PxTetrahedronMeshGeometry or PxHairSystemGeometry The function returns a unit vector ('direction') and a penetration depth ('depth'). The depenetration vector D = direction * depth should be applied to the first object, to get out of the second object. Returned depth should always be positive or null. If objects do not overlap, the function can not compute the MTD and returns false. True if the MTD has successfully been computed, i.e. if objects do overlap.
+
+
+ Computes distance between a point and a geometry object. Currently supported geometry objects: box, sphere, capsule, convex, mesh. For meshes, only the BVH34 midphase data-structure is supported. Square distance between the point and the geom object, or 0.0 if the point is inside the object, or -1.0 if an error occured (geometry type is not supported, or invalid pose)
+
+
+ computes the bounds for a geometry object
+
+
+ Checks if provided geometry is valid. True if geometry is valid.
+
+
+ Decrements the reference count of a height field and releases it if the new reference count is zero.
+
+
+ Writes out the sample data array. The user provides destBufferSize bytes storage at destBuffer. The data is formatted and arranged as PxHeightFieldDesc.samples. The number of bytes written.
+
+
+ Replaces a rectangular subfield in the sample data array. The user provides the description of a rectangular subfield in subfieldDesc. The data is formatted and arranged as PxHeightFieldDesc.samples. True on success, false on failure. Failure can occur due to format mismatch. Modified samples are constrained to the same height quantization range as the original heightfield. Source samples that are out of range of target heightfield will be clipped with no error. PhysX does not keep a mapping from the heightfield to heightfield shapes that reference it. Call PxShape::setGeometry on each shape which references the height field, to ensure that internal data structures are updated to reflect the new geometry. Please note that PxShape::setGeometry does not guarantee correct/continuous behavior when objects are resting on top of old or new geometry.
+
+
+ Retrieves the number of sample rows in the samples array. The number of sample rows in the samples array.
+
+
+ Retrieves the number of sample columns in the samples array. The number of sample columns in the samples array.
+
+
+ Retrieves the format of the sample data. The format of the sample data.
+
+
+ Retrieves the offset in bytes between consecutive samples in the array. The offset in bytes between consecutive samples in the array.
+
+
+ Retrieves the convex edge threshold. The convex edge threshold.
+
+
+ Retrieves the flags bits, combined from values of the enum ::PxHeightFieldFlag. The flags bits, combined from values of the enum ::PxHeightFieldFlag.
+
+
+ Retrieves the height at the given coordinates in grid space. The height at the given coordinates or 0 if the coordinates are out of range.
+
+
+ Returns material table index of given triangle This function takes a post cooking triangle index. Material table index, or 0xffff if no per-triangle materials are used
+
+
+ Returns a triangle face normal for a given triangle index This function takes a post cooking triangle index. Triangle normal for a given triangle index
+
+
+ Returns heightfield sample of given row and column Heightfield sample
+
+
+ Returns the number of times the heightfield data has been modified This method returns the number of times modifySamples has been called on this heightfield, so that code that has retained state that depends on the heightfield can efficiently determine whether it has been modified. the number of times the heightfield sample data has been modified.
+
+
+ Constructor sets to default.
+
+
+ (re)sets the structure to the default.
+
+
+ Returns true if the descriptor is valid. True if the current settings are valid.
+
+
+ Retrieves triangle data from a triangle ID. This function can be used together with [`findOverlapTriangleMesh`]() to retrieve triangle properties. This function will flip the triangle normal whenever triGeom.scale.hasNegativeDeterminant() is true.
+
+
+ Retrieves triangle data from a triangle ID. This function can be used together with [`findOverlapHeightField`]() to retrieve triangle properties. This function will flip the triangle normal whenever triGeom.scale.hasNegativeDeterminant() is true. TriangleIndex is an index used in internal format, which does have an index out of the bounds in last row. To traverse all tri indices in the HF, the following code can be applied: for (PxU32 row = 0; row < (nbRows - 1); row++) { for (PxU32 col = 0; col < (nbCols - 1); col++) { for (PxU32 k = 0; k < 2; k++) { const PxU32 triIndex = 2 * (row*nbCols + col) + k; .... } } }
+
+
+ Find the mesh triangles which touch the specified geometry object. For mesh-vs-mesh overlap tests, please use the specialized function below. Returned triangle indices can be used with [`getTriangle`]() to retrieve the triangle properties. Number of overlaps found, i.e. number of elements written to the results buffer
+
+
+ Find the height field triangles which touch the specified geometry object. Returned triangle indices can be used with [`getTriangle`]() to retrieve the triangle properties. Number of overlaps found, i.e. number of elements written to the results buffer
+
+
+ Sweep a specified geometry object in space and test for collision with a set of given triangles. This function simply sweeps input geometry against each input triangle, in the order they are given. This is an O(N) operation with N = number of input triangles. It does not use any particular acceleration structure. True if the swept geometry object hits the specified triangles Only the following geometry types are currently supported: PxSphereGeometry, PxCapsuleGeometry, PxBoxGeometry If a shape from the scene is already overlapping with the query shape in its starting position, the hit is returned unless eASSUME_NO_INITIAL_OVERLAP was specified. This function returns a single closest hit across all the input triangles. Multiple hits are not supported. Supported hitFlags are PxHitFlag::eDEFAULT, PxHitFlag::eASSUME_NO_INITIAL_OVERLAP, PxHitFlag::ePRECISE_SWEEP, PxHitFlag::eMESH_BOTH_SIDES, PxHitFlag::eMESH_ANY. ePOSITION is only defined when there is no initial overlap (sweepHit.hadInitialOverlap() == false) The returned normal for initially overlapping sweeps is set to -unitDir. Otherwise the returned normal is the front normal of the triangle even if PxHitFlag::eMESH_BOTH_SIDES is set. The returned PxGeomSweepHit::faceIndex parameter will hold the index of the hit triangle in input array, i.e. the range is [0; triangleCount). For initially overlapping sweeps, this is the index of overlapping triangle. The inflation parameter is not compatible with PxHitFlag::ePRECISE_SWEEP.
+
+
+ constructor sets to default.
+
+
+ (re)sets the structure to the default.
+
+
+ returns true if the current settings are valid
+
+
+ Constructor
+
+
+ Constructor
+
+
+ Destructor
+
+
+ Compute the normal of the Triangle.
+
+
+ Compute the unnormalized normal of the triangle.
+
+
+ Compute the area of the triangle. Area of the triangle.
+
+
+ Computes a point on the triangle from u and v barycentric coordinates.
+
+
+ Returns the number of vertices. number of vertices
+
+
+ Returns the vertices. array of vertices
+
+
+ Returns all mesh vertices for modification. This function will return the vertices of the mesh so that their positions can be changed in place. After modifying the vertices you must call refitBVH for the refitting to actually take place. This function maintains the old mesh topology (triangle indices). inplace vertex coordinates for each existing mesh vertex. It is recommended to use this feature for scene queries only. Size of array returned is equal to the number returned by getNbVertices(). This function operates on cooked vertex indices. This means the index mapping and vertex count can be different from what was provided as an input to the cooking routine. To achieve unchanged 1-to-1 index mapping with orignal mesh data (before cooking) please use the following cooking flags: eWELD_VERTICES = 0, eDISABLE_CLEAN_MESH = 1. It is also recommended to make sure that a call to validateTriangleMesh returns true if mesh cleaning is disabled.
+
+
+ Refits BVH for mesh vertices. This function will refit the mesh BVH to correctly enclose the new positions updated by getVerticesForModification. Mesh BVH will not be reoptimized by this function so significantly different new positions will cause significantly reduced performance. New bounds for the entire mesh. For PxMeshMidPhase::eBVH34 trees the refit operation is only available on non-quantized trees (see PxBVH34MidphaseDesc::quantized) PhysX does not keep a mapping from the mesh to mesh shapes that reference it. Call PxShape::setGeometry on each shape which references the mesh, to ensure that internal data structures are updated to reflect the new geometry. PxShape::setGeometry does not guarantee correct/continuous behavior when objects are resting on top of old or new geometry. It is also recommended to make sure that a call to validateTriangleMesh returns true if mesh cleaning is disabled. Active edges information will be lost during refit, the rigid body mesh contact generation might not perform as expected.
+
+
+ Returns the number of triangles. number of triangles
+
+
+ Returns the triangle indices. The indices can be 16 or 32bit depending on the number of triangles in the mesh. Call getTriangleMeshFlags() to know if the indices are 16 or 32 bits. The number of indices is the number of triangles * 3. array of triangles
+
+
+ Reads the PxTriangleMesh flags. See the list of flags [`PxTriangleMeshFlag`] The values of the PxTriangleMesh flags.
+
+
+ Returns the triangle remapping table. The triangles are internally sorted according to various criteria. Hence the internal triangle order does not always match the original (user-defined) order. The remapping table helps finding the old indices knowing the new ones: remapTable[ internalTriangleIndex ] = originalTriangleIndex the remapping table (or NULL if 'PxCookingParams::suppressTriangleMeshRemapTable' has been used)
+
+
+ Decrements the reference count of a triangle mesh and releases it if the new reference count is zero.
+
+
+ Returns material table index of given triangle This function takes a post cooking triangle index. Material table index, or 0xffff if no per-triangle materials are used
+
+
+ Returns the local-space (vertex space) AABB from the triangle mesh. local-space bounds
+
+
+ Returns the local-space Signed Distance Field for this mesh if it has one. local-space SDF.
+
+
+ Returns the resolution of the local-space dense SDF.
+
+
+ Sets whether this mesh should be preferred for SDF projection. By default, meshes are flagged as preferring projection and the decisions on which mesh to project is based on the triangle and vertex count. The model with the fewer triangles is projected onto the SDF of the more detailed mesh. If one of the meshes is set to prefer SDF projection (default) and the other is set to not prefer SDF projection, model flagged as preferring SDF projection will be projected onto the model flagged as not preferring, regardless of the detail of the respective meshes. Where both models are flagged as preferring no projection, the less detailed model will be projected as before.
+
+
+ Returns whether this mesh prefers SDF projection. whether this mesh prefers SDF projection.
+
+
+ Returns the mass properties of the mesh assuming unit density. The following relationship holds between mass and volume: mass = volume * density The mass of a unit density mesh is equal to its volume, so this function returns the volume of the mesh. Similarly, to obtain the localInertia of an identically shaped object with a uniform density of d, simply multiply the localInertia of the unit density mesh by d.
+
+
+ Constructor
+
+
+ Constructor
+
+
+ Destructor
+
+
+ Decrements the reference count of a tetrahedron mesh and releases it if the new reference count is zero.
+
+
+ Returns the number of vertices. number of vertices
+
+
+ Returns the vertices array of vertices
+
+
+ Returns the number of tetrahedrons. number of tetrahedrons
+
+
+ Returns the tetrahedron indices. The indices can be 16 or 32bit depending on the number of tetrahedrons in the mesh. Call getTetrahedronMeshFlags() to know if the indices are 16 or 32 bits. The number of indices is the number of tetrahedrons * 4. array of tetrahedrons
+
+
+ Reads the PxTetrahedronMesh flags. See the list of flags [`PxTetrahedronMeshFlags`] The values of the PxTetrahedronMesh flags.
+
+
+ Returns the tetrahedra remapping table. The tetrahedra are internally sorted according to various criteria. Hence the internal tetrahedron order does not always match the original (user-defined) order. The remapping table helps finding the old indices knowing the new ones: remapTable[ internalTetrahedronIndex ] = originalTetrahedronIndex the remapping table (or NULL if 'PxCookingParams::suppressTriangleMeshRemapTable' has been used)
+
+
+ Returns the local-space (vertex space) AABB from the tetrahedron mesh. local-space bounds
+
+
+ Decrements the reference count of a tetrahedron mesh and releases it if the new reference count is zero.
+
+
+ Const accecssor to the softbody's collision mesh.
+
+
+ Accecssor to the softbody's collision mesh.
+
+
+ Const accessor to the softbody's simulation mesh.
+
+
+ Accecssor to the softbody's simulation mesh.
+
+
+ Const accessor to the softbodies simulation state.
+
+
+ Accessor to the softbody's auxilary data like mass and rest pose information
+
+
+ Decrements the reference count of a tetrahedron mesh and releases it if the new reference count is zero.
+
+
+ Deletes the actor. Do not keep a reference to the deleted instance. If the actor belongs to a [`PxAggregate`] object, it is automatically removed from the aggregate.
+
+
+ Retrieves the type of actor. The actor type of the actor.
+
+
+ Retrieves the scene which this actor belongs to. Owner Scene. NULL if not part of a scene.
+
+
+ Sets a name string for the object that can be retrieved with getName(). This is for debugging and is not used by the SDK. The string is not copied by the SDK, only the pointer is stored. Default: NULL
+
+
+ Retrieves the name string set with setName(). Name string associated with object.
+
+
+ Retrieves the axis aligned bounding box enclosing the actor. It is not allowed to use this method while the simulation is running (except during PxScene::collide(), in PxContactModifyCallback or in contact report callbacks). The actor's bounding box.
+
+
+ Raises or clears a particular actor flag. See the list of flags [`PxActorFlag`] Sleeping: Does NOT wake the actor up automatically.
+
+
+ Sets the actor flags. See the list of flags [`PxActorFlag`]
+
+
+ Reads the PxActor flags. See the list of flags [`PxActorFlag`] The values of the PxActor flags.
+
+
+ Assigns dynamic actors a dominance group identifier. PxDominanceGroup is a 5 bit group identifier (legal range from 0 to 31). The PxScene::setDominanceGroupPair() lets you set certain behaviors for pairs of dominance groups. By default every dynamic actor is created in group 0. Default: 0 Sleeping: Changing the dominance group does NOT wake the actor up automatically.
+
+
+ Retrieves the value set with setDominanceGroup(). The dominance group of this actor.
+
+
+ Sets the owner client of an actor. This cannot be done once the actor has been placed into a scene. Default: PX_DEFAULT_CLIENT
+
+
+ Returns the owner client that was specified at creation time. This value cannot be changed once the object is placed into the scene.
+
+
+ Retrieves the aggregate the actor might be a part of. The aggregate the actor is a part of, or NULL if the actor does not belong to an aggregate.
+
+
+ Deletes the aggregate object. Deleting the PxAggregate object does not delete the aggregated actors. If the PxAggregate object belongs to a scene, the aggregated actors are automatically re-inserted in that scene. If you intend to delete both the PxAggregate and its actors, it is best to release the actors first, then release the PxAggregate when it is empty.
+
+
+ Adds an actor to the aggregate object. A warning is output if the total number of actors is reached, or if the incoming actor already belongs to an aggregate. If the aggregate belongs to a scene, adding an actor to the aggregate also adds the actor to that scene. If the actor already belongs to a scene, a warning is output and the call is ignored. You need to remove the actor from the scene first, before adding it to the aggregate. When a BVH is provided the actor shapes are grouped together. The scene query pruning structure inside PhysX SDK will store/update one bound per actor. The scene queries against such an actor will query actor bounds and then make a local space query against the provided BVH, which is in actor's local space.
+
+
+ Removes an actor from the aggregate object. A warning is output if the incoming actor does not belong to the aggregate. Otherwise the actor is removed from the aggregate. If the aggregate belongs to a scene, the actor is reinserted in that scene. If you intend to delete the actor, it is best to call [`PxActor::release`]() directly. That way the actor will be automatically removed from its aggregate (if any) and not reinserted in a scene.
+
+
+ Adds an articulation to the aggregate object. A warning is output if the total number of actors is reached (every articulation link counts as an actor), or if the incoming articulation already belongs to an aggregate. If the aggregate belongs to a scene, adding an articulation to the aggregate also adds the articulation to that scene. If the articulation already belongs to a scene, a warning is output and the call is ignored. You need to remove the articulation from the scene first, before adding it to the aggregate.
+
+
+ Removes an articulation from the aggregate object. A warning is output if the incoming articulation does not belong to the aggregate. Otherwise the articulation is removed from the aggregate. If the aggregate belongs to a scene, the articulation is reinserted in that scene. If you intend to delete the articulation, it is best to call [`PxArticulationReducedCoordinate::release`]() directly. That way the articulation will be automatically removed from its aggregate (if any) and not reinserted in a scene.
+
+
+ Returns the number of actors contained in the aggregate. You can use [`getActors`]() to retrieve the actor pointers. Number of actors contained in the aggregate.
+
+
+ Retrieves max amount of shapes that can be contained in the aggregate. Max shape size.
+
+
+ Retrieve all actors contained in the aggregate. You can retrieve the number of actor pointers by calling [`getNbActors`]() Number of actor pointers written to the buffer.
+
+
+ Retrieves the scene which this aggregate belongs to. Owner Scene. NULL if not part of a scene.
+
+
+ Retrieves aggregate's self-collision flag. self-collision flag
+
+
+ Visualize joint frames
+
+
+ Visualize joint linear limit
+
+
+ Visualize joint angular limit
+
+
+ Visualize limit cone
+
+
+ Visualize joint double cone
+
+
+ Visualize line
+
+
+ Pre-simulation data preparation when the constraint is marked dirty, this function is called at the start of the simulation step for the SDK to copy the constraint data block.
+
+
+ Constraint release callback When the SDK deletes a PxConstraint object this function is called by the SDK. In general custom constraints should not be deleted directly by applications: rather, the constraint should respond to a release() request by calling PxConstraint::release(), then wait for this call to release its own resources. This function is also called when a PxConstraint object is deleted on cleanup due to destruction of the PxPhysics object.
+
+
+ Center-of-mass shift callback This function is called by the SDK when the CoM of one of the actors is moved. Since the API specifies constraint positions relative to actors, and the constraint shader functions are supplied with coordinates relative to bodies, some synchronization is usually required when the application moves an object's center of mass.
+
+
+ Origin shift callback This function is called by the SDK when the scene origin gets shifted and allows to adjust custom data which contains world space transforms. If the adjustments affect constraint shader data, it is necessary to call PxConstraint::markDirty() to make sure that the data gets synced at the beginning of the next simulation step.
+
+
+ Obtain a reference to a PxBase interface if the constraint has one. If the constraint does not implement the PxBase interface, it should return NULL.
+
+
+ Obtain the pointer to the constraint's constant data
+
+
+ Let the connector know it has been connected to a constraint.
+
+
+ virtual destructor
+
+
+ Allocates constraint data. It is the application's responsibility to release this memory after PxSolveConstraints has completed. The allocated memory. This address must be 16-byte aligned.
+
+
+ Allocates friction data. Friction data can be retained by the application for a given pair and provided as an input to PxSolverContactDesc to improve simulation stability. It is the application's responsibility to release this memory. If this memory is released, the application should ensure it does not pass pointers to this memory to PxSolverContactDesc. The allocated memory. This address must be 4-byte aligned.
+
+
+ Sets the spring rest length for the sub-tendon from the root to this leaf attachment. Setting this on non-leaf attachments has no effect.
+
+
+ Gets the spring rest length for the sub-tendon from the root to this leaf attachment. The rest length.
+
+
+ Sets the low and high limit on the length of the sub-tendon from the root to this leaf attachment. Setting this on non-leaf attachments has no effect.
+
+
+ Gets the low and high limit on the length of the sub-tendon from the root to this leaf attachment. Struct with the low and high limit.
+
+
+ Sets the attachment's relative offset in the link actor frame.
+
+
+ Gets the attachment's relative offset in the link actor frame. The relative offset in the link actor frame.
+
+
+ Sets the attachment coefficient.
+
+
+ Gets the attachment coefficient. The scale that the distance between this attachment and its parent is multiplied by when summing up the spatial tendon's length.
+
+
+ Gets the articulation link. The articulation link that this attachment is attached to.
+
+
+ Gets the parent attachment. The parent attachment.
+
+
+ Indicates that this attachment is a leaf, and thus defines a sub-tendon from the root to this attachment. True: This attachment is a leaf and has zero children; False: Not a leaf.
+
+
+ Gets the spatial tendon that the attachment is a part of. The tendon.
+
+
+ Releases the attachment. Releasing the attachment is not allowed while the articulation is in a scene. In order to release the attachment, remove and then re-add the articulation to the scene.
+
+
+ Returns the string name of the dynamic type. The string name.
+
+
+ Sets the tendon joint coefficient. RecipCoefficient is commonly expected to be 1/coefficient, but it can be set to different values to tune behavior; for example, zero can be used to have a joint axis only participate in the length computation of the tendon, but not have any tendon force applied to it.
+
+
+ Gets the tendon joint coefficient.
+
+
+ Gets the articulation link. The articulation link (and its incoming joint in particular) that this tendon joint is associated with.
+
+
+ Gets the parent tendon joint. The parent tendon joint.
+
+
+ Gets the tendon that the joint is a part of. The tendon.
+
+
+ Releases a tendon joint. Releasing a tendon joint is not allowed while the articulation is in a scene. In order to release the joint, remove and then re-add the articulation to the scene.
+
+
+ Returns the string name of the dynamic type. The string name.
+
+
+ Sets the spring stiffness term acting on the tendon length.
+
+
+ Gets the spring stiffness of the tendon. The spring stiffness.
+
+
+ Sets the damping term acting both on the tendon length and tendon-length limits.
+
+
+ Gets the damping term acting both on the tendon length and tendon-length limits. The damping term.
+
+
+ Sets the limit stiffness term acting on the tendon's length limits. For spatial tendons, this parameter applies to all its leaf attachments / sub-tendons.
+
+
+ Gets the limit stiffness term acting on the tendon's length limits. For spatial tendons, this parameter applies to all its leaf attachments / sub-tendons. The limit stiffness term.
+
+
+ Sets the length offset term for the tendon. An offset defines an amount to be added to the accumulated length computed for the tendon. It allows the application to actuate the tendon by shortening or lengthening it.
+
+
+ Gets the length offset term for the tendon. The offset term.
+
+
+ Gets the articulation that the tendon is a part of. The articulation.
+
+
+ Releases a tendon to remove it from the articulation and free its associated memory. When an articulation is released, its attached tendons are automatically released. Releasing a tendon is not allowed while the articulation is in a scene. In order to release the tendon, remove and then re-add the articulation to the scene.
+
+
+ Creates an articulation attachment and adds it to the list of children in the parent attachment. Creating an attachment is not allowed while the articulation is in a scene. In order to add the attachment, remove and then re-add the articulation to the scene. The newly-created attachment if creation was successful, otherwise a null pointer.
+
+
+ Fills a user-provided buffer of attachment pointers with the set of attachments. The number of attachments that were filled into the user buffer.
+
+
+ Returns the number of attachments in the tendon. The number of attachments.
+
+
+ Returns the string name of the dynamic type. The string name.
+
+
+ Creates an articulation tendon joint and adds it to the list of children in the parent tendon joint. Creating a tendon joint is not allowed while the articulation is in a scene. In order to add the joint, remove and then re-add the articulation to the scene. The newly-created tendon joint if creation was successful, otherwise a null pointer. - The axis motion must not be configured as PxArticulationMotion::eLOCKED. - The axis cannot be part of a fixed joint, i.e. joint configured as PxArticulationJointType::eFIX.
+
+
+ Fills a user-provided buffer of tendon-joint pointers with the set of tendon joints. The number of tendon joints filled into the user buffer.
+
+
+ Returns the number of tendon joints in the tendon. The number of tendon joints.
+
+
+ Sets the spring rest length of the tendon. The accumulated \"length\" of a fixed tendon is a linear combination of the joint axis positions that the tendon is associated with, scaled by the respective tendon joints' coefficients. As such, when the joint positions of all joints are zero, the accumulated length of a fixed tendon is zero. The spring of the tendon is not exerting any force on the articulation when the rest length is equal to the tendon's accumulated length plus the tendon offset.
+
+
+ Gets the spring rest length of the tendon. The spring rest length of the tendon.
+
+
+ Sets the low and high limit on the length of the tendon. The limits, together with the damping and limit stiffness parameters, act on the accumulated length of the tendon.
+
+
+ Gets the low and high limit on the length of the tendon. Struct with the low and high limit.
+
+
+ Returns the string name of the dynamic type. The string name.
+
+
+ Releases an articulation cache.
+
+
+ Releases the sensor. Releasing a sensor is not allowed while the articulation is in a scene. In order to release a sensor, remove and then re-add the articulation to the scene.
+
+
+ Returns the spatial force in the local frame of the sensor. The spatial force. This call is not allowed while the simulation is running except in a split simulation during [`PxScene::collide`]() and up to #PxScene::advance(), and in PxContactModifyCallback or in contact report callbacks.
+
+
+ Returns the relative pose between this sensor and the body frame of the link that the sensor is attached to. The link body frame is at the center of mass and aligned with the principal axes of inertia, see PxRigidBody::getCMassLocalPose. The transform link body frame -> sensor frame.
+
+
+ Sets the relative pose between this sensor and the body frame of the link that the sensor is attached to. The link body frame is at the center of mass and aligned with the principal axes of inertia, see PxRigidBody::getCMassLocalPose. Setting the sensor relative pose is not allowed while the articulation is in a scene. In order to set the pose, remove and then re-add the articulation to the scene.
+
+
+ Returns the link that this sensor is attached to. A pointer to the link.
+
+
+ Returns the index of this sensor inside the articulation. The return value is only valid for sensors attached to articulations that are in a scene. The low-level index, or 0xFFFFFFFF if the articulation is not in a scene.
+
+
+ Returns the articulation that this sensor is part of. A pointer to the articulation.
+
+
+ Returns the sensor's flags. The current set of flags of the sensor.
+
+
+ Sets a flag of the sensor. Setting the sensor flags is not allowed while the articulation is in a scene. In order to set the flags, remove and then re-add the articulation to the scene.
+
+
+ Returns the string name of the dynamic type. The string name.
+
+
+ Returns the scene which this articulation belongs to. Owner Scene. NULL if not part of a scene.
+
+
+ Sets the solver iteration counts for the articulation. The solver iteration count determines how accurately contacts, drives, and limits are resolved. Setting a higher position iteration count may therefore help in scenarios where the articulation is subject to many constraints; for example, a manipulator articulation with drives and joint limits that is grasping objects, or several such articulations interacting through contacts. Other situations where higher position iterations may improve simulation fidelity are: large mass ratios within the articulation or between the articulation and an object in contact with it; or strong drives in the articulation being used to manipulate a light object. If intersecting bodies are being depenetrated too violently, increase the number of velocity iterations. More velocity iterations will drive the relative exit velocity of the intersecting objects closer to the correct value given the restitution. This call may not be made during simulation.
+
+
+ Returns the solver iteration counts.
+
+
+ Returns true if this articulation is sleeping. When an actor does not move for a period of time, it is no longer simulated in order to save time. This state is called sleeping. However, because the object automatically wakes up when it is either touched by an awake object, or a sleep-affecting property is changed by the user, the entire sleep mechanism should be transparent to the user. An articulation can only go to sleep if all links are ready for sleeping. An articulation is guaranteed to be awake if at least one of the following holds: The wake counter is positive (see [`setWakeCounter`]()). The linear or angular velocity of any link is non-zero. A non-zero force or torque has been applied to the articulation or any of its links. If an articulation is sleeping, the following state is guaranteed: The wake counter is zero. The linear and angular velocity of all links is zero. There is no force update pending. When an articulation gets inserted into a scene, it will be considered asleep if all the points above hold, else it will be treated as awake. If an articulation is asleep after the call to [`PxScene::fetchResults`]() returns, it is guaranteed that the poses of the links were not changed. You can use this information to avoid updating the transforms of associated objects. True if the articulation is sleeping. This call may only be made on articulations that are in a scene, and may not be made during simulation, except in a split simulation in-between [`PxScene::fetchCollision`] and #PxScene::advance.
+
+
+ Sets the mass-normalized energy threshold below which the articulation may go to sleep. The articulation will sleep if the energy of each link is below this threshold. This call may not be made during simulation.
+
+
+ Returns the mass-normalized energy below which the articulation may go to sleep. The energy threshold for sleeping.
+
+
+ Sets the mass-normalized kinetic energy threshold below which the articulation may participate in stabilization. Articulations whose kinetic energy divided by their mass is above this threshold will not participate in stabilization. This value has no effect if PxSceneFlag::eENABLE_STABILIZATION was not enabled on the PxSceneDesc. Default: 0.01 * PxTolerancesScale::speed * PxTolerancesScale::speed This call may not be made during simulation.
+
+
+ Returns the mass-normalized kinetic energy below which the articulation may participate in stabilization. Articulations whose kinetic energy divided by their mass is above this threshold will not participate in stabilization. The energy threshold for participating in stabilization.
+
+
+ Sets the wake counter for the articulation in seconds. - The wake counter value determines the minimum amount of time until the articulation can be put to sleep. - An articulation will not be put to sleep if the energy is above the specified threshold (see [`setSleepThreshold`]()) or if other awake objects are touching it. - Passing in a positive value will wake up the articulation automatically. Default: 0.4s (which corresponds to 20 frames for a time step of 0.02s) This call may not be made during simulation, except in a split simulation in-between [`PxScene::fetchCollision`] and #PxScene::advance.
+
+
+ Returns the wake counter of the articulation in seconds. The wake counter of the articulation in seconds. This call may not be made during simulation, except in a split simulation in-between [`PxScene::fetchCollision`] and #PxScene::advance.
+
+
+ Wakes up the articulation if it is sleeping. - The articulation will get woken up and might cause other touching objects to wake up as well during the next simulation step. - This will set the wake counter of the articulation to the value specified in [`PxSceneDesc::wakeCounterResetValue`]. This call may only be made on articulations that are in a scene, and may not be made during simulation, except in a split simulation in-between [`PxScene::fetchCollision`] and #PxScene::advance.
+
+
+ Forces the articulation to sleep. - The articulation will stay asleep during the next simulation step if not touched by another non-sleeping actor. - This will set any applied force, the velocity, and the wake counter of all bodies in the articulation to zero. This call may not be made during simulation, and may only be made on articulations that are in a scene.
+
+
+ Sets the limit on the magnitude of the linear velocity of the articulation's center of mass. - The limit acts on the linear velocity of the entire articulation. The velocity is calculated from the total momentum and the spatial inertia of the articulation. - The limit only applies to floating-base articulations. - A benefit of the COM velocity limit is that it is evenly applied to the whole articulation, which results in fewer visual artifacts compared to link rigid-body damping or joint-velocity limits. However, these per-link or per-degree-of-freedom limits may still help avoid numerical issues. This call may not be made during simulation.
+
+
+ Gets the limit on the magnitude of the linear velocity of the articulation's center of mass. The maximal linear velocity magnitude.
+
+
+ Sets the limit on the magnitude of the angular velocity at the articulation's center of mass. - The limit acts on the angular velocity of the entire articulation. The velocity is calculated from the total momentum and the spatial inertia of the articulation. - The limit only applies to floating-base articulations. - A benefit of the COM velocity limit is that it is evenly applied to the whole articulation, which results in fewer visual artifacts compared to link rigid-body damping or joint-velocity limits. However, these per-link or per-degree-of-freedom limits may still help avoid numerical issues. This call may not be made during simulation.
+
+
+ Gets the limit on the magnitude of the angular velocity at the articulation's center of mass. The maximal angular velocity magnitude.
+
+
+ Adds a link to the articulation with default attribute values. The new link, or NULL if the link cannot be created. Creating a link is not allowed while the articulation is in a scene. In order to add a link, remove and then re-add the articulation to the scene.
+
+
+ Releases the articulation, and all its links and corresponding joints. Attached sensors and tendons are released automatically when the articulation is released. This call may not be made during simulation.
+
+
+ Returns the number of links in the articulation. The number of links.
+
+
+ Returns the set of links in the articulation in the order that they were added to the articulation using createLink. The number of links written into the buffer.
+
+
+ Returns the number of shapes in the articulation. The number of shapes.
+
+
+ Sets a name string for the articulation that can be retrieved with getName(). This is for debugging and is not used by the SDK. The string is not copied by the SDK, only the pointer is stored.
+
+
+ Returns the name string set with setName(). Name string associated with the articulation.
+
+
+ Returns the axis-aligned bounding box enclosing the articulation. The articulation's bounding box. It is not allowed to use this method while the simulation is running, except in a split simulation during [`PxScene::collide`]() and up to #PxScene::advance(), and in PxContactModifyCallback or in contact report callbacks.
+
+
+ Returns the aggregate the articulation might be a part of. The aggregate the articulation is a part of, or NULL if the articulation does not belong to an aggregate.
+
+
+ Sets flags on the articulation. This call may not be made during simulation.
+
+
+ Raises or clears a flag on the articulation. This call may not be made during simulation.
+
+
+ Returns the articulation's flags. The flags.
+
+
+ Returns the total number of joint degrees-of-freedom (DOFs) of the articulation. - The six DOFs of the base of a floating-base articulation are not included in this count. - Example: Both a fixed-base and a floating-base double-pendulum with two revolute joints will have getDofs() == 2. - The return value is only valid for articulations that are in a scene. The number of joint DOFs, or 0xFFFFFFFF if the articulation is not in a scene.
+
+
+ Creates an articulation cache that can be used to read and write internal articulation data. - When the structure of the articulation changes (e.g. adding a link or sensor) after the cache was created, the cache needs to be released and recreated. - Free the memory allocated for the cache by calling the release() method on the cache. - Caches can only be created by articulations that are in a scene. The cache, or NULL if the articulation is not in a scene.
+
+
+ Returns the size of the articulation cache in bytes. - The size does not include: the user-allocated memory for the coefficient matrix or lambda values; the scratch-related memory/members; and the cache version. See comment in [`PxArticulationCache`]. - The return value is only valid for articulations that are in a scene. The byte size of the cache, or 0xFFFFFFFF if the articulation is not in a scene.
+
+
+ Zeroes all data in the articulation cache, except user-provided and scratch memory, and cache version. This call may only be made on articulations that are in a scene.
+
+
+ Applies the data in the cache to the articulation. This call wakes the articulation if it is sleeping, and the autowake parameter is true (default) or: - a nonzero joint velocity is applied or - a nonzero joint force is applied or - a nonzero root velocity is applied This call may only be made on articulations that are in a scene, and may not be made during simulation.
+
+
+ Copies internal data of the articulation to the cache. This call may only be made on articulations that are in a scene, and may not be made during simulation.
+
+
+ Converts maximal-coordinate joint DOF data to reduced coordinates. - Indexing into the maximal joint DOF data is via the link's low-level index minus 1 (the root link is not included). - The reduced-coordinate data follows the cache indexing convention, see PxArticulationCache::jointVelocity. The articulation must be in a scene.
+
+
+ Converts reduced-coordinate joint DOF data to maximal coordinates. - Indexing into the maximal joint DOF data is via the link's low-level index minus 1 (the root link is not included). - The reduced-coordinate data follows the cache indexing convention, see PxArticulationCache::jointVelocity. The articulation must be in a scene.
+
+
+ Prepares common articulation data based on articulation pose for inverse dynamics calculations. Usage: 1. Set articulation pose (joint positions and base transform) via articulation cache and applyCache(). 1. Call commonInit. 1. Call inverse dynamics computation method. This call may only be made on articulations that are in a scene, and may not be made during simulation.
+
+
+ Computes the joint DOF forces required to counteract gravitational forces for the given articulation pose. - Inputs - Articulation pose (joint positions + base transform). - Outputs - Joint forces to counteract gravity (in cache). - The joint forces returned are determined purely by gravity for the articulation in the current joint and base pose, and joints at rest; i.e. external forces, joint velocities, and joint accelerations are set to zero. Joint drives are also not considered in the computation. - commonInit() must be called before the computation, and after setting the articulation pose via applyCache(). This call may only be made on articulations that are in a scene, and may not be made during simulation.
+
+
+ Computes the joint DOF forces required to counteract Coriolis and centrifugal forces for the given articulation state. - Inputs - Articulation state (joint positions and velocities (in cache), and base transform and spatial velocity). - Outputs - Joint forces to counteract Coriolis and centrifugal forces (in cache). - The joint forces returned are determined purely by the articulation's state; i.e. external forces, gravity, and joint accelerations are set to zero. Joint drives and potential damping terms, such as link angular or linear damping, or joint friction, are also not considered in the computation. - Prior to the computation, update/set the base spatial velocity with PxArticulationCache::rootLinkData and applyCache(). - commonInit() must be called before the computation, and after setting the articulation pose via applyCache(). This call may only be made on articulations that are in a scene, and may not be made during simulation.
+
+
+ Computes the joint DOF forces required to counteract external spatial forces applied to articulation links. - Inputs - External forces on links (in cache), articulation pose (joint positions + base transform). - Outputs - Joint forces to counteract the external forces (in cache). - Only the external spatial forces provided in the cache and the articulation pose are considered in the computation. - The external spatial forces are with respect to the links' centers of mass, and not the actor's origin. - commonInit() must be called before the computation, and after setting the articulation pose via applyCache(). This call may only be made on articulations that are in a scene, and may not be made during simulation.
+
+
+ Computes the joint accelerations for the given articulation state and joint forces. - Inputs - Joint forces (in cache) and articulation state (joint positions and velocities (in cache), and base transform and spatial velocity). - Outputs - Joint accelerations (in cache). - The computation includes Coriolis terms and gravity. However, joint drives and potential damping terms are not considered in the computation (for example, linear link damping or joint friction). - Prior to the computation, update/set the base spatial velocity with PxArticulationCache::rootLinkData and applyCache(). - commonInit() must be called before the computation, and after setting the articulation pose via applyCache(). This call may only be made on articulations that are in a scene, and may not be made during simulation.
+
+
+ Computes the joint forces for the given articulation state and joint accelerations, not considering gravity. - Inputs - Joint accelerations (in cache) and articulation state (joint positions and velocities (in cache), and base transform and spatial velocity). - Outputs - Joint forces (in cache). - The computation includes Coriolis terms. However, joint drives and potential damping terms are not considered in the computation (for example, linear link damping or joint friction). - Prior to the computation, update/set the base spatial velocity with PxArticulationCache::rootLinkData and applyCache(). - commonInit() must be called before the computation, and after setting the articulation pose via applyCache(). This call may only be made on articulations that are in a scene, and may not be made during simulation.
+
+
+ Compute the dense Jacobian for the articulation in world space, including the DOFs of a potentially floating base. This computes the dense representation of an inherently sparse matrix. Multiplication with this matrix maps joint space velocities to world-space linear and angular (i.e. spatial) velocities of the centers of mass of the links. This call may only be made on articulations that are in a scene, and may not be made during simulation.
+
+
+ Computes the coefficient matrix for contact forces. - The matrix dimension is getCoefficientMatrixSize() = getDofs() * getNbLoopJoints(), and the DOF (column) indexing follows the internal DOF order, see PxArticulationCache::jointVelocity. - Each column in the matrix is the joint forces effected by a contact based on impulse strength 1. - The user must allocate memory for PxArticulationCache::coefficientMatrix where the required size of the PxReal array is equal to getCoefficientMatrixSize(). - commonInit() must be called before the computation, and after setting the articulation pose via applyCache(). This call may only be made on articulations that are in a scene, and may not be made during simulation.
+
+
+ Computes the lambda values when the test impulse is 1. - The user must allocate memory for PxArticulationCache::lambda where the required size of the PxReal array is equal to getNbLoopJoints(). - commonInit() must be called before the computation, and after setting the articulation pose via applyCache(). True if convergence was achieved within maxIter; False if convergence was not achieved or the operation failed otherwise. This call may only be made on articulations that are in a scene, and may not be made during simulation.
+
+
+ Compute the joint-space inertia matrix that maps joint accelerations to joint forces: forces = M * accelerations. - Inputs - Articulation pose (joint positions and base transform). - Outputs - Mass matrix (in cache). commonInit() must be called before the computation, and after setting the articulation pose via applyCache(). This call may only be made on articulations that are in a scene, and may not be made during simulation.
+
+
+ Adds a loop joint to the articulation system for inverse dynamics. This call may not be made during simulation.
+
+
+ Removes a loop joint from the articulation for inverse dynamics. This call may not be made during simulation.
+
+
+ Returns the number of loop joints in the articulation for inverse dynamics. The number of loop joints.
+
+
+ Returns the set of loop constraints (i.e. joints) in the articulation. The number of constraints written into the buffer.
+
+
+ Returns the required size of the coefficient matrix in the articulation. Size of the coefficient matrix (equal to getDofs() * getNbLoopJoints()). This call may only be made on articulations that are in a scene.
+
+
+ Sets the root link transform (world to actor frame). - For performance, prefer PxArticulationCache::rootLinkData to set the root link transform in a batch articulation state update. - Use updateKinematic() after all state updates to the articulation via non-cache API such as this method, in order to update link states for the next simulation frame or querying. This call may not be made during simulation.
+
+
+ Returns the root link transform (world to actor frame). For performance, prefer PxArticulationCache::rootLinkData to get the root link transform in a batch query. The root link transform. This call is not allowed while the simulation is running except in a split simulation during [`PxScene::collide`]() and up to #PxScene::advance(), and in PxContactModifyCallback or in contact report callbacks.
+
+
+ Sets the root link linear center-of-mass velocity. - The linear velocity is with respect to the link's center of mass and not the actor frame origin. - For performance, prefer PxArticulationCache::rootLinkData to set the root link velocity in a batch articulation state update. - The articulation is woken up if the input velocity is nonzero (ignoring autowake) and the articulation is in a scene. - Use updateKinematic() after all state updates to the articulation via non-cache API such as this method, in order to update link states for the next simulation frame or querying. This call may not be made during simulation, except in a split simulation in-between [`PxScene::fetchCollision`] and #PxScene::advance.
+
+
+ Gets the root link center-of-mass linear velocity. - The linear velocity is with respect to the link's center of mass and not the actor frame origin. - For performance, prefer PxArticulationCache::rootLinkData to get the root link velocity in a batch query. The root link center-of-mass linear velocity. This call is not allowed while the simulation is running except in a split simulation during [`PxScene::collide`]() and up to #PxScene::advance(), and in PxContactModifyCallback or in contact report callbacks.
+
+
+ Sets the root link angular velocity. - For performance, prefer PxArticulationCache::rootLinkData to set the root link velocity in a batch articulation state update. - The articulation is woken up if the input velocity is nonzero (ignoring autowake) and the articulation is in a scene. - Use updateKinematic() after all state updates to the articulation via non-cache API such as this method, in order to update link states for the next simulation frame or querying. This call may not be made during simulation, except in a split simulation in-between [`PxScene::fetchCollision`] and #PxScene::advance.
+
+
+ Gets the root link angular velocity. For performance, prefer PxArticulationCache::rootLinkData to get the root link velocity in a batch query. The root link angular velocity. This call is not allowed while the simulation is running except in a split simulation during [`PxScene::collide`]() and up to #PxScene::advance(), and in PxContactModifyCallback or in contact report callbacks.
+
+
+ Returns the (classical) link acceleration in world space for the given low-level link index. - The returned acceleration is not a spatial, but a classical, i.e. body-fixed acceleration (https://en.wikipedia.org/wiki/Spatial_acceleration). - The (linear) acceleration is with respect to the link's center of mass and not the actor frame origin. The link's center-of-mass classical acceleration, or 0 if the call is made before the articulation participated in a first simulation step. This call may only be made on articulations that are in a scene, and it is not allowed to use this method while the simulation is running except in a split simulation during [`PxScene::collide`]() and up to #PxScene::advance(), and in PxContactModifyCallback or in contact report callbacks.
+
+
+ Returns the GPU articulation index. The GPU index, or 0xFFFFFFFF if the articulation is not in a scene or PxSceneFlag::eSUPPRESS_READBACK is not set.
+
+
+ Creates a spatial tendon to attach to the articulation with default attribute values. The new spatial tendon. Creating a spatial tendon is not allowed while the articulation is in a scene. In order to add the tendon, remove and then re-add the articulation to the scene.
+
+
+ Creates a fixed tendon to attach to the articulation with default attribute values. The new fixed tendon. Creating a fixed tendon is not allowed while the articulation is in a scene. In order to add the tendon, remove and then re-add the articulation to the scene.
+
+
+ Creates a force sensor attached to a link of the articulation. The new sensor. Creating a sensor is not allowed while the articulation is in a scene. In order to add the sensor, remove and then re-add the articulation to the scene.
+
+
+ Returns the spatial tendons attached to the articulation. The order of the tendons in the buffer is not necessarily identical to the order in which the tendons were added to the articulation. The number of tendons written into the buffer.
+
+
+ Returns the number of spatial tendons in the articulation. The number of tendons.
+
+
+ Returns the fixed tendons attached to the articulation. The order of the tendons in the buffer is not necessarily identical to the order in which the tendons were added to the articulation. The number of tendons written into the buffer.
+
+
+ Returns the number of fixed tendons in the articulation. The number of tendons.
+
+
+ Returns the sensors attached to the articulation. The order of the sensors in the buffer is not necessarily identical to the order in which the sensors were added to the articulation. The number of sensors written into the buffer.
+
+
+ Returns the number of sensors in the articulation. The number of sensors.
+
+
+ Update link velocities and/or positions in the articulation. For performance, prefer the PxArticulationCache API that performs batch articulation state updates. If the application updates the root state (position and velocity) or joint state via any combination of the non-cache API calls - setRootGlobalPose(), setRootLinearVelocity(), setRootAngularVelocity() - PxArticulationJointReducedCoordinate::setJointPosition(), PxArticulationJointReducedCoordinate::setJointVelocity() the application needs to call this method after the state setting in order to update the link states for the next simulation frame or querying. Use - PxArticulationKinematicFlag::ePOSITION after any changes to the articulation root or joint positions using non-cache API calls. Updates links' positions and velocities. - PxArticulationKinematicFlag::eVELOCITY after velocity-only changes to the articulation root or joints using non-cache API calls. Updates links' velocities only. This call may only be made on articulations that are in a scene, and may not be made during simulation.
+
+
+ Gets the parent articulation link of this joint. The parent link.
+
+
+ Sets the joint pose in the parent link actor frame. This call is not allowed while the simulation is running.
+
+
+ Gets the joint pose in the parent link actor frame. The joint pose.
+
+
+ Gets the child articulation link of this joint. The child link.
+
+
+ Sets the joint pose in the child link actor frame. This call is not allowed while the simulation is running.
+
+
+ Gets the joint pose in the child link actor frame. The joint pose.
+
+
+ Sets the joint type (e.g. revolute). Setting the joint type is not allowed while the articulation is in a scene. In order to set the joint type, remove and then re-add the articulation to the scene.
+
+
+ Gets the joint type. The joint type.
+
+
+ Sets the joint motion for a given axis. Setting the motion of joint axes is not allowed while the articulation is in a scene. In order to set the motion, remove and then re-add the articulation to the scene.
+
+
+ Returns the joint motion for the given axis. The joint motion of the given axis.
+
+
+ Sets the joint limits for a given axis. - The motion of the corresponding axis should be set to PxArticulationMotion::eLIMITED in order for the limits to be enforced. - The lower limit should be strictly smaller than the higher limit. If the limits should be equal, use PxArticulationMotion::eLOCKED and an appropriate offset in the parent/child joint frames. This call is not allowed while the simulation is running. For spherical joints, limit.min and limit.max must both be in range [-Pi, Pi].
+
+
+ Returns the joint limits for a given axis. The joint limits.
+
+
+ Configures a joint drive for the given axis. See PxArticulationDrive for parameter details; and the manual for further information, and the drives' implicit spring-damper (i.e. PD control) implementation in particular. This call is not allowed while the simulation is running.
+
+
+ Gets the joint drive configuration for the given axis. The drive parameters.
+
+
+ Sets the joint drive position target for the given axis. The target units are linear units (equivalent to scene units) for a translational axis, or rad for a rotational axis. This call is not allowed while the simulation is running. For spherical joints, target must be in range [-Pi, Pi]. The target is specified in the parent frame of the joint. If Gp, Gc are the parent and child actor poses in the world frame and Lp, Lc are the parent and child joint frames expressed in the parent and child actor frames then the joint will drive the parent and child links to poses that obey Gp * Lp * J = Gc * Lc. For joints restricted to angular motion, J has the form PxTranfsorm(PxVec3(PxZero), PxExp(PxVec3(twistTarget, swing1Target, swing2Target))). For joints restricted to linear motion, J has the form PxTransform(PxVec3(XTarget, YTarget, ZTarget), PxQuat(PxIdentity)). For spherical joints with more than 1 degree of freedom, the joint target angles taken together can collectively represent a rotation of greater than Pi around a vector. When this happens the rotation that matches the joint drive target is not the shortest path rotation. The joint pose J that is the outcome after driving to the target pose will always be the equivalent of the shortest path rotation.
+
+
+ Returns the joint drive position target for the given axis. The target position.
+
+
+ Sets the joint drive velocity target for the given axis. The target units are linear units (equivalent to scene units) per second for a translational axis, or radians per second for a rotational axis. This call is not allowed while the simulation is running.
+
+
+ Returns the joint drive velocity target for the given axis. The target velocity.
+
+
+ Sets the joint armature for the given axis. - The armature is directly added to the joint-space spatial inertia of the corresponding axis. - The armature is in mass units for a prismatic (i.e. linear) joint, and in mass units * (scene linear units)^2 for a rotational joint. This call is not allowed while the simulation is running.
+
+
+ Gets the joint armature for the given axis. The armature set on the given axis.
+
+
+ Sets the joint friction coefficient, which applies to all joint axes. - The joint friction is unitless and relates the magnitude of the spatial force [F_trans, T_trans] transmitted from parent to child link to the maximal friction force F_resist that may be applied by the solver to resist joint motion, per axis; i.e. |F_resist| < coefficient * (|F_trans| + |T_trans|), where F_resist may refer to a linear force or torque depending on the joint axis. - The simulated friction effect is therefore similar to static and Coulomb friction. In order to simulate dynamic joint friction, use a joint drive with zero stiffness and zero velocity target, and an appropriately dimensioned damping parameter. This call is not allowed while the simulation is running.
+
+
+ Gets the joint friction coefficient. The joint friction coefficient.
+
+
+ Sets the maximal joint velocity enforced for all axes. - The solver will apply appropriate joint-space impulses in order to enforce the per-axis joint-velocity limit. - The velocity units are linear units (equivalent to scene units) per second for a translational axis, or radians per second for a rotational axis. This call is not allowed while the simulation is running.
+
+
+ Gets the maximal joint velocity enforced for all axes. The maximal per-axis joint velocity.
+
+
+ Sets the joint position for the given axis. - For performance, prefer PxArticulationCache::jointPosition to set joint positions in a batch articulation state update. - Use PxArticulationReducedCoordinate::updateKinematic after all state updates to the articulation via non-cache API such as this method, in order to update link states for the next simulation frame or querying. This call is not allowed while the simulation is running. For spherical joints, jointPos must be in range [-Pi, Pi]. Joint position is specified in the parent frame of the joint. If Gp, Gc are the parent and child actor poses in the world frame and Lp, Lc are the parent and child joint frames expressed in the parent and child actor frames then the parent and child links will be given poses that obey Gp * Lp * J = Gc * Lc with J denoting the joint pose. For joints restricted to angular motion, J has the form PxTranfsorm(PxVec3(PxZero), PxExp(PxVec3(twistPos, swing1Pos, swing2Pos))). For joints restricted to linear motion, J has the form PxTransform(PxVec3(xPos, yPos, zPos), PxQuat(PxIdentity)). For spherical joints with more than 1 degree of freedom, the input joint positions taken together can collectively represent a rotation of greater than Pi around a vector. When this happens the rotation that matches the joint positions is not the shortest path rotation. The joint pose J that is the outcome of setting and applying the joint positions will always be the equivalent of the shortest path rotation.
+
+
+ Gets the joint position for the given axis, i.e. joint degree of freedom (DOF). For performance, prefer PxArticulationCache::jointPosition to get joint positions in a batch query. The joint position in linear units (equivalent to scene units) for a translational axis, or radians for a rotational axis. This call is not allowed while the simulation is running except in a split simulation during [`PxScene::collide`]() and up to #PxScene::advance(), and in PxContactModifyCallback or in contact report callbacks.
+
+
+ Sets the joint velocity for the given axis. - For performance, prefer PxArticulationCache::jointVelocity to set joint velocities in a batch articulation state update. - Use PxArticulationReducedCoordinate::updateKinematic after all state updates to the articulation via non-cache API such as this method, in order to update link states for the next simulation frame or querying. This call is not allowed while the simulation is running.
+
+
+ Gets the joint velocity for the given axis. For performance, prefer PxArticulationCache::jointVelocity to get joint velocities in a batch query. The joint velocity in linear units (equivalent to scene units) per second for a translational axis, or radians per second for a rotational axis. This call is not allowed while the simulation is running except in a split simulation during [`PxScene::collide`]() and up to #PxScene::advance(), and in PxContactModifyCallback or in contact report callbacks.
+
+
+ Returns the string name of the dynamic type. The string name.
+
+
+ Decrements the reference count of a shape and releases it if the new reference count is zero. Note that in releases prior to PhysX 3.3 this method did not have reference counting semantics and was used to destroy a shape created with PxActor::createShape(). In PhysX 3.3 and above, this usage is deprecated, instead, use PxRigidActor::detachShape() to detach a shape from an actor. If the shape to be detached was created with PxActor::createShape(), the actor holds the only counted reference, and so when the shape is detached it will also be destroyed.
+
+
+ Adjust the geometry of the shape. The type of the passed in geometry must match the geometry type of the shape. It is not allowed to change the geometry type of a shape. This function does not guarantee correct/continuous behavior when objects are resting on top of old or new geometry.
+
+
+ Retrieve a reference to the shape's geometry. The returned reference has the same lifetime as the PxShape it comes from. Reference to internal PxGeometry object.
+
+
+ Retrieves the actor which this shape is associated with. The actor this shape is associated with, if it is an exclusive shape, else NULL
+
+
+ Sets the pose of the shape in actor space, i.e. relative to the actors to which they are attached. This transformation is identity by default. The local pose is an attribute of the shape, and so will apply to all actors to which the shape is attached. Sleeping: Does NOT wake the associated actor up automatically. Note: Does not automatically update the inertia properties of the owning actor (if applicable); use the PhysX extensions method [`PxRigidBodyExt::updateMassAndInertia`]() to do this. Default: the identity transform
+
+
+ Retrieves the pose of the shape in actor space, i.e. relative to the actor they are owned by. This transformation is identity by default. Pose of shape relative to the actor's frame.
+
+
+ Sets the user definable collision filter data. Sleeping: Does wake up the actor if the filter data change causes a formerly suppressed collision pair to be enabled. Default: (0,0,0,0)
+
+
+ Retrieves the shape's collision filter data.
+
+
+ Sets the user definable query filter data. Default: (0,0,0,0)
+
+
+ Retrieves the shape's Query filter data.
+
+
+ Assigns material(s) to the shape. Will remove existing materials from the shape. Sleeping: Does NOT wake the associated actor up automatically.
+
+
+ Returns the number of materials assigned to the shape. You can use [`getMaterials`]() to retrieve the material pointers. Number of materials associated with this shape.
+
+
+ Retrieve all the material pointers associated with the shape. You can retrieve the number of material pointers by calling [`getNbMaterials`]() Note: The returned data may contain invalid pointers if you release materials using [`PxMaterial::release`](). Number of material pointers written to the buffer.
+
+
+ Retrieve material from given triangle index. The input index is the internal triangle index as used inside the SDK. This is the index returned to users by various SDK functions such as raycasts. This function is only useful for triangle meshes or heightfields, which have per-triangle materials. For other shapes or SDF triangle meshes, the function returns the single material associated with the shape, regardless of the index. Material from input triangle If faceIndex value of 0xFFFFffff is passed as an input for mesh and heightfield shapes, this function will issue a warning and return NULL. Scene queries set the value of PxQueryHit::faceIndex to 0xFFFFffff whenever it is undefined or does not apply.
+
+
+ Sets the contact offset. Shapes whose distance is less than the sum of their contactOffset values will generate contacts. The contact offset must be positive and greater than the rest offset. Having a contactOffset greater than than the restOffset allows the collision detection system to predictively enforce the contact constraint even when the objects are slightly separated. This prevents jitter that would occur if the constraint were enforced only when shapes were within the rest distance. Default: 0.02f * PxTolerancesScale::length Sleeping: Does NOT wake the associated actor up automatically.
+
+
+ Retrieves the contact offset. The contact offset of the shape.
+
+
+ Sets the rest offset. Two shapes will come to rest at a distance equal to the sum of their restOffset values. If the restOffset is 0, they should converge to touching exactly. Having a restOffset greater than zero is useful to have objects slide smoothly, so that they do not get hung up on irregularities of each others' surfaces. Default: 0.0f Sleeping: Does NOT wake the associated actor up automatically.
+
+
+ Retrieves the rest offset. The rest offset of the shape.
+
+
+ Sets the density used to interact with fluids. To be physically accurate, the density of a rigid body should be computed as its mass divided by its volume. To simplify tuning the interaction of fluid and rigid bodies, the density for fluid can differ from the real density. This allows to create floating bodies, even if they are supposed to sink with their mass and volume. Default: 800.0f
+
+
+ Retrieves the density used to interact with fluids. The density of the body when interacting with fluid.
+
+
+ Sets torsional patch radius. This defines the radius of the contact patch used to apply torsional friction. If the radius is 0, no torsional friction will be applied. If the radius is > 0, some torsional friction will be applied. This is proportional to the penetration depth so, if the shapes are separated or penetration is zero, no torsional friction will be applied. It is used to approximate rotational friction introduced by the compression of contacting surfaces. Default: 0.0
+
+
+ Gets torsional patch radius. This defines the radius of the contact patch used to apply torsional friction. If the radius is 0, no torsional friction will be applied. If the radius is > 0, some torsional friction will be applied. This is proportional to the penetration depth so, if the shapes are separated or penetration is zero, no torsional friction will be applied. It is used to approximate rotational friction introduced by the compression of contacting surfaces. The torsional patch radius of the shape.
+
+
+ Sets minimum torsional patch radius. This defines the minimum radius of the contact patch used to apply torsional friction. If the radius is 0, the amount of torsional friction that will be applied will be entirely dependent on the value of torsionalPatchRadius. If the radius is > 0, some torsional friction will be applied regardless of the value of torsionalPatchRadius or the amount of penetration. Default: 0.0
+
+
+ Gets minimum torsional patch radius. This defines the minimum radius of the contact patch used to apply torsional friction. If the radius is 0, the amount of torsional friction that will be applied will be entirely dependent on the value of torsionalPatchRadius. If the radius is > 0, some torsional friction will be applied regardless of the value of torsionalPatchRadius or the amount of penetration. The minimum torsional patch radius of the shape.
+
+
+ Sets shape flags Sleeping: Does NOT wake the associated actor up automatically. Default: PxShapeFlag::eVISUALIZATION | PxShapeFlag::eSIMULATION_SHAPE | PxShapeFlag::eSCENE_QUERY_SHAPE
+
+
+ Sets shape flags
+
+
+ Retrieves shape flags. The values of the shape flags.
+
+
+ Returns true if the shape is exclusive to an actor.
+
+
+ Sets a name string for the object that can be retrieved with [`getName`](). This is for debugging and is not used by the SDK. The string is not copied by the SDK, only the pointer is stored. Default: NULL
+
+
+ retrieves the name string set with setName(). The name associated with the shape.
+
+
+ Deletes the rigid actor object. Also releases any shapes associated with the actor. Releasing an actor will affect any objects that are connected to the actor (constraint shaders like joints etc.). Such connected objects will be deleted upon scene deletion, or explicitly by the user by calling release() on these objects. It is recommended to always remove all objects that reference actors before the actors themselves are removed. It is not possible to retrieve list of dead connected objects. Sleeping: This call will awaken any sleeping actors contacting the deleted actor (directly or indirectly). Calls [`PxActor::release`]() so you might want to check the documentation of that method as well.
+
+
+ Returns the internal actor index. This is only defined for actors that have been added to a scene. The internal actor index, or 0xffffffff if the actor is not part of a scene.
+
+
+ Retrieves the actors world space transform. The getGlobalPose() method retrieves the actor's current actor space to world space transformation. It is not allowed to use this method while the simulation is running (except during PxScene::collide(), in PxContactModifyCallback or in contact report callbacks). Global pose of object.
+
+
+ Method for setting an actor's pose in the world. This method instantaneously changes the actor space to world space transformation. This method is mainly for dynamic rigid bodies (see [`PxRigidDynamic`]). Calling this method on static actors is likely to result in a performance penalty, since internal optimization structures for static actors may need to be recomputed. In addition, moving static actors will not interact correctly with dynamic actors or joints. To directly control an actor's position and have it correctly interact with dynamic bodies and joints, create a dynamic body with the PxRigidBodyFlag::eKINEMATIC flag, then use the setKinematicTarget() commands to define its path. Even when moving dynamic actors, exercise restraint in making use of this method. Where possible, avoid: moving actors into other actors, thus causing overlap (an invalid physical state) moving an actor that is connected by a joint to another away from the other (thus causing joint error) Sleeping: This call wakes dynamic actors if they are sleeping and the autowake parameter is true (default).
+
+
+ Attach a shape to an actor This call will increment the reference count of the shape. Mass properties of dynamic rigid actors will not automatically be recomputed to reflect the new mass distribution implied by the shape. Follow this call with a call to the PhysX extensions method [`PxRigidBodyExt::updateMassAndInertia`]() to do that. Attaching a triangle mesh, heightfield or plane geometry shape configured as eSIMULATION_SHAPE is not supported for non-kinematic PxRigidDynamic instances. Sleeping: Does NOT wake the actor up automatically. True if success.
+
+
+ Detach a shape from an actor. This will also decrement the reference count of the PxShape, and if the reference count is zero, will cause it to be deleted. Sleeping: Does NOT wake the actor up automatically.
+
+
+ Returns the number of shapes assigned to the actor. You can use [`getShapes`]() to retrieve the shape pointers. Number of shapes associated with this actor.
+
+
+ Retrieve all the shape pointers belonging to the actor. These are the shapes used by the actor for collision detection. You can retrieve the number of shape pointers by calling [`getNbShapes`]() Note: Removing shapes with [`PxShape::release`]() will invalidate the pointer of the released shape. Number of shape pointers written to the buffer.
+
+
+ Returns the number of constraint shaders attached to the actor. You can use [`getConstraints`]() to retrieve the constraint shader pointers. Number of constraint shaders attached to this actor.
+
+
+ Retrieve all the constraint shader pointers belonging to the actor. You can retrieve the number of constraint shader pointers by calling [`getNbConstraints`]() Note: Removing constraint shaders with [`PxConstraint::release`]() will invalidate the pointer of the released constraint. Number of constraint shader pointers written to the buffer.
+
+
+ Sets the pose of the center of mass relative to the actor. Changing this transform will not move the actor in the world! Setting an unrealistic center of mass which is a long way from the body can make it difficult for the SDK to solve constraints. Perhaps leading to instability and jittering bodies. Default: the identity transform
+
+
+ Retrieves the center of mass pose relative to the actor frame. The center of mass pose relative to the actor frame.
+
+
+ Sets the mass of a dynamic actor. The mass must be non-negative. setMass() does not update the inertial properties of the body, to change the inertia tensor use setMassSpaceInertiaTensor() or the PhysX extensions method [`PxRigidBodyExt::updateMassAndInertia`](). A value of 0 is interpreted as infinite mass. Values of 0 are not permitted for instances of PxArticulationLink but are permitted for instances of PxRigidDynamic. Default: 1.0 Sleeping: Does NOT wake the actor up automatically.
+
+
+ Retrieves the mass of the actor. A value of 0 is interpreted as infinite mass. The mass of this actor.
+
+
+ Retrieves the inverse mass of the actor. The inverse mass of this actor.
+
+
+ Sets the inertia tensor, using a parameter specified in mass space coordinates. Note that such matrices are diagonal -- the passed vector is the diagonal. If you have a non diagonal world/actor space inertia tensor(3x3 matrix). Then you need to diagonalize it and set an appropriate mass space transform. See [`setCMassLocalPose`](). The inertia tensor elements must be non-negative. A value of 0 in an element is interpreted as infinite inertia along that axis. Values of 0 are not permitted for instances of PxArticulationLink but are permitted for instances of PxRigidDynamic. Default: (1.0, 1.0, 1.0) Sleeping: Does NOT wake the actor up automatically.
+
+
+ Retrieves the diagonal inertia tensor of the actor relative to the mass coordinate frame. This method retrieves a mass frame inertia vector. The mass space inertia tensor of this actor. A value of 0 in an element is interpreted as infinite inertia along that axis.
+
+
+ Retrieves the diagonal inverse inertia tensor of the actor relative to the mass coordinate frame. This method retrieves a mass frame inverse inertia vector. A value of 0 in an element is interpreted as infinite inertia along that axis. The mass space inverse inertia tensor of this actor.
+
+
+ Sets the linear damping coefficient. Zero represents no damping. The damping coefficient must be nonnegative. Default: 0.0
+
+
+ Retrieves the linear damping coefficient. The linear damping coefficient associated with this actor.
+
+
+ Sets the angular damping coefficient. Zero represents no damping. The angular damping coefficient must be nonnegative. Default: 0.05
+
+
+ Retrieves the angular damping coefficient. The angular damping coefficient associated with this actor.
+
+
+ Retrieves the linear velocity of an actor. It is not allowed to use this method while the simulation is running (except during PxScene::collide(), in PxContactModifyCallback or in contact report callbacks). The linear velocity of the actor.
+
+
+ Retrieves the angular velocity of the actor. It is not allowed to use this method while the simulation is running (except during PxScene::collide(), in PxContactModifyCallback or in contact report callbacks). The angular velocity of the actor.
+
+
+ Lets you set the maximum linear velocity permitted for this actor. With this function, you can set the maximum linear velocity permitted for this rigid body. Higher angular velocities are clamped to this value. Note: The angular velocity is clamped to the set value before the solver, which means that the limit may still be momentarily exceeded. Default: PX_MAX_F32
+
+
+ Retrieves the maximum angular velocity permitted for this actor. The maximum allowed angular velocity for this actor.
+
+
+ Lets you set the maximum angular velocity permitted for this actor. For various internal computations, very quickly rotating actors introduce error into the simulation, which leads to undesired results. With this function, you can set the maximum angular velocity permitted for this rigid body. Higher angular velocities are clamped to this value. Note: The angular velocity is clamped to the set value before the solver, which means that the limit may still be momentarily exceeded. Default: 100.0
+
+
+ Retrieves the maximum angular velocity permitted for this actor. The maximum allowed angular velocity for this actor.
+
+
+ Applies a force (or impulse) defined in the global coordinate frame to the actor at its center of mass. This will not induce a torque . ::PxForceMode determines if the force is to be conventional or impulsive. Each actor has an acceleration and a velocity change accumulator which are directly modified using the modes PxForceMode::eACCELERATION and PxForceMode::eVELOCITY_CHANGE respectively. The modes PxForceMode::eFORCE and PxForceMode::eIMPULSE also modify these same accumulators and are just short hand for multiplying the vector parameter by inverse mass and then using PxForceMode::eACCELERATION and PxForceMode::eVELOCITY_CHANGE respectively. It is invalid to use this method if the actor has not been added to a scene already or if PxActorFlag::eDISABLE_SIMULATION is set. The force modes PxForceMode::eIMPULSE and PxForceMode::eVELOCITY_CHANGE can not be applied to articulation links. if this is called on an articulation link, only the link is updated, not the entire articulation. see [`PxRigidBodyExt::computeVelocityDeltaFromImpulse`] for details of how to compute the change in linear velocity that will arise from the application of an impulsive force, where an impulsive force is applied force multiplied by a timestep. Sleeping: This call wakes the actor if it is sleeping, and the autowake parameter is true (default) or the force is non-zero.
+
+
+ Applies an impulsive torque defined in the global coordinate frame to the actor. ::PxForceMode determines if the torque is to be conventional or impulsive. Each actor has an angular acceleration and an angular velocity change accumulator which are directly modified using the modes PxForceMode::eACCELERATION and PxForceMode::eVELOCITY_CHANGE respectively. The modes PxForceMode::eFORCE and PxForceMode::eIMPULSE also modify these same accumulators and are just short hand for multiplying the vector parameter by inverse inertia and then using PxForceMode::eACCELERATION and PxForceMode::eVELOCITY_CHANGE respectively. It is invalid to use this method if the actor has not been added to a scene already or if PxActorFlag::eDISABLE_SIMULATION is set. The force modes PxForceMode::eIMPULSE and PxForceMode::eVELOCITY_CHANGE can not be applied to articulation links. if this called on an articulation link, only the link is updated, not the entire articulation. see [`PxRigidBodyExt::computeVelocityDeltaFromImpulse`] for details of how to compute the change in angular velocity that will arise from the application of an impulsive torque, where an impulsive torque is an applied torque multiplied by a timestep. Sleeping: This call wakes the actor if it is sleeping, and the autowake parameter is true (default) or the torque is non-zero.
+
+
+ Clears the accumulated forces (sets the accumulated force back to zero). Each actor has an acceleration and a velocity change accumulator which are directly modified using the modes PxForceMode::eACCELERATION and PxForceMode::eVELOCITY_CHANGE respectively. The modes PxForceMode::eFORCE and PxForceMode::eIMPULSE also modify these same accumulators (see PxRigidBody::addForce() for details); therefore the effect of calling clearForce(PxForceMode::eFORCE) is equivalent to calling clearForce(PxForceMode::eACCELERATION), and the effect of calling clearForce(PxForceMode::eIMPULSE) is equivalent to calling clearForce(PxForceMode::eVELOCITY_CHANGE). ::PxForceMode determines if the cleared force is to be conventional or impulsive. The force modes PxForceMode::eIMPULSE and PxForceMode::eVELOCITY_CHANGE can not be applied to articulation links. It is invalid to use this method if the actor has not been added to a scene already or if PxActorFlag::eDISABLE_SIMULATION is set.
+
+
+ Clears the impulsive torque defined in the global coordinate frame to the actor. ::PxForceMode determines if the cleared torque is to be conventional or impulsive. Each actor has an angular acceleration and a velocity change accumulator which are directly modified using the modes PxForceMode::eACCELERATION and PxForceMode::eVELOCITY_CHANGE respectively. The modes PxForceMode::eFORCE and PxForceMode::eIMPULSE also modify these same accumulators (see PxRigidBody::addTorque() for details); therefore the effect of calling clearTorque(PxForceMode::eFORCE) is equivalent to calling clearTorque(PxForceMode::eACCELERATION), and the effect of calling clearTorque(PxForceMode::eIMPULSE) is equivalent to calling clearTorque(PxForceMode::eVELOCITY_CHANGE). The force modes PxForceMode::eIMPULSE and PxForceMode::eVELOCITY_CHANGE can not be applied to articulation links. It is invalid to use this method if the actor has not been added to a scene already or if PxActorFlag::eDISABLE_SIMULATION is set.
+
+
+ Sets the impulsive force and torque defined in the global coordinate frame to the actor. ::PxForceMode determines if the cleared torque is to be conventional or impulsive. The force modes PxForceMode::eIMPULSE and PxForceMode::eVELOCITY_CHANGE can not be applied to articulation links. It is invalid to use this method if the actor has not been added to a scene already or if PxActorFlag::eDISABLE_SIMULATION is set.
+
+
+ Raises or clears a particular rigid body flag. See the list of flags [`PxRigidBodyFlag`] Default: no flags are set Sleeping: Does NOT wake the actor up automatically.
+
+
+ Reads the PxRigidBody flags. See the list of flags [`PxRigidBodyFlag`] The values of the PxRigidBody flags.
+
+
+ Sets the CCD minimum advance coefficient. The CCD minimum advance coefficient is a value in the range [0, 1] that is used to control the minimum amount of time a body is integrated when it has a CCD contact. The actual minimum amount of time that is integrated depends on various properties, including the relative speed and collision shapes of the bodies involved in the contact. From these properties, a numeric value is calculated that determines the maximum distance (and therefore maximum time) which these bodies could be integrated forwards that would ensure that these bodies did not pass through each-other. This value is then scaled by CCD minimum advance coefficient to determine the amount of time that will be consumed in the CCD pass. Things to consider: A large value (approaching 1) ensures that the objects will always advance some time. However, larger values increase the chances of objects gently drifting through each-other in scenes which the constraint solver can't converge, e.g. scenes where an object is being dragged through a wall with a constraint. A value of 0 ensures that the pair of objects stop at the exact time-of-impact and will not gently drift through each-other. However, with very small/thin objects initially in contact, this can lead to a large amount of time being dropped and increases the chances of jamming. Jamming occurs when the an object is persistently in contact with an object such that the time-of-impact is 0, which results in no time being advanced for those objects in that CCD pass. The chances of jamming can be reduced by increasing the number of CCD mass
+
+
+ Gets the CCD minimum advance coefficient. The value of the CCD min advance coefficient.
+
+
+ Sets the maximum depenetration velocity permitted to be introduced by the solver. This value controls how much velocity the solver can introduce to correct for penetrations in contacts.
+
+
+ Returns the maximum depenetration velocity the solver is permitted to introduced. This value controls how much velocity the solver can introduce to correct for penetrations in contacts. The maximum penetration bias applied by the solver.
+
+
+ Sets a limit on the impulse that may be applied at a contact. The maximum impulse at a contact between two dynamic or kinematic bodies will be the minimum of the two limit values. For a collision between a static and a dynamic body, the impulse is limited by the value for the dynamic body.
+
+
+ Returns the maximum impulse that may be applied at a contact. The maximum impulse that may be applied at a contact
+
+
+ Sets a distance scale whereby the angular influence of a contact on the normal constraint in a contact is zeroed if normal.cross(offset) falls below this tolerance. Rather than acting as an absolute value, this tolerance is scaled by the ratio rXn.dot(angVel)/normal.dot(linVel) such that contacts that have relatively larger angular velocity than linear normal velocity (e.g. rolling wheels) achieve larger slop values as the angular velocity increases.
+
+
+ Returns the contact slop coefficient. The contact slop coefficient.
+
+
+ Returns the island node index The island node index.
+
+
+ Releases the link from the articulation. Only a leaf articulation link can be released. Releasing a link is not allowed while the articulation link is in a scene. In order to release a link, remove and then re-add the corresponding articulation to the scene.
+
+
+ Gets the articulation that the link is a part of. The articulation.
+
+
+ Gets the joint which connects this link to its parent. The joint connecting the link to the parent. NULL for the root link.
+
+
+ Gets the number of degrees of freedom of the joint which connects this link to its parent. - The root link DOF-count is defined to be 0 regardless of PxArticulationFlag::eFIX_BASE. - The return value is only valid for articulations that are in a scene. The number of degrees of freedom, or 0xFFFFFFFF if the articulation is not in a scene.
+
+
+ Gets the number of child links. The number of child links.
+
+
+ Gets the low-level link index that may be used to index into members of PxArticulationCache. The return value is only valid for articulations that are in a scene. The low-level index, or 0xFFFFFFFF if the articulation is not in a scene.
+
+
+ Retrieves the child links. The number of articulation links written to the buffer.
+
+
+ Set the constraint-force-mixing scale term. The cfm scale term is a stabilization term that helps avoid instabilities with over-constrained configurations. It should be a small value that is multiplied by 1/mass internally to produce an additional bias added to the unit response term in the solver. Default: 0.025 Range: [0, 1] This call is not allowed while the simulation is running.
+
+
+ Get the constraint-force-mixing scale term. The constraint-force-mixing scale term.
+
+
+ Get the linear velocity of the link. - The linear velocity is with respect to the link's center of mass and not the actor frame origin. - For performance, prefer PxArticulationCache::linkVelocity to get link spatial velocities in a batch query. - When the articulation state is updated via non-cache API, use PxArticulationReducedCoordinate::updateKinematic before querying velocity. The linear velocity of the link. This call is not allowed while the simulation is running except in a split simulation during [`PxScene::collide`]() and up to #PxScene::advance(), and in PxContactModifyCallback or in contact report callbacks.
+
+
+ Get the angular velocity of the link. - For performance, prefer PxArticulationCache::linkVelocity to get link spatial velocities in a batch query. - When the articulation state is updated via non-cache API, use PxArticulationReducedCoordinate::updateKinematic before querying velocity. The angular velocity of the link. This call is not allowed while the simulation is running except in a split simulation during [`PxScene::collide`]() and up to #PxScene::advance(), and in PxContactModifyCallback or in contact report callbacks.
+
+
+ Returns the string name of the dynamic type. The string name.
+
+
+ Releases a PxConstraint instance. This call does not wake up the connected rigid bodies.
+
+
+ Retrieves the scene which this constraint belongs to. Owner Scene. NULL if not part of a scene.
+
+
+ Retrieves the actors for this constraint.
+
+
+ Sets the actors for this constraint.
+
+
+ Notify the scene that the constraint shader data has been updated by the application
+
+
+ Retrieve the flags for this constraint the constraint flags
+
+
+ Set the flags for this constraint default: PxConstraintFlag::eDRIVE_LIMITS_ARE_FORCES
+
+
+ Set a flag for this constraint
+
+
+ Retrieve the constraint force most recently applied to maintain this constraint. It is not allowed to use this method while the simulation is running (except during PxScene::collide(), in PxContactModifyCallback or in contact report callbacks).
+
+
+ whether the constraint is valid. A constraint is valid if it has at least one dynamic rigid body or articulation link. A constraint that is not valid may not be inserted into a scene, and therefore a static actor to which an invalid constraint is attached may not be inserted into a scene. Invalid constraints arise only when an actor to which the constraint is attached has been deleted.
+
+
+ Set the break force and torque thresholds for this constraint. If either the force or torque measured at the constraint exceed these thresholds the constraint will break.
+
+
+ Retrieve the constraint break force and torque thresholds
+
+
+ Set the minimum response threshold for a constraint row When using mass modification for a joint or infinite inertia for a jointed body, very stiff solver constraints can be generated which can destabilize simulation. Setting this value to a small positive value (e.g. 1e-8) will cause constraint rows to be ignored if very large changes in impulses will generate only small changes in velocity. When setting this value, also set PxConstraintFlag::eDISABLE_PREPROCESSING. The solver accuracy for this joint may be reduced.
+
+
+ Retrieve the constraint break force and torque thresholds the minimum response threshold for a constraint row
+
+
+ Fetch external owner of the constraint. Provides a reference to the external owner of a constraint and a unique owner type ID. Reference to the external object which owns the constraint.
+
+
+ Set the constraint functions for this constraint
+
+
+ Constructor
+
+
+ Returns whether there are more patches in this stream. Whether there are more patches in this stream.
+
+
+ Returns the total contact count. Total contact count.
+
+
+ Returns the total patch count. Total patch count.
+
+
+ Advances iterator to next contact patch.
+
+
+ Returns if the current patch has more contacts. If there are more contacts in the current patch.
+
+
+ Advances to the next contact in the patch.
+
+
+ Gets the current contact's normal The current contact's normal.
+
+
+ Gets the inverse mass scale for body 0. The inverse mass scale for body 0.
+
+
+ Gets the inverse mass scale for body 1. The inverse mass scale for body 1.
+
+
+ Gets the inverse inertia scale for body 0. The inverse inertia scale for body 0.
+
+
+ Gets the inverse inertia scale for body 1. The inverse inertia scale for body 1.
+
+
+ Gets the contact's max impulse. The contact's max impulse.
+
+
+ Gets the contact's target velocity. The contact's target velocity.
+
+
+ Gets the contact's contact point. The contact's contact point.
+
+
+ Gets the contact's separation. The contact's separation.
+
+
+ Gets the contact's face index for shape 0. The contact's face index for shape 0.
+
+
+ Gets the contact's face index for shape 1. The contact's face index for shape 1.
+
+
+ Gets the contact's static friction coefficient. The contact's static friction coefficient.
+
+
+ Gets the contact's dynamic friction coefficient. The contact's dynamic friction coefficient.
+
+
+ Gets the contact's restitution coefficient. The contact's restitution coefficient.
+
+
+ Gets the contact's damping value. The contact's damping value.
+
+
+ Gets the contact's material flags. The contact's material flags.
+
+
+ Gets the contact's material index for shape 0. The contact's material index for shape 0.
+
+
+ Gets the contact's material index for shape 1. The contact's material index for shape 1.
+
+
+ Advances the contact stream iterator to a specific contact index. True if advancing was possible
+
+
+ Get the position of a specific contact point in the set. Position to the requested point in world space
+
+
+ Alter the position of a specific contact point in the set.
+
+
+ Get the contact normal of a specific contact point in the set. The requested normal in world space
+
+
+ Alter the contact normal of a specific contact point in the set. Changing the normal can cause contact points to be ignored.
+
+
+ Get the separation distance of a specific contact point in the set. The separation. Negative implies penetration.
+
+
+ Alter the separation of a specific contact point in the set.
+
+
+ Get the target velocity of a specific contact point in the set. The target velocity in world frame
+
+
+ Alter the target velocity of a specific contact point in the set.
+
+
+ Get the face index with respect to the first shape of the pair for a specific contact point in the set. The face index of the first shape At the moment, the first shape is never a tri-mesh, therefore this function always returns PXC_CONTACT_NO_FACE_INDEX
+
+
+ Get the face index with respect to the second shape of the pair for a specific contact point in the set. The face index of the second shape
+
+
+ Get the maximum impulse for a specific contact point in the set. The maximum impulse
+
+
+ Alter the maximum impulse for a specific contact point in the set. Must be nonnegative. If set to zero, the contact point will be ignored
+
+
+ Get the restitution coefficient for a specific contact point in the set. The restitution coefficient
+
+
+ Alter the restitution coefficient for a specific contact point in the set. Valid ranges [0,1]
+
+
+ Get the static friction coefficient for a specific contact point in the set. The friction coefficient (dimensionless)
+
+
+ Alter the static friction coefficient for a specific contact point in the set.
+
+
+ Get the static friction coefficient for a specific contact point in the set. The friction coefficient
+
+
+ Alter the static dynamic coefficient for a specific contact point in the set.
+
+
+ Ignore the contact point. If a contact point is ignored then no force will get applied at this point. This can be used to disable collision in certain areas of a shape, for example.
+
+
+ The number of contact points in the set.
+
+
+ Returns the invMassScale of body 0 A value < 1.0 makes this contact treat the body as if it had larger mass. A value of 0.f makes this contact treat the body as if it had infinite mass. Any value > 1.f makes this contact treat the body as if it had smaller mass.
+
+
+ Returns the invMassScale of body 1 A value < 1.0 makes this contact treat the body as if it had larger mass. A value of 0.f makes this contact treat the body as if it had infinite mass. Any value > 1.f makes this contact treat the body as if it had smaller mass.
+
+
+ Returns the invInertiaScale of body 0 A value < 1.0 makes this contact treat the body as if it had larger inertia. A value of 0.f makes this contact treat the body as if it had infinite inertia. Any value > 1.f makes this contact treat the body as if it had smaller inertia.
+
+
+ Returns the invInertiaScale of body 1 A value < 1.0 makes this contact treat the body as if it had larger inertia. A value of 0.f makes this contact treat the body as if it had infinite inertia. Any value > 1.f makes this contact treat the body as if it had smaller inertia.
+
+
+ Sets the invMassScale of body 0 This can be set to any value in the range [0, PX_MAX_F32). A value < 1.0 makes this contact treat the body as if it had larger mass. A value of 0.f makes this contact treat the body as if it had infinite mass. Any value > 1.f makes this contact treat the body as if it had smaller mass.
+
+
+ Sets the invMassScale of body 1 This can be set to any value in the range [0, PX_MAX_F32). A value < 1.0 makes this contact treat the body as if it had larger mass. A value of 0.f makes this contact treat the body as if it had infinite mass. Any value > 1.f makes this contact treat the body as if it had smaller mass.
+
+
+ Sets the invInertiaScale of body 0 This can be set to any value in the range [0, PX_MAX_F32). A value < 1.0 makes this contact treat the body as if it had larger inertia. A value of 0.f makes this contact treat the body as if it had infinite inertia. Any value > 1.f makes this contact treat the body as if it had smaller inertia.
+
+
+ Sets the invInertiaScale of body 1 This can be set to any value in the range [0, PX_MAX_F32). A value < 1.0 makes this contact treat the body as if it had larger inertia. A value of 0.f makes this contact treat the body as if it had infinite inertia. Any value > 1.f makes this contact treat the body as if it had smaller inertia.
+
+
+ Passes modifiable arrays of contacts to the application. The initial contacts are regenerated from scratch each frame by collision detection. The number of contacts can not be changed, so you cannot add your own contacts. You may however disable contacts using PxContactSet::ignore().
+
+
+ Passes modifiable arrays of contacts to the application. The initial contacts are regenerated from scratch each frame by collision detection. The number of contacts can not be changed, so you cannot add your own contacts. You may however disable contacts using PxContactSet::ignore().
+
+
+ Notification if an object or its memory gets released If release() gets called on a PxBase object, an eUSER_RELEASE event will get fired immediately. The object state can be queried in the callback but it is not allowed to change the state. Furthermore, when reading from the object it is the user's responsibility to make sure that no other thread is writing at the same time to the object (this includes the simulation itself, i.e., [`PxScene::fetchResults`]() must not get called at the same time). Calling release() on a PxBase object does not necessarily trigger its destructor immediately. For example, the object can be shared and might still be referenced by other objects or the simulation might still be running and accessing the object state. In such cases the destructor will be called as soon as it is safe to do so. After the destruction of the object and its memory, an eMEMORY_RELEASE event will get fired. In this case it is not allowed to dereference the object pointer in the callback.
+
+
+ Sets young's modulus which defines the body's stiffness
+
+
+ Retrieves the young's modulus value. The young's modulus value.
+
+
+ Sets the Poisson's ratio which defines the body's volume preservation. Completely incompressible materials have a poisson ratio of 0.5. Its value should not be set to exactly 0.5 because this leads to numerical problems.
+
+
+ Retrieves the Poisson's ratio. The Poisson's ratio.
+
+
+ Sets the dynamic friction value which defines the strength of resistance when two objects slide relative to each other while in contact.
+
+
+ Retrieves the dynamic friction value The dynamic friction value
+
+
+ Default constructor.
+
+
+ Constructor to set filter data initially.
+
+
+ (re)sets the structure to the default.
+
+
+ Extract filter object type from the filter attributes of a collision pair object The type of the collision pair object.
+
+
+ Specifies whether the collision object belongs to a kinematic rigid body True if the object belongs to a kinematic rigid body, else false
+
+
+ Specifies whether the collision object is a trigger shape True if the object is a trigger shape, else false
+
+
+ Filter method to specify how a pair of potentially colliding objects should be processed. This method gets called when the filter flags returned by the filter shader (see [`PxSimulationFilterShader`]) indicate that the filter callback should be invoked ([`PxFilterFlag::eCALLBACK`] or #PxFilterFlag::eNOTIFY set). Return the PxFilterFlag flags and set the PxPairFlag flags to define what the simulation should do with the given collision pair. Filter flags defining whether the pair should be discarded, temporarily ignored or processed and whether the pair should be tracked and send a report on pair deletion through the filter callback
+
+
+ Callback to inform that a tracked collision pair is gone. This method gets called when a collision pair disappears or gets re-filtered. Only applies to collision pairs which have been marked as filter callback pairs ([`PxFilterFlag::eNOTIFY`] set in #pairFound()).
+
+
+ Callback to give the opportunity to change the filter state of a tracked collision pair. This method gets called once per simulation step to let the application change the filter and pair flags of a collision pair that has been reported in [`pairFound`]() and requested callbacks by setting [`PxFilterFlag::eNOTIFY`]. To request a change of filter status, the target pair has to be specified by its ID, the new filter and pair flags have to be provided and the method should return true. If this method changes the filter status of a collision pair and the pair should keep being tracked by the filter callbacks then [`PxFilterFlag::eNOTIFY`] has to be set. The application is responsible to ensure that this method does not get called for pairs that have been reported as lost, see [`pairLost`](). True if the changes should be applied. In this case the method will get called again. False if no more status changes should be done in the current simulation step. In that case the provided flags will be discarded.
+
+
+ Any combination of PxDataAccessFlag::eREADABLE and PxDataAccessFlag::eWRITABLE
+
+
+ Unlocks the bulk data.
+
+
+ virtual destructor
+
+
+ Sets the coefficient of dynamic friction. The coefficient of dynamic friction should be in [0, PX_MAX_F32). If set to greater than staticFriction, the effective value of staticFriction will be increased to match. Sleeping: Does NOT wake any actors which may be affected.
+
+
+ Retrieves the DynamicFriction value. The coefficient of dynamic friction.
+
+
+ Sets the coefficient of static friction The coefficient of static friction should be in the range [0, PX_MAX_F32) Sleeping: Does NOT wake any actors which may be affected.
+
+
+ Retrieves the coefficient of static friction. The coefficient of static friction.
+
+
+ Sets the coefficient of restitution A coefficient of 0 makes the object bounce as little as possible, higher values up to 1.0 result in more bounce. This property is overloaded when PxMaterialFlag::eCOMPLIANT_CONTACT flag is enabled. This permits negative values for restitution to be provided. The negative values are converted into spring stiffness terms for an implicit spring simulated at the contact site, with the spring positional error defined by the contact separation value. Higher stiffness terms produce stiffer springs that behave more like a rigid contact. Sleeping: Does NOT wake any actors which may be affected.
+
+
+ Retrieves the coefficient of restitution. See [`setRestitution`]. The coefficient of restitution.
+
+
+ Sets the coefficient of damping This property only affects the simulation if PxMaterialFlag::eCOMPLIANT_CONTACT is raised. Damping works together with spring stiffness (set through a negative restitution value). Spring stiffness corrects positional error while damping resists relative velocity. Setting a high damping coefficient can produce spongy contacts. Sleeping: Does NOT wake any actors which may be affected.
+
+
+ Retrieves the coefficient of damping. See [`setDamping`]. The coefficient of damping.
+
+
+ Raises or clears a particular material flag. See the list of flags [`PxMaterialFlag`] Default: eIMPROVED_PATCH_FRICTION Sleeping: Does NOT wake any actors which may be affected.
+
+
+ sets all the material flags. See the list of flags [`PxMaterialFlag`] Default: eIMPROVED_PATCH_FRICTION Sleeping: Does NOT wake any actors which may be affected.
+
+
+ Retrieves the flags. See [`PxMaterialFlag`]. The material flags.
+
+
+ Sets the friction combine mode. See the enum ::PxCombineMode . Default: PxCombineMode::eAVERAGE Sleeping: Does NOT wake any actors which may be affected.
+
+
+ Retrieves the friction combine mode. See [`setFrictionCombineMode`]. The friction combine mode for this material.
+
+
+ Sets the restitution combine mode. See the enum ::PxCombineMode . Default: PxCombineMode::eAVERAGE Sleeping: Does NOT wake any actors which may be affected.
+
+
+ Retrieves the restitution combine mode. See [`setRestitutionCombineMode`]. The coefficient of restitution combine mode for this material.
+
+
+ Construct parameters with default values.
+
+
+ (re)sets the structure to the default.
+
+
+ Sets friction
+
+
+ Retrieves the friction value. The friction value.
+
+
+ Sets velocity damping term
+
+
+ Retrieves the velocity damping term The velocity damping term.
+
+
+ Sets adhesion term
+
+
+ Retrieves the adhesion term The adhesion term.
+
+
+ Sets gravity scale term
+
+
+ Retrieves the gravity scale term The gravity scale term.
+
+
+ Sets material adhesion radius scale. This is multiplied by the particle rest offset to compute the fall-off distance at which point adhesion ceases to operate.
+
+
+ Retrieves the adhesion radius scale. The adhesion radius scale.
+
+
+ Destroys the instance it is called on. Use this release method to destroy an instance of this class. Be sure to not keep a reference to this object after calling release. Avoid release calls while a scene is simulating (in between simulate() and fetchResults() calls). Note that this must be called once for each prior call to PxCreatePhysics, as there is a reference counter. Also note that you mustn't destroy the PxFoundation instance (holding the allocator, error callback etc.) until after the reference count reaches 0 and the SDK is actually removed. Releasing an SDK will also release any objects created through it (scenes, triangle meshes, convex meshes, heightfields, shapes etc.), provided the user hasn't already done so. Releasing the PxPhysics instance is a prerequisite to releasing the PxFoundation instance.
+
+
+ Retrieves the Foundation instance. A reference to the Foundation object.
+
+
+ Creates an aggregate with the specified maximum size and filtering hint. The previous API used \"bool enableSelfCollision\" which should now silently evaluates to a PxAggregateType::eGENERIC aggregate with its self-collision bit. Use PxAggregateType::eSTATIC or PxAggregateType::eKINEMATIC for aggregates that will only contain static or kinematic actors. This provides faster filtering when used in combination with PxPairFilteringMode. The new aggregate.
+
+
+ Returns the simulation tolerance parameters. The current simulation tolerance parameters.
+
+
+ Creates a triangle mesh object. This can then be instanced into [`PxShape`] objects. The new triangle mesh.
+
+
+ Return the number of triangle meshes that currently exist. Number of triangle meshes.
+
+
+ Writes the array of triangle mesh pointers to a user buffer. Returns the number of pointers written. The ordering of the triangle meshes in the array is not specified. The number of triangle mesh pointers written to userBuffer, this should be less or equal to bufferSize.
+
+
+ Creates a tetrahedron mesh object. This can then be instanced into [`PxShape`] objects. The new tetrahedron mesh.
+
+
+ Creates a softbody mesh object. The new softbody mesh.
+
+
+ Return the number of tetrahedron meshes that currently exist. Number of tetrahedron meshes.
+
+
+ Writes the array of tetrahedron mesh pointers to a user buffer. Returns the number of pointers written. The ordering of the tetrahedron meshes in the array is not specified. The number of tetrahedron mesh pointers written to userBuffer, this should be less or equal to bufferSize.
+
+
+ Creates a heightfield object from previously cooked stream. This can then be instanced into [`PxShape`] objects. The new heightfield.
+
+
+ Return the number of heightfields that currently exist. Number of heightfields.
+
+
+ Writes the array of heightfield pointers to a user buffer. Returns the number of pointers written. The ordering of the heightfields in the array is not specified. The number of heightfield pointers written to userBuffer, this should be less or equal to bufferSize.
+
+
+ Creates a convex mesh object. This can then be instanced into [`PxShape`] objects. The new convex mesh.
+
+
+ Return the number of convex meshes that currently exist. Number of convex meshes.
+
+
+ Writes the array of convex mesh pointers to a user buffer. Returns the number of pointers written. The ordering of the convex meshes in the array is not specified. The number of convex mesh pointers written to userBuffer, this should be less or equal to bufferSize.
+
+
+ Creates a bounding volume hierarchy. The new BVH.
+
+
+ Return the number of bounding volume hierarchies that currently exist. Number of bounding volume hierarchies.
+
+
+ Writes the array of bounding volume hierarchy pointers to a user buffer. Returns the number of pointers written. The ordering of the BVHs in the array is not specified. The number of BVH pointers written to userBuffer, this should be less or equal to bufferSize.
+
+
+ Creates a scene. Every scene uses a Thread Local Storage slot. This imposes a platform specific limit on the number of scenes that can be created. The new scene object.
+
+
+ Gets number of created scenes. The number of scenes created.
+
+
+ Writes the array of scene pointers to a user buffer. Returns the number of pointers written. The ordering of the scene pointers in the array is not specified. The number of scene pointers written to userBuffer, this should be less or equal to bufferSize.
+
+
+ Creates a static rigid actor with the specified pose and all other fields initialized to their default values.
+
+
+ Creates a dynamic rigid actor with the specified pose and all other fields initialized to their default values.
+
+
+ Creates a pruning structure from actors. Every provided actor needs at least one shape with the eSCENE_QUERY_SHAPE flag set. Both static and dynamic actors can be provided. It is not allowed to pass in actors which are already part of a scene. Articulation links cannot be provided. Pruning structure created from given actors, or NULL if any of the actors did not comply with the above requirements.
+
+
+ Creates a shape which may be attached to multiple actors The shape will be created with a reference count of 1. The shape Shared shapes are not mutable when they are attached to an actor
+
+
+ Creates a shape which may be attached to multiple actors The shape will be created with a reference count of 1. The shape Shared shapes are not mutable when they are attached to an actor Shapes created from *SDF* triangle-mesh geometries do not support more than one material.
+
+
+ Return the number of shapes that currently exist. Number of shapes.
+
+
+ Writes the array of shape pointers to a user buffer. Returns the number of pointers written. The ordering of the shapes in the array is not specified. The number of shape pointers written to userBuffer, this should be less or equal to bufferSize.
+
+
+ Creates a constraint shader. A constraint shader will get added automatically to the scene the two linked actors belong to. Either, but not both, of actor0 and actor1 may be NULL to denote attachment to the world. The new constraint shader.
+
+
+ Creates a reduced-coordinate articulation with all fields initialized to their default values. the new articulation
+
+
+ Creates a new rigid body material with certain default properties. The new rigid body material.
+
+
+ Return the number of rigid body materials that currently exist. Number of rigid body materials.
+
+
+ Writes the array of rigid body material pointers to a user buffer. Returns the number of pointers written. The ordering of the materials in the array is not specified. The number of material pointers written to userBuffer, this should be less or equal to bufferSize.
+
+
+ Register a deletion listener. Listeners will be called whenever an object is deleted. It is illegal to register or unregister a deletion listener while deletions are being processed. By default a registered listener will receive events from all objects. Set the restrictedObjectSet parameter to true on registration and use [`registerDeletionListenerObjects`] to restrict the received events to specific objects. The deletion events are only supported on core PhysX objects. In general, objects in extension modules do not provide this functionality, however, in the case of PxJoint objects, the underlying PxConstraint will send the events.
+
+
+ Unregister a deletion listener. It is illegal to register or unregister a deletion listener while deletions are being processed.
+
+
+ Register specific objects for deletion events. This method allows for a deletion listener to limit deletion events to specific objects only. It is illegal to register or unregister objects while deletions are being processed. The deletion listener has to be registered through [`registerDeletionListener`]() and configured to support restricted object sets prior to this method being used.
+
+
+ Unregister specific objects for deletion events. This method allows to clear previously registered objects for a deletion listener (see [`registerDeletionListenerObjects`]()). It is illegal to register or unregister objects while deletions are being processed. The deletion listener has to be registered through [`registerDeletionListener`]() and configured to support restricted object sets prior to this method being used.
+
+
+ Gets PxPhysics object insertion interface. The insertion interface is needed for PxCreateTriangleMesh, PxCooking::createTriangleMesh etc., this allows runtime mesh creation.
+
+
+ Creates an instance of the physics SDK. Creates an instance of this class. May not be a class member to avoid name mangling. Pass the constant [`PX_PHYSICS_VERSION`] as the argument. There may be only one instance of this class per process. Calling this method after an instance has been created already will result in an error message and NULL will be returned. Calling this will register all optional code modules (Articulations and HeightFields), preparing them for use. If you do not need some of these modules, consider calling PxCreateBasePhysics() instead and registering needed modules manually. PxPhysics instance on success, NULL if operation failed
+
+
+ constructor sets to default
+
+
+ constructor to set properties
+
+
+ default constructor
+
+
+ constructor to set both filter data and filter flags
+
+
+ constructor to set filter flags only
+
+
+ This filter callback is executed before the exact intersection test if PxQueryFlag::ePREFILTER flag was set. the updated type for this hit (see [`PxQueryHitType`])
+
+
+ This filter callback is executed if the exact intersection test returned true and PxQueryFlag::ePOSTFILTER flag was set. the updated hit type for this hit (see [`PxQueryHitType`])
+
+
+ virtual destructor
+
+
+ Moves kinematically controlled dynamic actors through the game world. You set a dynamic actor to be kinematic using the PxRigidBodyFlag::eKINEMATIC flag with setRigidBodyFlag(). The move command will result in a velocity that will move the body into the desired pose. After the move is carried out during a single time step, the velocity is returned to zero. Thus, you must continuously call this in every time step for kinematic actors so that they move along a path. This function simply stores the move destination until the next simulation step is processed, so consecutive calls will simply overwrite the stored target variable. The motion is always fully carried out. It is invalid to use this method if the actor has not been added to a scene already or if PxActorFlag::eDISABLE_SIMULATION is set. Sleeping: This call wakes the actor if it is sleeping and will set the wake counter to [`PxSceneDesc::wakeCounterResetValue`].
+
+
+ Get target pose of a kinematically controlled dynamic actor. True if the actor is a kinematically controlled dynamic and the target has been set, else False.
+
+
+ Returns true if this body is sleeping. When an actor does not move for a period of time, it is no longer simulated in order to save time. This state is called sleeping. However, because the object automatically wakes up when it is either touched by an awake object, or one of its properties is changed by the user, the entire sleep mechanism should be transparent to the user. In general, a dynamic rigid actor is guaranteed to be awake if at least one of the following holds: The wake counter is positive (see [`setWakeCounter`]()). The linear or angular velocity is non-zero. A non-zero force or torque has been applied. If a dynamic rigid actor is sleeping, the following state is guaranteed: The wake counter is zero. The linear and angular velocity is zero. There is no force update pending. When an actor gets inserted into a scene, it will be considered asleep if all the points above hold, else it will be treated as awake. If an actor is asleep after the call to PxScene::fetchResults() returns, it is guaranteed that the pose of the actor was not changed. You can use this information to avoid updating the transforms of associated objects. A kinematic actor is asleep unless a target pose has been set (in which case it will stay awake until two consecutive simulation steps without a target pose being set have passed). The wake counter will get set to zero or to the reset value [`PxSceneDesc::wakeCounterResetValue`] in the case where a target pose has been set to be consistent with the definitions above. It is invalid to use this method if the actor has not been added to a scene already. It is not allowed to use this method while the simulation is running. True if the actor is sleeping.
+
+
+ Sets the mass-normalized kinetic energy threshold below which an actor may go to sleep. Actors whose kinetic energy divided by their mass is below this threshold will be candidates for sleeping. Default: 5e-5f * PxTolerancesScale::speed * PxTolerancesScale::speed
+
+
+ Returns the mass-normalized kinetic energy below which an actor may go to sleep. The energy threshold for sleeping.
+
+
+ Sets the mass-normalized kinetic energy threshold below which an actor may participate in stabilization. Actors whose kinetic energy divided by their mass is above this threshold will not participate in stabilization. This value has no effect if PxSceneFlag::eENABLE_STABILIZATION was not enabled on the PxSceneDesc. Default: 1e-5f * PxTolerancesScale::speed * PxTolerancesScale::speed
+
+
+ Returns the mass-normalized kinetic energy below which an actor may participate in stabilization. Actors whose kinetic energy divided by their mass is above this threshold will not participate in stabilization. The energy threshold for participating in stabilization.
+
+
+ Reads the PxRigidDynamic lock flags. See the list of flags [`PxRigidDynamicLockFlag`] The values of the PxRigidDynamicLock flags.
+
+
+ Raises or clears a particular rigid dynamic lock flag. See the list of flags [`PxRigidDynamicLockFlag`] Default: no flags are set
+
+
+ Retrieves the linear velocity of an actor. It is not allowed to use this method while the simulation is running (except during PxScene::collide(), in PxContactModifyCallback or in contact report callbacks). The linear velocity of the actor.
+
+
+ Sets the linear velocity of the actor. Note that if you continuously set the velocity of an actor yourself, forces such as gravity or friction will not be able to manifest themselves, because forces directly influence only the velocity/momentum of an actor. Default: (0.0, 0.0, 0.0) Sleeping: This call wakes the actor if it is sleeping, and the autowake parameter is true (default) or the new velocity is non-zero. It is invalid to use this method if PxActorFlag::eDISABLE_SIMULATION is set.
+
+
+ Retrieves the angular velocity of the actor. It is not allowed to use this method while the simulation is running (except during PxScene::collide(), in PxContactModifyCallback or in contact report callbacks). The angular velocity of the actor.
+
+
+ Sets the angular velocity of the actor. Note that if you continuously set the angular velocity of an actor yourself, forces such as friction will not be able to rotate the actor, because forces directly influence only the velocity/momentum. Default: (0.0, 0.0, 0.0) Sleeping: This call wakes the actor if it is sleeping, and the autowake parameter is true (default) or the new velocity is non-zero. It is invalid to use this method if PxActorFlag::eDISABLE_SIMULATION is set.
+
+
+ Sets the wake counter for the actor. The wake counter value determines the minimum amount of time until the body can be put to sleep. Please note that a body will not be put to sleep if the energy is above the specified threshold (see [`setSleepThreshold`]()) or if other awake bodies are touching it. Passing in a positive value will wake the actor up automatically. It is invalid to use this method for kinematic actors since the wake counter for kinematics is defined based on whether a target pose has been set (see the comment in [`isSleeping`]()). It is invalid to use this method if PxActorFlag::eDISABLE_SIMULATION is set. Default: 0.4 (which corresponds to 20 frames for a time step of 0.02)
+
+
+ Returns the wake counter of the actor. It is not allowed to use this method while the simulation is running. The wake counter of the actor.
+
+
+ Wakes up the actor if it is sleeping. The actor will get woken up and might cause other touching actors to wake up as well during the next simulation step. This will set the wake counter of the actor to the value specified in [`PxSceneDesc::wakeCounterResetValue`]. It is invalid to use this method if the actor has not been added to a scene already or if PxActorFlag::eDISABLE_SIMULATION is set. It is invalid to use this method for kinematic actors since the sleep state for kinematics is defined based on whether a target pose has been set (see the comment in [`isSleeping`]()).
+
+
+ Forces the actor to sleep. The actor will stay asleep during the next simulation step if not touched by another non-sleeping actor. Any applied force will be cleared and the velocity and the wake counter of the actor will be set to 0. It is invalid to use this method if the actor has not been added to a scene already or if PxActorFlag::eDISABLE_SIMULATION is set. It is invalid to use this method for kinematic actors since the sleep state for kinematics is defined based on whether a target pose has been set (see the comment in [`isSleeping`]()).
+
+
+ Sets the solver iteration counts for the body. The solver iteration count determines how accurately joints and contacts are resolved. If you are having trouble with jointed bodies oscillating and behaving erratically, then setting a higher position iteration count may improve their stability. If intersecting bodies are being depenetrated too violently, increase the number of velocity iterations. More velocity iterations will drive the relative exit velocity of the intersecting objects closer to the correct value given the restitution. Default: 4 position iterations, 1 velocity iteration
+
+
+ Retrieves the solver iteration counts.
+
+
+ Retrieves the force threshold for contact reports. The contact report threshold is a force threshold. If the force between two actors exceeds this threshold for either of the two actors, a contact report will be generated according to the contact report threshold flags provided by the filter shader/callback. See [`PxPairFlag`]. The threshold used for a collision between a dynamic actor and the static environment is the threshold of the dynamic actor, and all contacts with static actors are summed to find the total normal force. Default: PX_MAX_F32 Force threshold for contact reports.
+
+
+ Sets the force threshold for contact reports. See [`getContactReportThreshold`]().
+
+
+ constructor sets to default.
+
+
+ (re)sets the structure to the default.
+
+
+ Returns true if the descriptor is valid. true if the current settings are valid.
+
+
+ Sets the rebuild rate of the dynamic tree pruning structures.
+
+
+ Retrieves the rebuild rate of the dynamic tree pruning structures. The rebuild rate of the dynamic tree pruning structures.
+
+
+ Forces dynamic trees to be immediately rebuilt. PxScene will call this function with the PX_SCENE_PRUNER_STATIC or PX_SCENE_PRUNER_DYNAMIC value.
+
+
+ Sets scene query update mode
+
+
+ Gets scene query update mode Current scene query update mode.
+
+
+ Retrieves the system's internal scene query timestamp, increased each time a change to the static scene query structure is performed. scene query static timestamp
+
+
+ Flushes any changes to the scene query representation. This method updates the state of the scene query representation to match changes in the scene state. By default, these changes are buffered until the next query is submitted. Calling this function will not change the results from scene queries, but can be used to ensure that a query will not perform update work in the course of its execution. A thread performing updates will hold a write lock on the query structure, and thus stall other querying threads. In multithread scenarios it can be useful to explicitly schedule the period where this lock may be held for a significant period, so that subsequent queries issued from multiple threads will not block.
+
+
+ Performs a raycast against objects in the scene, returns results in a PxRaycastBuffer object or via a custom user callback implementation inheriting from PxRaycastCallback. Touching hits are not ordered. Shooting a ray from within an object leads to different results depending on the shape type. Please check the details in user guide article SceneQuery. User can ignore such objects by employing one of the provided filter mechanisms. True if any touching or blocking hits were found or any hit was found in case PxQueryFlag::eANY_HIT was specified.
+
+
+ Performs a sweep test against objects in the scene, returns results in a PxSweepBuffer object or via a custom user callback implementation inheriting from PxSweepCallback. Touching hits are not ordered. If a shape from the scene is already overlapping with the query shape in its starting position, the hit is returned unless eASSUME_NO_INITIAL_OVERLAP was specified. True if any touching or blocking hits were found or any hit was found in case PxQueryFlag::eANY_HIT was specified.
+
+
+ Performs an overlap test of a given geometry against objects in the scene, returns results in a PxOverlapBuffer object or via a custom user callback implementation inheriting from PxOverlapCallback. Filtering: returning eBLOCK from user filter for overlap queries will cause a warning (see [`PxQueryHitType`]). True if any touching or blocking hits were found or any hit was found in case PxQueryFlag::eANY_HIT was specified. eBLOCK should not be returned from user filters for overlap(). Doing so will result in undefined behavior, and a warning will be issued. If the PxQueryFlag::eNO_BLOCK flag is set, the eBLOCK will instead be automatically converted to an eTOUCH and the warning suppressed.
+
+
+ Sets scene query update mode
+
+
+ Gets scene query update mode Current scene query update mode.
+
+
+ Retrieves the scene's internal scene query timestamp, increased each time a change to the static scene query structure is performed. scene query static timestamp
+
+
+ Flushes any changes to the scene query representation.
+
+
+ Forces dynamic trees to be immediately rebuilt.
+
+
+ Return the value of PxSceneQueryDesc::staticStructure that was set when creating the scene with PxPhysics::createScene
+
+
+ Return the value of PxSceneQueryDesc::dynamicStructure that was set when creating the scene with PxPhysics::createScene
+
+
+ Executes scene queries update tasks. This function will refit dirty shapes within the pruner and will execute a task to build a new AABB tree, which is build on a different thread. The new AABB tree is built based on the dynamic tree rebuild hint rate. Once the new tree is ready it will be commited in next fetchQueries call, which must be called after. This function is equivalent to the following PxSceneQuerySystem calls: Synchronous calls: - PxSceneQuerySystemBase::flushUpdates() - handle0 = PxSceneQuerySystem::prepareSceneQueryBuildStep(PX_SCENE_PRUNER_STATIC) - handle1 = PxSceneQuerySystem::prepareSceneQueryBuildStep(PX_SCENE_PRUNER_DYNAMIC) Asynchronous calls: - PxSceneQuerySystem::sceneQueryBuildStep(handle0); - PxSceneQuerySystem::sceneQueryBuildStep(handle1); This function is part of the PxSceneSQSystem interface because it uses the PxScene task system under the hood. But it calls PxSceneQuerySystem functions, which are independent from this system and could be called in a similar fashion by a separate, possibly user-defined task manager. If PxSceneQueryUpdateMode::eBUILD_DISABLED_COMMIT_DISABLED is used, it is required to update the scene queries using this function.
+
+
+ This checks to see if the scene queries update has completed. This does not cause the data available for reading to be updated with the results of the scene queries update, it is simply a status check. The bool will allow it to either return immediately or block waiting for the condition to be met so that it can return true True if the results are available.
+
+
+ This method must be called after sceneQueriesUpdate. It will wait for the scene queries update to finish. If the user makes an illegal scene queries update call, the SDK will issue an error message. If a new AABB tree build finished, then during fetchQueries the current tree within the pruning structure is swapped with the new tree.
+
+
+ Decrements the reference count of the object and releases it if the new reference count is zero.
+
+
+ Acquires a counted reference to this object. This method increases the reference count of the object by 1. Decrement the reference count by calling release()
+
+
+ Preallocates internal arrays to minimize the amount of reallocations. The system does not prevent more allocations than given numbers. It is legal to not call this function at all, or to add more shapes to the system than the preallocated amounts.
+
+
+ Frees internal memory that may not be in-use anymore. This is an entry point for reclaiming transient memory allocated at some point by the SQ system, but which wasn't been immediately freed for performance reason. Calling this function might free some memory, but it might also produce a new set of allocations in the next frame.
+
+
+ Adds a shape to the SQ system. The same function is used to add either a regular shape, or a SQ compound shape.
+
+
+ Removes a shape from the SQ system. The same function is used to remove either a regular shape, or a SQ compound shape.
+
+
+ Updates a shape in the SQ system. The same function is used to update either a regular shape, or a SQ compound shape. The transforms are eager-evaluated, but the bounds are lazy-evaluated. This means that the updated transform has to be passed to the update function, while the bounds are automatically recomputed by the system whenever needed.
+
+
+ Adds a compound to the SQ system. SQ compound handle
+
+
+ Removes a compound from the SQ system.
+
+
+ Updates a compound in the SQ system. The compound structures are immediately updated when the call occurs.
+
+
+ Shift the data structures' origin by the specified vector. Please refer to the notes of the similar function in PxScene.
+
+
+ Merges a pruning structure with the SQ system's internal pruners.
+
+
+ Shape to SQ-pruner-handle mapping function. This function finds and returns the SQ pruner handle associated with a given (actor/shape) couple that was previously added to the system. This is needed for the sync function. Associated SQ pruner handle.
+
+
+ Synchronizes the scene-query system with another system that references the same objects. This function is used when the scene-query objects also exist in another system that can also update them. For example the scene-query objects (used for raycast, overlap or sweep queries) might be driven by equivalent objects in an external rigid-body simulation engine. In this case the rigid-body simulation engine computes the new poses and transforms, and passes them to the scene-query system using this function. It is more efficient than calling updateSQShape on each object individually, since updateSQShape would end up recomputing the bounds already available in the rigid-body engine.
+
+
+ Finalizes updates made to the SQ system. This function should be called after updates have been made to the SQ system, to fully reflect the changes inside the internal pruners. In particular it should be called: - after calls to updateSQShape - after calls to sync This function: - recomputes bounds of manually updated shapes (i.e. either regular or SQ compound shapes modified by updateSQShape) - updates dynamic pruners (refit operations) - incrementally rebuilds AABB-trees The amount of work performed in this function depends on PxSceneQueryUpdateMode.
+
+
+ Prepares asynchronous build step. This is directly called (synchronously) by PxSceneSQSystem::sceneQueriesUpdate(). See the comments there. This function is called to let the system execute any necessary synchronous operation before the asynchronous sceneQueryBuildStep() function is called. If there is any work to do for the specific pruner, the function returns a pruner-specific handle that will be passed to the corresponding, asynchronous sceneQueryBuildStep function. A pruner-specific handle that will be sent to sceneQueryBuildStep if there is any work to do, i.e. to execute the corresponding sceneQueryBuildStep() call. Null if there is no work to do, otherwise a pruner-specific handle.
+
+
+ Executes asynchronous build step. This is directly called (asynchronously) by PxSceneSQSystem::sceneQueriesUpdate(). See the comments there. This function incrementally builds the internal trees/pruners. It is called asynchronously, i.e. this can be called from different threads for building multiple trees at the same time.
+
+
+ Retrieves the filter group for static objects. Mark static objects with this group when adding them to the broadphase. Overlaps between static objects will not be detected. All static objects should have the same group. Filter group for static objects.
+
+
+ Retrieves a filter group for dynamic objects. Mark dynamic objects with this group when adding them to the broadphase. Each dynamic object must have an ID, and overlaps between dynamic objects that have the same ID will not be detected. This is useful to dismiss overlaps between shapes of the same (compound) actor directly within the broadphase. Filter group for the object.
+
+
+ Retrieves a filter group for kinematic objects. Mark kinematic objects with this group when adding them to the broadphase. Each kinematic object must have an ID, and overlaps between kinematic objects that have the same ID will not be detected. Filter group for the object.
+
+
+ Returns number of regions currently registered in the broad-phase. Number of regions
+
+
+ Gets broad-phase regions. Number of written out regions.
+
+
+ Adds a new broad-phase region. The total number of regions is limited to PxBroadPhaseCaps::mMaxNbRegions. If that number is exceeded, the call is ignored. The newly added region will be automatically populated with already existing objects that touch it, if the 'populateRegion' parameter is set to true. Otherwise the newly added region will be empty, and it will only be populated with objects when those objects are added to the simulation, or updated if they already exist. Using 'populateRegion=true' has a cost, so it is best to avoid it if possible. In particular it is more efficient to create the empty regions first (with populateRegion=false) and then add the objects afterwards (rather than the opposite). Objects automatically move from one region to another during their lifetime. The system keeps tracks of what regions a given object is in. It is legal for an object to be in an arbitrary number of regions. However if an object leaves all regions, or is created outside of all regions, several things happen: - collisions get disabled for this object - the object appears in the getOutOfBoundsObjects() array If an out-of-bounds object, whose collisions are disabled, re-enters a valid broadphase region, then collisions are re-enabled for that object. Handle for newly created region, or 0xffffffff in case of failure.
+
+
+ Removes a broad-phase region. If the region still contains objects, and if those objects do not overlap any region any more, they are not automatically removed from the simulation. Instead, the PxBroadPhaseCallback::onObjectOutOfBounds notification is used for each object. Users are responsible for removing the objects from the simulation if this is the desired behavior. If the handle is invalid, or if a valid handle is removed twice, an error message is sent to the error stream. True if success
+
+
+ Gets the broadphase type. Broadphase type.
+
+
+ Gets broad-phase caps.
+
+
+ Retrieves the regions API if applicable. For broadphases that do not use explicit user-defined regions, this call returns NULL. Region API, or NULL.
+
+
+ Retrieves the broadphase allocator. User-provided buffers should ideally be allocated with this allocator, for best performance. This is especially true for the GPU broadphases, whose buffers need to be allocated in CUDA host memory. The broadphase allocator.
+
+
+ Retrieves the profiler's context ID. The context ID.
+
+
+ Sets a scratch buffer Some broadphases might take advantage of a scratch buffer to limit runtime allocations. All broadphases still work without providing a scratch buffer, this is an optional function that can potentially reduce runtime allocations.
+
+
+ Updates the broadphase and computes the lists of created/deleted pairs. The provided update data describes changes to objects since the last broadphase update. To benefit from potentially multithreaded implementations, it is necessary to provide a continuation task to the function. It is legal to pass NULL there, but the underlying (CPU) implementations will then run single-threaded.
+
+
+ Retrieves the broadphase results after an update. This should be called once after each update call to retrieve the results of the broadphase. The results are incremental, i.e. the system only returns new and lost pairs, not all current pairs.
+
+
+ Helper for single-threaded updates. This short helper function performs a single-theaded update and reports the results in a single call.
+
+
+ Broadphase factory function. Use this function to create a new standalone broadphase. Newly created broadphase, or NULL
+
+
+ Retrieves the underlying broadphase. The managed broadphase.
+
+
+ Retrieves the managed bounds. This is needed as input parameters to functions like PxBroadPhaseRegions::addRegion. The managed object bounds.
+
+
+ Retrieves the managed distances. This is needed as input parameters to functions like PxBroadPhaseRegions::addRegion. The managed object distances.
+
+
+ Retrieves the managed filter groups. The managed object groups.
+
+
+ Retrieves the managed buffers' capacity. Bounds, distances and groups buffers have the same capacity. The managed buffers' capacity.
+
+
+ Adds an object to the manager. Objects' indices are externally managed, i.e. they must be provided by users (as opposed to handles that could be returned by this manager). The design allows users to identify an object by a single ID, and use the same ID in multiple sub-systems.
+
+
+ Removes an object from the manager.
+
+
+ Updates an object in the manager. This call can update an object's bounds, distance, or both. It is not possible to update an object's filter group.
+
+
+ Updates the broadphase and computes the lists of created/deleted pairs. The data necessary for updating the broadphase is internally computed by the AABB manager. To benefit from potentially multithreaded implementations, it is necessary to provide a continuation task to the function. It is legal to pass NULL there, but the underlying (CPU) implementations will then run single-threaded.
+
+
+ Retrieves the broadphase results after an update. This should be called once after each update call to retrieve the results of the broadphase. The results are incremental, i.e. the system only returns new and lost pairs, not all current pairs.
+
+
+ Helper for single-threaded updates. This short helper function performs a single-theaded update and reports the results in a single call.
+
+
+ AABB manager factory function. Use this function to create a new standalone high-level broadphase. Newly created AABB manager, or NULL
+
+
+ constructor sets to default
+
+
+ (re)sets the structure to the default
+
+
+ Returns true if the descriptor is valid. true if the current settings are valid.
+
+
+ constructor sets to default.
+
+
+ (re)sets the structure to the default.
+
+
+ Returns true if the descriptor is valid. true if the current settings are valid.
+
+
+ Get number of broadphase volumes added for the current simulation step. Number of broadphase volumes added.
+
+
+ Get number of broadphase volumes removed for the current simulation step. Number of broadphase volumes removed.
+
+
+ Get number of shape collision pairs of a certain type processed for the current simulation step. There is an entry for each geometry pair type. entry[i][j] = entry[j][i], hence, if you want the sum of all pair types, you need to discard the symmetric entries Number of processed pairs of the specified geometry types.
+
+
+ Sets the PVD flag. See PxPvdSceneFlag.
+
+
+ Sets the PVD flags. See PxPvdSceneFlags.
+
+
+ Retrieves the PVD flags. See PxPvdSceneFlags.
+
+
+ update camera on PVD application's render window
+
+
+ draw points on PVD application's render window
+
+
+ draw lines on PVD application's render window
+
+
+ draw triangles on PVD application's render window
+
+
+ draw text on PVD application's render window
+
+
+ Out-of-bounds notification. This function is called when an object leaves the broad-phase.
+
+
+ Out-of-bounds notification. This function is called when an aggregate leaves the broad-phase.
+
+
+ Deletes the scene. Removes any actors and constraint shaders from this scene (if the user hasn't already done so). Be sure to not keep a reference to this object after calling release. Avoid release calls while the scene is simulating (in between simulate() and fetchResults() calls).
+
+
+ Sets a scene flag. You can only set one flag at a time. Not all flags are mutable and changing some will result in an error. Please check [`PxSceneFlag`] to see which flags can be changed.
+
+
+ Get the scene flags. The scene flags. See [`PxSceneFlag`]
+
+
+ Set new scene limits. Increase the maximum capacity of various data structures in the scene. The new capacities will be at least as large as required to deal with the objects currently in the scene. Further, these values are for preallocation and do not represent hard limits.
+
+
+ Get current scene limits. Current scene limits.
+
+
+ Call this method to retrieve the Physics SDK. The physics SDK this scene is associated with.
+
+
+ Retrieves the scene's internal timestamp, increased each time a simulation step is completed. scene timestamp
+
+
+ Adds an articulation to this scene. If the articulation is already assigned to a scene (see [`PxArticulationReducedCoordinate::getScene`]), the call is ignored and an error is issued. True if success
+
+
+ Removes an articulation from this scene. If the articulation is not part of this scene (see [`PxArticulationReducedCoordinate::getScene`]), the call is ignored and an error is issued. If the articulation is in an aggregate it will be removed from the aggregate.
+
+
+ Adds an actor to this scene. If the actor is already assigned to a scene (see [`PxActor::getScene`]), the call is ignored and an error is issued. If the actor has an invalid constraint, in checked builds the call is ignored and an error is issued. You can not add individual articulation links (see [`PxArticulationLink`]) to the scene. Use #addArticulation() instead. If the actor is a PxRigidActor then each assigned PxConstraint object will get added to the scene automatically if it connects to another actor that is part of the scene already. When a BVH is provided the actor shapes are grouped together. The scene query pruning structure inside PhysX SDK will store/update one bound per actor. The scene queries against such an actor will query actor bounds and then make a local space query against the provided BVH, which is in actor's local space. True if success
+
+
+ Adds actors to this scene. Only supports actors of type PxRigidStatic and PxRigidDynamic. This method only supports actors of type PxRigidStatic and PxRigidDynamic. For other actors, use addActor() instead. For articulation links, use addArticulation(). If one of the actors is already assigned to a scene (see [`PxActor::getScene`]), the call is ignored and an error is issued. If an actor in the array contains an invalid constraint, in checked builds the call is ignored and an error is issued. If an actor in the array is a PxRigidActor then each assigned PxConstraint object will get added to the scene automatically if it connects to another actor that is part of the scene already. this method is optimized for high performance. True if success
+
+
+ Adds a pruning structure together with its actors to this scene. Only supports actors of type PxRigidStatic and PxRigidDynamic. This method only supports actors of type PxRigidStatic and PxRigidDynamic. For other actors, use addActor() instead. For articulation links, use addArticulation(). If an actor in the pruning structure contains an invalid constraint, in checked builds the call is ignored and an error is issued. For all actors in the pruning structure each assigned PxConstraint object will get added to the scene automatically if it connects to another actor that is part of the scene already. This method is optimized for high performance. Merging a PxPruningStructure into an active scene query optimization AABB tree might unbalance the tree. A typical use case for PxPruningStructure is a large world scenario where blocks of closely positioned actors get streamed in. The merge process finds the best node in the active scene query optimization AABB tree and inserts the PxPruningStructure. Therefore using PxPruningStructure for actors scattered throughout the world will result in an unbalanced tree. True if success
+
+
+ Removes an actor from this scene. If the actor is not part of this scene (see [`PxActor::getScene`]), the call is ignored and an error is issued. You can not remove individual articulation links (see [`PxArticulationLink`]) from the scene. Use #removeArticulation() instead. If the actor is a PxRigidActor then all assigned PxConstraint objects will get removed from the scene automatically. If the actor is in an aggregate it will be removed from the aggregate.
+
+
+ Removes actors from this scene. Only supports actors of type PxRigidStatic and PxRigidDynamic. This method only supports actors of type PxRigidStatic and PxRigidDynamic. For other actors, use removeActor() instead. For articulation links, use removeArticulation(). If some actor is not part of this scene (see [`PxActor::getScene`]), the actor remove is ignored and an error is issued. You can not remove individual articulation links (see [`PxArticulationLink`]) from the scene. Use #removeArticulation() instead. If the actor is a PxRigidActor then all assigned PxConstraint objects will get removed from the scene automatically.
+
+
+ Adds an aggregate to this scene. If the aggregate is already assigned to a scene (see [`PxAggregate::getScene`]), the call is ignored and an error is issued. If the aggregate contains an actor with an invalid constraint, in checked builds the call is ignored and an error is issued. If the aggregate already contains actors, those actors are added to the scene as well. True if success
+
+
+ Removes an aggregate from this scene. If the aggregate is not part of this scene (see [`PxAggregate::getScene`]), the call is ignored and an error is issued. If the aggregate contains actors, those actors are removed from the scene as well.
+
+
+ Adds objects in the collection to this scene. This function adds the following types of objects to this scene: PxRigidActor (except PxArticulationLink), PxAggregate, PxArticulationReducedCoordinate. This method is typically used after deserializing the collection in order to populate the scene with deserialized objects. If the collection contains an actor with an invalid constraint, in checked builds the call is ignored and an error is issued. True if success
+
+
+ Retrieve the number of actors of certain types in the scene. For supported types, see PxActorTypeFlags. the number of actors.
+
+
+ Retrieve an array of all the actors of certain types in the scene. For supported types, see PxActorTypeFlags. Number of actors written to the buffer.
+
+
+ Queries the PxScene for a list of the PxActors whose transforms have been updated during the previous simulation step. Only includes actors of type PxRigidDynamic and PxArticulationLink. PxSceneFlag::eENABLE_ACTIVE_ACTORS must be set. Do not use this method while the simulation is running. Calls to this method while the simulation is running will be ignored and NULL will be returned. A pointer to the list of active PxActors generated during the last call to fetchResults().
+
+
+ Returns the number of articulations in the scene. the number of articulations in this scene.
+
+
+ Retrieve all the articulations in the scene. Number of articulations written to the buffer.
+
+
+ Returns the number of constraint shaders in the scene. the number of constraint shaders in this scene.
+
+
+ Retrieve all the constraint shaders in the scene. Number of constraint shaders written to the buffer.
+
+
+ Returns the number of aggregates in the scene. the number of aggregates in this scene.
+
+
+ Retrieve all the aggregates in the scene. Number of aggregates written to the buffer.
+
+
+ Specifies the dominance behavior of contacts between two actors with two certain dominance groups. It is possible to assign each actor to a dominance groups using [`PxActor::setDominanceGroup`](). With dominance groups one can have all contacts created between actors act in one direction only. This is useful, for example, if you want an object to push debris out of its way and be unaffected,while still responding physically to forces and collisions with non-debris objects. Whenever a contact between two actors (a0, a1) needs to be solved, the groups (g0, g1) of both actors are retrieved. Then the PxDominanceGroupPair setting for this group pair is retrieved with getDominanceGroupPair(g0, g1). In the contact, PxDominanceGroupPair::dominance0 becomes the dominance setting for a0, and PxDominanceGroupPair::dominance1 becomes the dominance setting for a1. A dominanceN setting of 1.0f, the default, will permit aN to be pushed or pulled by a(1-N) through the contact. A dominanceN setting of 0.0f, will however prevent aN to be pushed by a(1-N) via the contact. Thus, a PxDominanceGroupPair of (1.0f, 0.0f) makes the interaction one-way. The matrix sampled by getDominanceGroupPair(g1, g2) is initialised by default such that: if g1 == g2, then (1.0f, 1.0f) is returned if g1 < g2, then (0.0f, 1.0f) is returned if g1 > g2, then (1.0f, 0.0f) is returned In other words, we permit actors in higher groups to be pushed around by actors in lower groups by default. These settings should cover most applications, and in fact not overriding these settings may likely result in higher performance. It is not possible to make the matrix asymetric, or to change the diagonal. In other words: it is not possible to change (g1, g2) if (g1==g2) if you set (g1, g2) to X, then (g2, g1) will implicitly and automatically be set to ~X, where: ~(1.0f, 1.0f) is (1.0f, 1.0f) ~(0.0f, 1.0f) is (1.0f, 0.0f) ~(1.0f, 0.0f) is (0.0f, 1.0f) These two restrictions are to make sure that contacts between two actors will always evaluate to the same dominance setting, regardless of the order of the actors. Dominance settings are currently specified as floats 0.0f or 1.0f because in the future we may permit arbitrary fractional settings to express 'partly-one-way' interactions. Sleeping: Does NOT wake actors up automatically.
+
+
+ Samples the dominance matrix.
+
+
+ Return the cpu dispatcher that was set in PxSceneDesc::cpuDispatcher when creating the scene with PxPhysics::createScene
+
+
+ Reserves a new client ID. PX_DEFAULT_CLIENT is always available as the default clientID. Additional clients are returned by this function. Clients cannot be released once created. An error is reported when more than a supported number of clients (currently 128) are created.
+
+
+ Sets a user notify object which receives special simulation events when they occur. Do not set the callback while the simulation is running. Calls to this method while the simulation is running will be ignored.
+
+
+ Retrieves the simulationEventCallback pointer set with setSimulationEventCallback(). The current user notify pointer. See [`PxSimulationEventCallback`].
+
+
+ Sets a user callback object, which receives callbacks on all contacts generated for specified actors. Do not set the callback while the simulation is running. Calls to this method while the simulation is running will be ignored.
+
+
+ Sets a user callback object, which receives callbacks on all CCD contacts generated for specified actors. Do not set the callback while the simulation is running. Calls to this method while the simulation is running will be ignored.
+
+
+ Retrieves the PxContactModifyCallback pointer set with setContactModifyCallback(). The current user contact modify callback pointer. See [`PxContactModifyCallback`].
+
+
+ Retrieves the PxCCDContactModifyCallback pointer set with setContactModifyCallback(). The current user contact modify callback pointer. See [`PxContactModifyCallback`].
+
+
+ Sets a broad-phase user callback object. Do not set the callback while the simulation is running. Calls to this method while the simulation is running will be ignored.
+
+
+ Retrieves the PxBroadPhaseCallback pointer set with setBroadPhaseCallback(). The current broad-phase callback pointer. See [`PxBroadPhaseCallback`].
+
+
+ Sets the shared global filter data which will get passed into the filter shader. It is the user's responsibility to ensure that changing the shared global filter data does not change the filter output value for existing pairs. If the filter output for existing pairs does change nonetheless then such a change will not take effect until the pair gets refiltered. resetFiltering() can be used to explicitly refilter the pairs of specific objects. The provided data will get copied to internal buffers and this copy will be used for filtering calls. Do not use this method while the simulation is running. Calls to this method while the simulation is running will be ignored.
+
+
+ Gets the shared global filter data in use for this scene. The reference points to a copy of the original filter data specified in [`PxSceneDesc`].filterShaderData or provided by #setFilterShaderData(). Shared filter data for filter shader.
+
+
+ Gets the size of the shared global filter data ([`PxSceneDesc`].filterShaderData) Size of shared filter data [bytes].
+
+
+ Marks the object to reset interactions and re-run collision filters in the next simulation step. This call forces the object to remove all existing collision interactions, to search anew for existing contact pairs and to run the collision filters again for found collision pairs. The operation is supported for PxRigidActor objects only. All persistent state of existing interactions will be lost and can not be retrieved even if the same collison pair is found again in the next step. This will mean, for example, that you will not get notified about persistent contact for such an interaction (see [`PxPairFlag::eNOTIFY_TOUCH_PERSISTS`]), the contact pair will be interpreted as newly found instead. Lost touch contact reports will be sent for every collision pair which includes this shape, if they have been requested through [`PxPairFlag::eNOTIFY_TOUCH_LOST`] or #PxPairFlag::eNOTIFY_THRESHOLD_FORCE_LOST. This is an expensive operation, don't use it if you don't have to. Can be used to retrieve collision pairs that were killed by the collision filters (see [`PxFilterFlag::eKILL`]) It is invalid to use this method if the actor has not been added to a scene already. It is invalid to use this method if PxActorFlag::eDISABLE_SIMULATION is set. Do not use this method while the simulation is running. Sleeping: Does wake up the actor. True if success
+
+
+ Marks the object to reset interactions and re-run collision filters for specified shapes in the next simulation step. This is a specialization of the resetFiltering(PxActor & actor) method and allows to reset interactions for specific shapes of a PxRigidActor. Do not use this method while the simulation is running. Sleeping: Does wake up the actor.
+
+
+ Gets the pair filtering mode for kinematic-kinematic pairs. Filtering mode for kinematic-kinematic pairs.
+
+
+ Gets the pair filtering mode for static-kinematic pairs. Filtering mode for static-kinematic pairs.
+
+
+ Advances the simulation by an elapsedTime time. Large elapsedTime values can lead to instabilities. In such cases elapsedTime should be subdivided into smaller time intervals and simulate() should be called multiple times for each interval. Calls to simulate() should pair with calls to fetchResults(): Each fetchResults() invocation corresponds to exactly one simulate() invocation; calling simulate() twice without an intervening fetchResults() or fetchResults() twice without an intervening simulate() causes an error condition. scene->simulate(); ...do some processing until physics is computed... scene->fetchResults(); ...now results of run may be retrieved. True if success
+
+
+ Performs dynamics phase of the simulation pipeline. Calls to advance() should follow calls to fetchCollision(). An error message will be issued if this sequence is not followed. True if success
+
+
+ Performs collision detection for the scene over elapsedTime Calls to collide() should be the first method called to simulate a frame. True if success
+
+
+ This checks to see if the simulation run has completed. This does not cause the data available for reading to be updated with the results of the simulation, it is simply a status check. The bool will allow it to either return immediately or block waiting for the condition to be met so that it can return true True if the results are available.
+
+
+ This method must be called after collide() and before advance(). It will wait for the collision phase to finish. If the user makes an illegal simulation call, the SDK will issue an error message.
+
+
+ This is the big brother to checkResults() it basically does the following: True if the results have been fetched.
+
+
+ This call performs the first section of fetchResults, and returns a pointer to the contact streams output by the simulation. It can be used to process contact pairs in parallel, which is often a limiting factor for fetchResults() performance. After calling this function and processing the contact streams, call fetchResultsFinish(). Note that writes to the simulation are not permitted between the start of fetchResultsStart() and the end of fetchResultsFinish(). True if the results have been fetched.
+
+
+ This call processes all event callbacks in parallel. It takes a continuation task, which will be executed once all callbacks have been processed. This is a utility function to make it easier to process callbacks in parallel using the PhysX task system. It can only be used in conjunction with fetchResultsStart(...) and fetchResultsFinish(...)
+
+
+ This call performs the second section of fetchResults. It must be called after fetchResultsStart() returns and contact reports have been processed. Note that once fetchResultsFinish() has been called, the contact streams returned in fetchResultsStart() will be invalid.
+
+
+ This call performs the synchronization of particle system data copies.
+
+
+ Clear internal buffers and free memory. This method can be used to clear buffers and free internal memory without having to destroy the scene. Can be useful if the physics data gets streamed in and a checkpoint with a clean state should be created. It is not allowed to call this method while the simulation is running. The call will fail.
+
+
+ Sets a constant gravity for the entire scene. Do not use this method while the simulation is running. Sleeping: Does NOT wake the actor up automatically.
+
+
+ Retrieves the current gravity setting. The current gravity for the scene.
+
+
+ Set the bounce threshold velocity. Collision speeds below this threshold will not cause a bounce. Do not use this method while the simulation is running.
+
+
+ Return the bounce threshold velocity.
+
+
+ Sets the maximum number of CCD passes Do not use this method while the simulation is running.
+
+
+ Gets the maximum number of CCD passes. The maximum number of CCD passes.
+
+
+ Set the maximum CCD separation. Do not use this method while the simulation is running.
+
+
+ Gets the maximum CCD separation. The maximum CCD separation.
+
+
+ Set the CCD threshold. Do not use this method while the simulation is running.
+
+
+ Gets the CCD threshold. The CCD threshold.
+
+
+ Set the max bias coefficient. Do not use this method while the simulation is running.
+
+
+ Gets the max bias coefficient. The max bias coefficient.
+
+
+ Set the friction offset threshold. Do not use this method while the simulation is running.
+
+
+ Gets the friction offset threshold.
+
+
+ Set the friction correlation distance. Do not use this method while the simulation is running.
+
+
+ Gets the friction correlation distance.
+
+
+ Return the friction model.
+
+
+ Return the solver model.
+
+
+ Function that lets you set debug visualization parameters. Returns false if the value passed is out of range for usage specified by the enum. Do not use this method while the simulation is running. False if the parameter is out of range.
+
+
+ Function that lets you query debug visualization parameters. The value of the parameter.
+
+
+ Defines a box in world space to which visualization geometry will be (conservatively) culled. Use a non-empty culling box to enable the feature, and an empty culling box to disable it. Do not use this method while the simulation is running.
+
+
+ Retrieves the visualization culling box. the box to which the geometry will be culled.
+
+
+ Retrieves the render buffer. This will contain the results of any active visualization for this scene. Do not use this method while the simulation is running. Calls to this method while the simulation is running will result in undefined behaviour. The render buffer.
+
+
+ Call this method to retrieve statistics for the current simulation step. Do not use this method while the simulation is running. Calls to this method while the simulation is running will be ignored.
+
+
+ Returns broad-phase type. Broad-phase type
+
+
+ Gets broad-phase caps. True if success
+
+
+ Returns number of regions currently registered in the broad-phase. Number of regions
+
+
+ Gets broad-phase regions. Number of written out regions
+
+
+ Adds a new broad-phase region. The bounds for the new region must be non-empty, otherwise an error occurs and the call is ignored. Note that by default, objects already existing in the SDK that might touch this region will not be automatically added to the region. In other words the newly created region will be empty, and will only be populated with new objects when they are added to the simulation, or with already existing objects when they are updated. It is nonetheless possible to override this default behavior and let the SDK populate the new region automatically with already existing objects overlapping the incoming region. This has a cost though, and it should only be used when the game can not guarantee that all objects within the new region will be added to the simulation after the region itself. Objects automatically move from one region to another during their lifetime. The system keeps tracks of what regions a given object is in. It is legal for an object to be in an arbitrary number of regions. However if an object leaves all regions, or is created outside of all regions, several things happen: - collisions get disabled for this object - if a PxBroadPhaseCallback object is provided, an \"out-of-bounds\" event is generated via that callback - if a PxBroadPhaseCallback object is not provided, a warning/error message is sent to the error stream If an object goes out-of-bounds and user deletes it during the same frame, neither the out-of-bounds event nor the error message is generated. Handle for newly created region, or 0xffffffff in case of failure.
+
+
+ Removes a new broad-phase region. If the region still contains objects, and if those objects do not overlap any region any more, they are not automatically removed from the simulation. Instead, the PxBroadPhaseCallback::onObjectOutOfBounds notification is used for each object. Users are responsible for removing the objects from the simulation if this is the desired behavior. If the handle is invalid, or if a valid handle is removed twice, an error message is sent to the error stream. True if success
+
+
+ Get the task manager associated with this scene the task manager associated with the scene
+
+
+ Lock the scene for reading from the calling thread. When the PxSceneFlag::eREQUIRE_RW_LOCK flag is enabled lockRead() must be called before any read calls are made on the scene. Multiple threads may read at the same time, no threads may read while a thread is writing. If a call to lockRead() is made while another thread is holding a write lock then the calling thread will be blocked until the writing thread calls unlockWrite(). Lock upgrading is *not* supported, that means it is an error to call lockRead() followed by lockWrite(). Recursive locking is supported but each lockRead() call must be paired with an unlockRead().
+
+
+ Unlock the scene from reading. Each unlockRead() must be paired with a lockRead() from the same thread.
+
+
+ Lock the scene for writing from this thread. When the PxSceneFlag::eREQUIRE_RW_LOCK flag is enabled lockWrite() must be called before any write calls are made on the scene. Only one thread may write at a time and no threads may read while a thread is writing. If a call to lockWrite() is made and there are other threads reading then the calling thread will be blocked until the readers complete. Writers have priority. If a thread is blocked waiting to write then subsequent calls to lockRead() from other threads will be blocked until the writer completes. If multiple threads are waiting to write then the thread that is first granted access depends on OS scheduling. Recursive locking is supported but each lockWrite() call must be paired with an unlockWrite(). If a thread has already locked the scene for writing then it may call lockRead().
+
+
+ Unlock the scene from writing. Each unlockWrite() must be paired with a lockWrite() from the same thread.
+
+
+ set the cache blocks that can be used during simulate(). Each frame the simulation requires memory to store contact, friction, and contact cache data. This memory is used in blocks of 16K. Each frame the blocks used by the previous frame are freed, and may be retrieved by the application using PxScene::flushSimulation() This call will force allocation of cache blocks if the numBlocks parameter is greater than the currently allocated number of blocks, and less than the max16KContactDataBlocks parameter specified at scene creation time. Do not use this method while the simulation is running.
+
+
+ get the number of cache blocks currently used by the scene This function may not be called while the scene is simulating the number of cache blocks currently used by the scene
+
+
+ get the maximum number of cache blocks used by the scene This function may not be called while the scene is simulating the maximum number of cache blocks everused by the scene
+
+
+ Return the value of PxSceneDesc::contactReportStreamBufferSize that was set when creating the scene with PxPhysics::createScene
+
+
+ Sets the number of actors required to spawn a separate rigid body solver thread. Do not use this method while the simulation is running.
+
+
+ Retrieves the number of actors required to spawn a separate rigid body solver thread. Current number of actors required to spawn a separate rigid body solver thread.
+
+
+ Sets the number of articulations required to spawn a separate rigid body solver thread. Do not use this method while the simulation is running.
+
+
+ Retrieves the number of articulations required to spawn a separate rigid body solver thread. Current number of articulations required to spawn a separate rigid body solver thread.
+
+
+ Returns the wake counter reset value. Wake counter reset value
+
+
+ Shift the scene origin by the specified vector. The poses of all objects in the scene and the corresponding data structures will get adjusted to reflect the new origin location (the shift vector will get subtracted from all object positions). It is the user's responsibility to keep track of the summed total origin shift and adjust all input/output to/from PhysX accordingly. Do not use this method while the simulation is running. Calls to this method while the simulation is running will be ignored. Make sure to propagate the origin shift to other dependent modules (for example, the character controller module etc.). This is an expensive operation and we recommend to use it only in the case where distance related precision issues may arise in areas far from the origin.
+
+
+ Returns the Pvd client associated with the scene. the client, NULL if no PVD supported.
+
+
+ Copy GPU articulation data from the internal GPU buffer to a user-provided device buffer.
+
+
+ Apply GPU articulation data from a user-provided device buffer to the internal GPU buffer.
+
+
+ Copy GPU softbody data from the internal GPU buffer to a user-provided device buffer.
+
+
+ Apply user-provided data to the internal softbody system.
+
+
+ Copy contact data from the internal GPU buffer to a user-provided device buffer. The contact data contains pointers to internal state and is only valid until the next call to simulate().
+
+
+ Copy GPU rigid body data from the internal GPU buffer to a user-provided device buffer.
+
+
+ Apply user-provided data to rigid body.
+
+
+ Compute dense Jacobian matrices for specified articulations on the GPU. The size of Jacobians can vary by articulation, since it depends on the number of links, degrees-of-freedom, and whether the base is fixed. The size is determined using these formulas: nCols = (fixedBase ? 0 : 6) + dofCount nRows = (fixedBase ? 0 : 6) + (linkCount - 1) * 6; The user must ensure that adequate space is provided for each Jacobian matrix.
+
+
+ Compute the joint-space inertia matrices that maps joint accelerations to joint forces: forces = M * accelerations on the GPU. The size of matrices can vary by articulation, since it depends on the number of links and degrees-of-freedom. The size is determined using this formula: sizeof(float) * dofCount * dofCount The user must ensure that adequate space is provided for each mass matrix.
+
+
+ Computes the joint DOF forces required to counteract gravitational forces for the given articulation pose. The size of the result can vary by articulation, since it depends on the number of links and degrees-of-freedom. The size is determined using this formula: sizeof(float) * dofCount The user must ensure that adequate space is provided for each articulation.
+
+
+ Computes the joint DOF forces required to counteract coriolis and centrifugal forces for the given articulation pose. The size of the result can vary by articulation, since it depends on the number of links and degrees-of-freedom. The size is determined using this formula: sizeof(float) * dofCount The user must ensure that adequate space is provided for each articulation.
+
+
+ Apply user-provided data to particle buffers. This function should be used if the particle buffer flags are already on the device. Otherwise, use PxParticleBuffer::raiseFlags() from the CPU. This assumes the data has been changed directly in the PxParticleBuffer.
+
+
+ Constructor
+
+
+ Constructor
+
+
+ Constructor
+
+
+ Advances the iterator to next set of extra data items. The contact pair extra data stream contains sets of items as requested by the corresponding [`PxPairFlag`] flags [`PxPairFlag::ePRE_SOLVER_VELOCITY`], #PxPairFlag::ePOST_SOLVER_VELOCITY, #PxPairFlag::eCONTACT_EVENT_POSE. A set can contain one item of each plus the PxContactPairIndex item. This method parses the stream and points the iterator member variables to the corresponding items of the current set, if they are available. If CCD is not enabled, you should only get one set of items. If CCD with multiple passes is enabled, you might get more than one item set. Even though contact pair extra data is requested per shape pair, you will not get an item set per shape pair but one per actor pair. If, for example, an actor has two shapes and both collide with another actor, then there will only be one item set (since it applies to both shape pairs). True if there was another set of extra data items in the stream, else false.
+
+
+ Extracts the contact points from the stream and stores them in a convenient format. Number of contact points written to the buffer.
+
+
+ Helper method to clone the contact pair and copy the contact data stream into a user buffer. The contact data stream is only accessible during the contact report callback. This helper function provides copy functionality to buffer the contact stream information such that it can get accessed at a later stage.
+
+
+ This is called when a breakable constraint breaks. The user should not release the constraint shader inside this call! No event will get reported if the constraint breaks but gets deleted while the time step is still being simulated.
+
+
+ This is called with the actors which have just been woken up. Only supported by rigid bodies yet. Only called on actors for which the PxActorFlag eSEND_SLEEP_NOTIFIES has been set. Only the latest sleep state transition happening between fetchResults() of the previous frame and fetchResults() of the current frame will get reported. For example, let us assume actor A is awake, then A->putToSleep() gets called, then later A->wakeUp() gets called. At the next simulate/fetchResults() step only an onWake() event will get triggered because that was the last transition. If an actor gets newly added to a scene with properties such that it is awake and the sleep state does not get changed by the user or simulation, then an onWake() event will get sent at the next simulate/fetchResults() step.
+
+
+ This is called with the actors which have just been put to sleep. Only supported by rigid bodies yet. Only called on actors for which the PxActorFlag eSEND_SLEEP_NOTIFIES has been set. Only the latest sleep state transition happening between fetchResults() of the previous frame and fetchResults() of the current frame will get reported. For example, let us assume actor A is asleep, then A->wakeUp() gets called, then later A->putToSleep() gets called. At the next simulate/fetchResults() step only an onSleep() event will get triggered because that was the last transition (assuming the simulation does not wake the actor up). If an actor gets newly added to a scene with properties such that it is asleep and the sleep state does not get changed by the user or simulation, then an onSleep() event will get sent at the next simulate/fetchResults() step.
+
+
+ This is called when certain contact events occur. The method will be called for a pair of actors if one of the colliding shape pairs requested contact notification. You request which events are reported using the filter shader/callback mechanism (see [`PxSimulationFilterShader`], [`PxSimulationFilterCallback`], #PxPairFlag). Do not keep references to the passed objects, as they will be invalid after this function returns.
+
+
+ This is called with the current trigger pair events. Shapes which have been marked as triggers using PxShapeFlag::eTRIGGER_SHAPE will send events according to the pair flag specification in the filter shader (see [`PxPairFlag`], #PxSimulationFilterShader). Trigger shapes will no longer send notification events for interactions with other trigger shapes.
+
+
+ Provides early access to the new pose of moving rigid bodies. When this call occurs, rigid bodies having the [`PxRigidBodyFlag::eENABLE_POSE_INTEGRATION_PREVIEW`] flag set, were moved by the simulation and their new poses can be accessed through the provided buffers. The provided buffers are valid and can be read until the next call to [`PxScene::simulate`]() or #PxScene::collide(). This callback gets triggered while the simulation is running. If the provided rigid body references are used to read properties of the object, then the callback has to guarantee no other thread is writing to the same body at the same time. The code in this callback should be lightweight as it can block the simulation, that is, the [`PxScene::fetchResults`]() call.
+
+
+ Release this object.
+
+
+ Retrieve rigid actors in the pruning structure. You can retrieve the number of rigid actor pointers by calling [`getNbRigidActors`]() Number of rigid actor pointers written to the buffer.
+
+
+ Returns the number of rigid actors in the pruning structure. You can use [`getRigidActors`]() to retrieve the rigid actor pointers. Number of rigid actors in the pruning structure.
+
+
+ Gets the merge data for static actors This is mainly called by the PxSceneQuerySystem::merge() function to merge a PxPruningStructure with the internal data-structures of the scene-query system. Implementation-dependent merge data for static actors.
+
+
+ Gets the merge data for dynamic actors This is mainly called by the PxSceneQuerySystem::merge() function to merge a PxPruningStructure with the internal data-structures of the scene-query system. Implementation-dependent merge data for dynamic actors.
+
+
+ Releases the context.
+
+
+ Retrieves the controller manager associated with this context. The associated controller manager
+
+
+ Adds an obstacle to the context. Handle for newly-added obstacle
+
+
+ Removes an obstacle from the context. True if success
+
+
+ Updates data for an existing obstacle. True if success
+
+
+ Retrieves number of obstacles in the context. Number of obstacles in the context
+
+
+ Retrieves desired obstacle. Desired obstacle
+
+
+ Retrieves desired obstacle by given handle. Desired obstacle
+
+
+ Called when current controller hits a shape. This is called when the CCT moves and hits a shape. This will not be called when a moving shape hits a non-moving CCT.
+
+
+ Called when current controller hits another controller.
+
+
+ Called when current controller hits a user-defined obstacle.
+
+
+ Filtering method for CCT-vs-CCT. true to keep the pair, false to filter it out
+
+
+ returns true if the current settings are valid True if the descriptor is valid.
+
+
+ Returns the character controller type The controllers type.
+
+
+ Return the type of controller
+
+
+ Releases the controller.
+
+
+ Moves the character using a \"collide-and-slide\" algorithm. Collision flags, collection of ::PxControllerCollisionFlags
+
+
+ Sets controller's position. The position controlled by this function is the center of the collision shape. This is a 'teleport' function, it doesn't check for collisions. The character's position must be such that it does not overlap the static geometry. To move the character under normal conditions use the [`move`]() function. Currently always returns true.
+
+
+ Retrieve the raw position of the controller. The position retrieved by this function is the center of the collision shape. To retrieve the bottom position of the shape, a.k.a. the foot position, use the getFootPosition() function. The position is updated by calls to move(). Calling this method without calling move() will return the last position or the initial position of the controller. The controller's center position
+
+
+ Set controller's foot position. The position controlled by this function is the bottom of the collision shape, a.k.a. the foot position. The foot position takes the contact offset into account This is a 'teleport' function, it doesn't check for collisions. To move the character under normal conditions use the [`move`]() function. Currently always returns true.
+
+
+ Retrieve the \"foot\" position of the controller, i.e. the position of the bottom of the CCT's shape. The foot position takes the contact offset into account The controller's foot position
+
+
+ Get the rigid body actor associated with this controller (see PhysX documentation). The behavior upon manually altering this actor is undefined, you should primarily use it for reading const properties. the actor associated with the controller.
+
+
+ The step height.
+
+
+ Retrieve the step height. The step offset for the controller.
+
+
+ Sets the non-walkable mode for the CCT.
+
+
+ Retrieves the non-walkable mode for the CCT. The current non-walkable mode.
+
+
+ Retrieve the contact offset. The contact offset for the controller.
+
+
+ Sets the contact offset.
+
+
+ Retrieve the 'up' direction. The up direction for the controller.
+
+
+ Sets the 'up' direction.
+
+
+ Retrieve the slope limit. The slope limit for the controller.
+
+
+ Sets the slope limit. This feature can not be enabled at runtime, i.e. if the slope limit is zero when creating the CCT (which disables the feature) then changing the slope limit at runtime will not have any effect, and the call will be ignored.
+
+
+ Flushes internal geometry cache. The character controller uses caching in order to speed up collision testing. The cache is automatically flushed when a change to static objects is detected in the scene. For example when a static shape is added, updated, or removed from the scene, the cache is automatically invalidated. However there may be situations that cannot be automatically detected, and those require manual invalidation of the cache. Currently the user must call this when the filtering behavior changes (the PxControllerFilters parameter of the PxController::move call). While the controller in principle could detect a change in these parameters, it cannot detect a change in the behavior of the filtering function.
+
+
+ Retrieve the scene associated with the controller. The physics scene
+
+
+ Returns the user data associated with this controller. The user pointer associated with the controller.
+
+
+ Sets the user data associated with this controller.
+
+
+ Returns information about the controller's internal state.
+
+
+ Returns the controller's internal statistics.
+
+
+ Resizes the controller. This function attempts to resize the controller to a given size, while making sure the bottom position of the controller remains constant. In other words the function modifies both the height and the (center) position of the controller. This is a helper function that can be used to implement a 'crouch' functionality for example.
+
+
+ constructor sets to default.
+
+
+ (re)sets the structure to the default.
+
+
+ returns true if the current settings are valid True if the descriptor is valid.
+
+
+ Gets controller's half height. The half height of the controller.
+
+
+ Gets controller's half side extent. The half side extent of the controller.
+
+
+ Gets controller's half forward extent. The half forward extent of the controller.
+
+
+ Sets controller's half height. this doesn't check for collisions. Currently always true.
+
+
+ Sets controller's half side extent. this doesn't check for collisions. Currently always true.
+
+
+ Sets controller's half forward extent. this doesn't check for collisions. Currently always true.
+
+
+ constructor sets to default.
+
+
+ (re)sets the structure to the default.
+
+
+ returns true if the current settings are valid True if the descriptor is valid.
+
+
+ Gets controller's radius. The radius of the controller.
+
+
+ Sets controller's radius. this doesn't check for collisions. Currently always true.
+
+
+ Gets controller's height. The height of the capsule controller.
+
+
+ Resets controller's height. this doesn't check for collisions. Currently always true.
+
+
+ Gets controller's climbing mode. The capsule controller's climbing mode.
+
+
+ Sets controller's climbing mode.
+
+
+ Retrieve behavior flags for a shape. When the CCT touches a shape, the CCT's behavior w.r.t. this shape can be customized by users. This function retrieves the desired PxControllerBehaviorFlag flags capturing the desired behavior. See comments about deprecated functions at the start of this class Desired behavior flags for the given shape
+
+
+ Retrieve behavior flags for a controller. When the CCT touches a controller, the CCT's behavior w.r.t. this controller can be customized by users. This function retrieves the desired PxControllerBehaviorFlag flags capturing the desired behavior. The flag PxControllerBehaviorFlag::eCCT_CAN_RIDE_ON_OBJECT is not supported. See comments about deprecated functions at the start of this class Desired behavior flags for the given controller
+
+
+ Retrieve behavior flags for an obstacle. When the CCT touches an obstacle, the CCT's behavior w.r.t. this obstacle can be customized by users. This function retrieves the desired PxControllerBehaviorFlag flags capturing the desired behavior. See comments about deprecated functions at the start of this class Desired behavior flags for the given obstacle
+
+
+ Releases the controller manager. This will release all associated controllers and obstacle contexts. This function is required to be called to release foundation usage.
+
+
+ Returns the scene the manager is adding the controllers to. The associated physics scene.
+
+
+ Returns the number of controllers that are being managed. The number of controllers.
+
+
+ Retrieve one of the controllers in the manager. The controller with the specified index.
+
+
+ Creates a new character controller. The new controller
+
+
+ Releases all the controllers that are being managed.
+
+
+ Retrieves debug data. The render buffer filled with debug-render data
+
+
+ Sets debug rendering flags
+
+
+ Returns the number of obstacle contexts that are being managed. The number of obstacle contexts.
+
+
+ Retrieve one of the obstacle contexts in the manager. The obstacle context with the specified index.
+
+
+ Creates an obstacle context. New obstacle context
+
+
+ Computes character-character interactions. This function is an optional helper to properly resolve interactions between characters, in case they overlap (which can happen for gameplay reasons, etc). You should call this once per frame, before your PxController::move() calls. The function will not move the characters directly, but it will compute overlap information for each character that will be used in the next move() call. You need to provide a proper time value here so that interactions are resolved in a way that do not depend on the framerate. If you only have one character in the scene, or if you can guarantee your characters will never overlap, then you do not need to call this function. Releasing the manager will automatically release all the associated obstacle contexts.
+
+
+ Enables or disables runtime tessellation. Large triangles can create accuracy issues in the sweep code, which in turn can lead to characters not sliding smoothly against geometries, or even penetrating them. This feature allows one to reduce those issues by tessellating large triangles at runtime, before performing sweeps against them. The amount of tessellation is controlled by the 'maxEdgeLength' parameter. Any triangle with at least one edge length greater than the maxEdgeLength will get recursively tessellated, until resulting triangles are small enough. This features only applies to triangle meshes, convex meshes, heightfields and boxes.
+
+
+ Enables or disables the overlap recovery module. The overlap recovery module can be used to depenetrate CCTs from static objects when an overlap is detected. This can happen in three main cases: - when the CCT is directly spawned or teleported in another object - when the CCT algorithm fails due to limited FPU accuracy - when the \"up vector\" is modified, making the rotated CCT shape overlap surrounding objects When activated, the CCT module will automatically try to resolve the penetration, and move the CCT to a safe place where it does not overlap other objects anymore. This only concerns static objects, dynamic objects are ignored by the recovery module. When the recovery module is not activated, it is possible for the CCTs to go through static objects. By default, the recovery module is enabled. The recovery module currently works with all geometries except heightfields.
+
+
+ Enables or disables the precise sweeps. Precise sweeps are more accurate, but also potentially slower than regular sweeps. By default, precise sweeps are enabled.
+
+
+ Enables or disables vertical sliding against ceilings. Geometry is seen as \"ceilings\" when the following condition is met: dot product(contact normal, up direction) < 0.0f This flag controls whether characters should slide vertically along the geometry in that case. By default, sliding is allowed.
+
+
+ Shift the origin of the character controllers and obstacle objects by the specified vector. The positions of all character controllers, obstacle objects and the corresponding data structures will get adjusted to reflect the shifted origin location (the shift vector will get subtracted from all character controller and obstacle object positions). It is the user's responsibility to keep track of the summed total origin shift and adjust all input/output to/from PhysXCharacterKinematic accordingly. This call will not automatically shift the PhysX scene and its objects. You need to call PxScene::shiftOrigin() seperately to keep the systems in sync.
+
+
+ Creates the controller manager. The character controller is informed by [`PxDeletionListener::onRelease`]() when actors or shapes are released, and updates its internal caches accordingly. If character controller movement or a call to [`PxControllerManager::shiftOrigin`]() may overlap with actor/shape releases, internal data structures must be guarded against concurrent access. Locking guarantees thread safety in such scenarios. locking may result in significant slowdown for release of actors or shapes. By default, locking is disabled.
+
+
+ Constructor
+
+
+ Returns true if the descriptor is valid. true if the current settings are valid
+
+
+ constructor sets to default.
+
+
+ (re)sets the structure to the default.
+
+
+ Returns true if the descriptor is valid. True if the current settings are valid
+
+
+ Constructor sets to default.
+
+
+ (re)sets the structure to the default.
+
+
+ Returns true if the descriptor is valid. true if the current settings are valid
+
+
+ Constructor to build an empty tetmesh description
+
+
+ Constructor to build an empty simulation description
+
+
+ Desc initialization to default value.
+
+
+ Returns true if the descriptor is valid. true if the current settings are valid.
+
+
+ Returns type of midphase mesh structure. PxMeshMidPhase::Enum
+
+
+ Initialize the midphase mesh structure descriptor
+
+
+ Returns true if the descriptor is valid. true if the current settings are valid.
+
+
+ Initialize the BVH descriptor
+
+
+ Returns true if the descriptor is valid. true if the current settings are valid.
+
+
+ Cooks a bounding volume hierarchy. The results are written to the stream. PxCookBVH() allows a BVH description to be cooked into a binary stream suitable for loading and performing BVH detection at runtime. true on success.
+
+
+ Cooks and creates a bounding volume hierarchy without going through a stream. This method does the same as cookBVH, but the produced BVH is not stored into a stream but is either directly inserted in PxPhysics, or created as a standalone object. Use this method if you are unable to cook offline. PxInsertionCallback can be obtained through PxPhysics::getPhysicsInsertionCallback() or PxCooking::getStandaloneInsertionCallback(). PxBVH pointer on success
+
+
+ Cooks a heightfield. The results are written to the stream. To create a heightfield object there is an option to precompute some of calculations done while loading the heightfield data. cookHeightField() allows a heightfield description to be cooked into a binary stream suitable for loading and performing collision detection at runtime. true on success
+
+
+ Cooks and creates a heightfield mesh and inserts it into PxPhysics. PxHeightField pointer on success
+
+
+ Cooks a convex mesh. The results are written to the stream. To create a triangle mesh object it is necessary to first 'cook' the mesh data into a form which allows the SDK to perform efficient collision detection. cookConvexMesh() allows a mesh description to be cooked into a binary stream suitable for loading and performing collision detection at runtime. The number of vertices and the number of convex polygons in a cooked convex mesh is limited to 255. If those limits are exceeded in either the user-provided data or the final cooked mesh, an error is reported. true on success.
+
+
+ Cooks and creates a convex mesh without going through a stream. This method does the same as cookConvexMesh, but the produced mesh is not stored into a stream but is either directly inserted in PxPhysics, or created as a standalone object. Use this method if you are unable to cook offline. PxInsertionCallback can be obtained through PxPhysics::getPhysicsInsertionCallback() or PxCooking::getStandaloneInsertionCallback(). PxConvexMesh pointer on success
+
+
+ Verifies if the convex mesh is valid. Prints an error message for each inconsistency found. The convex mesh descriptor must contain an already created convex mesh - the vertices, indices and polygons must be provided. This function should be used if PxConvexFlag::eDISABLE_MESH_VALIDATION is planned to be used in release builds. true if all the validity conditions hold, false otherwise.
+
+
+ Computed hull polygons from given vertices and triangles. Polygons are needed for PxConvexMeshDesc rather than triangles. Please note that the resulting polygons may have different number of vertices. Some vertices may be removed. The output vertices, indices and polygons must be used to construct a hull. The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those array's. true on success
+
+
+ Verifies if the triangle mesh is valid. Prints an error message for each inconsistency found. The following conditions are true for a valid triangle mesh: 1. There are no duplicate vertices (within specified vertexWeldTolerance. See PxCookingParams::meshWeldTolerance) 2. There are no large triangles (within specified PxTolerancesScale.) true if all the validity conditions hold, false otherwise.
+
+
+ Cooks and creates a triangle mesh without going through a stream. This method does the same as cookTriangleMesh, but the produced mesh is not stored into a stream but is either directly inserted in PxPhysics, or created as a standalone object. Use this method if you are unable to cook offline. PxInsertionCallback can be obtained through PxPhysics::getPhysicsInsertionCallback() or PxCooking::getStandaloneInsertionCallback(). PxTriangleMesh pointer on success.
+
+
+ Cooks a triangle mesh. The results are written to the stream. To create a triangle mesh object it is necessary to first 'cook' the mesh data into a form which allows the SDK to perform efficient collision detection. PxCookTriangleMesh() allows a mesh description to be cooked into a binary stream suitable for loading and performing collision detection at runtime. true on success
+
+
+ Set the actors for this joint. An actor may be NULL to indicate the world frame. At most one of the actors may be NULL.
+
+
+ Get the actors for this joint.
+
+
+ Set the joint local pose for an actor. This is the relative pose which locates the joint frame relative to the actor.
+
+
+ get the joint local pose for an actor. return the local pose for this joint
+
+
+ get the relative pose for this joint This function returns the pose of the joint frame of actor1 relative to actor0
+
+
+ get the relative linear velocity of the joint This function returns the linear velocity of the origin of the constraint frame of actor1, relative to the origin of the constraint frame of actor0. The value is returned in the constraint frame of actor0
+
+
+ get the relative angular velocity of the joint This function returns the angular velocity of actor1 relative to actor0. The value is returned in the constraint frame of actor0
+
+
+ set the break force for this joint. if the constraint force or torque on the joint exceeds the specified values, the joint will break, at which point it will not constrain the two actors and the flag PxConstraintFlag::eBROKEN will be set. The force and torque are measured in the joint frame of the first actor
+
+
+ get the break force for this joint.
+
+
+ set the constraint flags for this joint.
+
+
+ set a constraint flags for this joint to a specified value.
+
+
+ get the constraint flags for this joint. the constraint flags
+
+
+ set the inverse mass scale for actor0.
+
+
+ get the inverse mass scale for actor0. inverse mass scale for actor0
+
+
+ set the inverse inertia scale for actor0.
+
+
+ get the inverse inertia scale for actor0. inverse inertia scale for actor0
+
+
+ set the inverse mass scale for actor1.
+
+
+ get the inverse mass scale for actor1. inverse mass scale for actor1
+
+
+ set the inverse inertia scale for actor1.
+
+
+ get the inverse inertia scale for actor1. inverse inertia scale for actor1
+
+
+ Retrieves the PxConstraint corresponding to this joint. This can be used to determine, among other things, the force applied at the joint. the constraint
+
+
+ Sets a name string for the object that can be retrieved with getName(). This is for debugging and is not used by the SDK. The string is not copied by the SDK, only the pointer is stored.
+
+
+ Retrieves the name string set with setName(). Name string associated with object.
+
+
+ Deletes the joint. This call does not wake up the connected rigid bodies.
+
+
+ Retrieves the scene which this joint belongs to. Owner Scene. NULL if not part of a scene.
+
+
+ Put class meta data in stream, used for serialization
+
+
+ Helper function to setup a joint's global frame This replaces the following functions from previous SDK versions: void NxJointDesc::setGlobalAnchor(const NxVec3 & wsAnchor); void NxJointDesc::setGlobalAxis(const NxVec3 & wsAxis); The function sets the joint's localPose using world-space input parameters.
+
+
+ Create a distance Joint.
+
+
+ Return the current distance of the joint
+
+
+ Set the allowed minimum distance for the joint. The minimum distance must be no more than the maximum distance Default 0.0f Range [0, PX_MAX_F32)
+
+
+ Get the allowed minimum distance for the joint. the allowed minimum distance
+
+
+ Set the allowed maximum distance for the joint. The maximum distance must be no less than the minimum distance. Default 0.0f Range [0, PX_MAX_F32)
+
+
+ Get the allowed maximum distance for the joint. the allowed maximum distance
+
+
+ Set the error tolerance of the joint.
+
+
+ Get the error tolerance of the joint. the distance beyond the joint's [min, max] range before the joint becomes active. Default 0.25f * PxTolerancesScale::length Range (0, PX_MAX_F32) This value should be used to ensure that if the minimum distance is zero and the spring function is in use, the rest length of the spring is non-zero.
+
+
+ Set the strength of the joint spring. The spring is used if enabled, and the distance exceeds the range [min-error, max+error]. Default 0.0f Range [0, PX_MAX_F32)
+
+
+ Get the strength of the joint spring. stiffness the spring strength of the joint
+
+
+ Set the damping of the joint spring. The spring is used if enabled, and the distance exceeds the range [min-error, max+error]. Default 0.0f Range [0, PX_MAX_F32)
+
+
+ Get the damping of the joint spring. the degree of damping of the joint spring of the joint
+
+
+ Set the contact distance for the min & max distance limits. This is similar to the PxJointLimitParameters::contactDistance parameter for regular limits. The two most common values are 0 and infinite. Infinite means the internal constraints are always created, resulting in the best simulation quality but slower performance. Zero means the internal constraints are only created when the limits are violated, resulting in best performance but worse simulation quality. Default 0.0f Range [0, PX_MAX_F32)
+
+
+ Get the contact distance. the contact distance
+
+
+ Set the flags specific to the Distance Joint. Default PxDistanceJointFlag::eMAX_DISTANCE_ENABLED
+
+
+ Set a single flag specific to a Distance Joint to true or false.
+
+
+ Get the flags specific to the Distance Joint. the joint flags
+
+
+ Returns string name of PxDistanceJoint, used for serialization
+
+
+ Create a distance Joint.
+
+
+ Set the current contact of the joint
+
+
+ Set the current contact normal of the joint
+
+
+ Set the current penetration of the joint
+
+
+ Return the current contact of the joint
+
+
+ Return the current contact normal of the joint
+
+
+ Return the current penetration value of the joint
+
+
+ Returns string name of PxContactJoint, used for serialization
+
+
+ Create a fixed joint.
+
+
+ Returns string name of PxFixedJoint, used for serialization
+
+
+ Returns true if the current settings are valid. true if the current settings are valid
+
+
+ construct a linear hard limit
+
+
+ construct a linear soft limit
+
+
+ Returns true if the limit is valid true if the current settings are valid
+
+
+ Construct a linear hard limit pair. The lower distance value must be less than the upper distance value.
+
+
+ construct a linear soft limit pair
+
+
+ Returns true if the limit is valid. true if the current settings are valid
+
+
+ construct an angular hard limit pair. The lower value must be less than the upper value.
+
+
+ construct an angular soft limit pair. The lower value must be less than the upper value.
+
+
+ Returns true if the limit is valid. true if the current settings are valid
+
+
+ Construct a cone hard limit.
+
+
+ Construct a cone soft limit.
+
+
+ Returns true if the limit is valid. true if the current settings are valid
+
+
+ Construct a pyramid hard limit.
+
+
+ Construct a pyramid soft limit.
+
+
+ Returns true if the limit is valid. true if the current settings are valid
+
+
+ Create a prismatic joint.
+
+
+ returns the displacement of the joint along its axis.
+
+
+ returns the velocity of the joint along its axis
+
+
+ sets the joint limit parameters. The limit range is [-PX_MAX_F32, PX_MAX_F32], but note that the width of the limit (upper-lower) must also be a valid float.
+
+
+ gets the joint limit parameters.
+
+
+ Set the flags specific to the Prismatic Joint. Default PxPrismaticJointFlags(0)
+
+
+ Set a single flag specific to a Prismatic Joint to true or false.
+
+
+ Get the flags specific to the Prismatic Joint. the joint flags
+
+
+ Returns string name of PxPrismaticJoint, used for serialization
+
+
+ Create a revolute joint.
+
+
+ return the angle of the joint, in the range (-2*Pi, 2*Pi]
+
+
+ return the velocity of the joint
+
+
+ set the joint limit parameters. The limit is activated using the flag PxRevoluteJointFlag::eLIMIT_ENABLED The limit angle range is (-2*Pi, 2*Pi).
+
+
+ get the joint limit parameters. the joint limit parameters
+
+
+ set the target velocity for the drive model. The motor will only be able to reach this velocity if the maxForce is sufficiently large. If the joint is spinning faster than this velocity, the motor will actually try to brake (see PxRevoluteJointFlag::eDRIVE_FREESPIN.) The sign of this variable determines the rotation direction, with positive values going the same way as positive joint angles. Setting a very large target velocity may cause undesirable results. Range: (-PX_MAX_F32, PX_MAX_F32) Default: 0.0
+
+
+ gets the target velocity for the drive model. the drive target velocity
+
+
+ sets the maximum torque the drive can exert. The value set here may be used either as an impulse limit or a force limit, depending on the flag PxConstraintFlag::eDRIVE_LIMITS_ARE_FORCES Range: [0, PX_MAX_F32) Default: PX_MAX_F32
+
+
+ gets the maximum torque the drive can exert. the torque limit
+
+
+ sets the gear ratio for the drive. When setting up the drive constraint, the velocity of the first actor is scaled by this value, and its response to drive torque is scaled down. So if the drive target velocity is zero, the second actor will be driven to the velocity of the first scaled by the gear ratio Range: [0, PX_MAX_F32) Default: 1.0
+
+
+ gets the gear ratio. the drive gear ratio
+
+
+ sets the flags specific to the Revolute Joint. Default PxRevoluteJointFlags(0)
+
+
+ sets a single flag specific to a Revolute Joint.
+
+
+ gets the flags specific to the Revolute Joint. the joint flags
+
+
+ Returns string name of PxRevoluteJoint, used for serialization
+
+
+ Create a spherical joint.
+
+
+ Set the limit cone. If enabled, the limit cone will constrain the angular movement of the joint to lie within an elliptical cone. the limit cone
+
+
+ Get the limit cone.
+
+
+ get the swing angle of the joint from the Y axis
+
+
+ get the swing angle of the joint from the Z axis
+
+
+ Set the flags specific to the Spherical Joint. Default PxSphericalJointFlags(0)
+
+
+ Set a single flag specific to a Spherical Joint to true or false.
+
+
+ Get the flags specific to the Spherical Joint. the joint flags
+
+
+ Returns string name of PxSphericalJoint, used for serialization
+
+
+ Create a D6 joint.
+
+
+ default constructor for PxD6JointDrive.
+
+
+ constructor a PxD6JointDrive.
+
+
+ returns true if the drive is valid
+
+
+ Set the motion type around the specified axis. Each axis may independently specify that the degree of freedom is locked (blocking relative movement along or around this axis), limited by the corresponding limit, or free. Default: all degrees of freedom are locked
+
+
+ Get the motion type around the specified axis. the motion type around the specified axis
+
+
+ get the twist angle of the joint, in the range (-2*Pi, 2*Pi]
+
+
+ get the swing angle of the joint from the Y axis
+
+
+ get the swing angle of the joint from the Z axis
+
+
+ Set the distance limit for the joint. A single limit constraints all linear limited degrees of freedom, forming a linear, circular or spherical constraint on motion depending on the number of limited degrees. This is similar to a distance limit.
+
+
+ Get the distance limit for the joint. the distance limit structure
+
+
+ Set the linear limit for a given linear axis. This function extends the previous setDistanceLimit call with the following features: - there can be a different limit for each linear axis - each limit is defined by two values, i.e. it can now be asymmetric This can be used to create prismatic joints similar to PxPrismaticJoint, or point-in-quad joints, or point-in-box joints.
+
+
+ Get the linear limit for a given linear axis. the linear limit pair structure from desired axis
+
+
+ Set the twist limit for the joint. The twist limit controls the range of motion around the twist axis. The limit angle range is (-2*Pi, 2*Pi).
+
+
+ Get the twist limit for the joint. the twist limit structure
+
+
+ Set the swing cone limit for the joint. The cone limit is used if either or both swing axes are limited. The extents are symmetrical and measured in the frame of the parent. If only one swing degree of freedom is limited, the corresponding value from the cone limit defines the limit range.
+
+
+ Get the cone limit for the joint. the swing limit structure
+
+
+ Set a pyramidal swing limit for the joint. The pyramid limits will only be used in the following cases: - both swing Y and Z are limited. The limit shape is then a pyramid. - Y is limited and Z is locked, or vice versa. The limit shape is an asymmetric angular section, similar to what is supported for the twist axis. The remaining cases (Y limited and Z is free, or vice versa) are not supported.
+
+
+ Get the pyramidal swing limit for the joint. the swing limit structure
+
+
+ Set the drive parameters for the specified drive type. Default The default drive spring and damping values are zero, the force limit is zero, and no flags are set.
+
+
+ Get the drive parameters for the specified drive type.
+
+
+ Set the drive goal pose The goal is relative to the constraint frame of actor[0] Default the identity transform
+
+
+ Get the drive goal pose.
+
+
+ Set the target goal velocity for drive. The velocity is measured in the constraint frame of actor[0]
+
+
+ Get the target goal velocity for joint drive.
+
+
+ Set the linear tolerance threshold for projection. Projection is enabled if PxConstraintFlag::ePROJECTION is set for the joint. If the joint separates by more than this distance along its locked degrees of freedom, the solver will move the bodies to close the distance. Setting a very small tolerance may result in simulation jitter or other artifacts. Sometimes it is not possible to project (for example when the joints form a cycle). Range: [0, PX_MAX_F32) Default: 1e10f
+
+
+ Get the linear tolerance threshold for projection. the linear tolerance threshold
+
+
+ Set the angular tolerance threshold for projection. Projection is enabled if PxConstraintFlag::ePROJECTION is set for the joint. If the joint deviates by more than this angle around its locked angular degrees of freedom, the solver will move the bodies to close the angle. Setting a very small tolerance may result in simulation jitter or other artifacts. Sometimes it is not possible to project (for example when the joints form a cycle). Range: [0,Pi] Default: Pi Angular projection is implemented only for the case of two or three locked angular degrees of freedom.
+
+
+ Get the angular tolerance threshold for projection. tolerance the angular tolerance threshold in radians
+
+
+ Returns string name of PxD6Joint, used for serialization
+
+
+ Create a gear Joint.
+
+
+ Set the hinge/revolute joints connected by the gear joint. The passed joints can be either PxRevoluteJoint, PxD6Joint or PxArticulationJointReducedCoordinate. The joints must define degrees of freedom around the twist axis. They cannot be null. Note that these joints are only used to compute the positional error correction term, used to adjust potential drift between jointed actors. The gear joint can run without calling this function, but in that case some visible overlap may develop over time between the teeth of the gear meshes. Calling this function resets the internal positional error correction term. true if success
+
+
+ Set the desired gear ratio. For two gears with n0 and n1 teeth respectively, the gear ratio is n0/n1. You may need to use a negative gear ratio if the joint frames of involved actors are not oriented in the same direction. Calling this function resets the internal positional error correction term.
+
+
+ Get the gear ratio. Current ratio
+
+
+ Create a rack & pinion Joint.
+
+
+ Set the hinge & prismatic joints connected by the rack & pinion joint. The passed hinge joint can be either PxRevoluteJoint, PxD6Joint or PxArticulationJointReducedCoordinate. It cannot be null. The passed prismatic joint can be either PxPrismaticJoint or PxD6Joint. It cannot be null. Note that these joints are only used to compute the positional error correction term, used to adjust potential drift between jointed actors. The rack & pinion joint can run without calling this function, but in that case some visible overlap may develop over time between the teeth of the rack & pinion meshes. Calling this function resets the internal positional error correction term. true if success
+
+
+ Set the desired ratio directly. You may need to use a negative gear ratio if the joint frames of involved actors are not oriented in the same direction. Calling this function resets the internal positional error correction term.
+
+
+ Get the ratio. Current ratio
+
+
+ Set the desired ratio indirectly. This is a simple helper function that computes the ratio from passed data: ratio = (PI*2*nbRackTeeth)/(rackLength*nbPinionTeeth) Calling this function resets the internal positional error correction term. true if success
+
+
+ Implementation of a simple filter shader that emulates PhysX 2.8.x filtering This shader provides the following logic: If one of the two filter objects is a trigger, the pair is acccepted and [`PxPairFlag::eTRIGGER_DEFAULT`] will be used for trigger reports Else, if the filter mask logic (see further below) discards the pair it will be suppressed ([`PxFilterFlag::eSUPPRESS`]) Else, the pair gets accepted and collision response gets enabled ([`PxPairFlag::eCONTACT_DEFAULT`]) Filter mask logic: Given the two [`PxFilterData`] structures fd0 and fd1 of two collision objects, the pair passes the filter if the following conditions are met: 1) Collision groups of the pair are enabled 2) Collision filtering equation is satisfied
+
+
+ Determines if collision detection is performed between a pair of groups Collision group is an integer between 0 and 31. True if the groups could collide
+
+
+ Specifies if collision should be performed by a pair of groups Collision group is an integer between 0 and 31.
+
+
+ Retrieves the value set with PxSetGroup() Collision group is an integer between 0 and 31. The collision group this actor belongs to
+
+
+ Sets which collision group this actor is part of Collision group is an integer between 0 and 31.
+
+
+ Retrieves filtering operation. See comments for PxGroupsMask
+
+
+ Setups filtering operations. See comments for PxGroupsMask
+
+
+ Retrieves filtering's boolean value. See comments for PxGroupsMask flag Boolean value for filter.
+
+
+ Setups filtering's boolean value. See comments for PxGroupsMask
+
+
+ Gets filtering constant K0 and K1. See comments for PxGroupsMask
+
+
+ Setups filtering's K0 and K1 value. See comments for PxGroupsMask
+
+
+ Gets 64-bit mask used for collision filtering. See comments for PxGroupsMask The group mask for the actor.
+
+
+ Sets 64-bit mask used for collision filtering. See comments for PxGroupsMask
+
+
+ Creates a new shape with default properties and a list of materials and adds it to the list of shapes of this actor. This is equivalent to the following ```cpp // reference count is 1 PxShape* shape(...) = PxGetPhysics().createShape(...); // increments reference count actor->attachShape(shape); // releases user reference, leaving reference count at 1 shape->release(); ``` As a consequence, detachShape() will result in the release of the last reference, and the shape will be deleted. The default shape flags to be set are: eVISUALIZATION, eSIMULATION_SHAPE, eSCENE_QUERY_SHAPE (see [`PxShapeFlag`]). Triangle mesh, heightfield or plane geometry shapes configured as eSIMULATION_SHAPE are not supported for non-kinematic PxRigidDynamic instances. Creating compounds with a very large number of shapes may adversely affect performance and stability. Sleeping: Does NOT wake the actor up automatically. The newly created shape.
+
+
+ Creates a new shape with default properties and a single material adds it to the list of shapes of this actor. This is equivalent to the following ```cpp // reference count is 1 PxShape* shape(...) = PxGetPhysics().createShape(...); // increments reference count actor->attachShape(shape); // releases user reference, leaving reference count at 1 shape->release(); ``` As a consequence, detachShape() will result in the release of the last reference, and the shape will be deleted. The default shape flags to be set are: eVISUALIZATION, eSIMULATION_SHAPE, eSCENE_QUERY_SHAPE (see [`PxShapeFlag`]). Triangle mesh, heightfield or plane geometry shapes configured as eSIMULATION_SHAPE are not supported for non-kinematic PxRigidDynamic instances. Creating compounds with a very large number of shapes may adversely affect performance and stability. Sleeping: Does NOT wake the actor up automatically. The newly created shape.
+
+
+ Gets a list of bounds based on shapes in rigid actor. This list can be used to cook/create bounding volume hierarchy though PxCooking API.
+
+
+ Convenience function to create a PxBVH object from a PxRigidActor. The computed PxBVH can then be used in PxScene::addActor() or PxAggregate::addActor(). After adding the actor & BVH to the scene/aggregate, release the PxBVH object by calling PxBVH::release(). The PxBVH for this actor.
+
+
+ Default constructor.
+
+
+ Construct from individual elements.
+
+
+ Compute mass properties based on a provided geometry structure. This constructor assumes the geometry has a density of 1. Mass and inertia tensor scale linearly with density.
+
+
+ Translate the center of mass by a given vector and adjust the inertia tensor accordingly.
+
+
+ Get the entries of the diagonalized inertia tensor and the corresponding reference rotation. The entries of the diagonalized inertia tensor.
+
+
+ Translate an inertia tensor using the parallel axis theorem The translated inertia tensor.
+
+
+ Rotate an inertia tensor around the center of mass The rotated inertia tensor.
+
+
+ Non-uniform scaling of the inertia tensor The scaled inertia tensor.
+
+
+ Sum up individual mass properties. The summed up mass properties.
+
+
+ Computation of mass properties for a rigid body actor To simulate a dynamic rigid actor, the SDK needs a mass and an inertia tensor. This method offers functionality to compute the necessary mass and inertia properties based on the shapes declared in the PxRigidBody descriptor and some additionally specified parameters. For each shape, the shape geometry, the shape positioning within the actor and the specified shape density are used to compute the body's mass and inertia properties. Shapes without PxShapeFlag::eSIMULATION_SHAPE set are ignored unless includeNonSimShapes is true. Shapes with plane, triangle mesh or heightfield geometry and PxShapeFlag::eSIMULATION_SHAPE set are not allowed for PxRigidBody collision. This method will set the mass, center of mass, and inertia tensor if no collision shapes are found, the inertia tensor is set to (1,1,1) and the mass to 1 if massLocalPose is non-NULL, the rigid body's center of mass parameter will be set to the user provided value (massLocalPose) and the inertia tensor will be resolved at that point. If all shapes of the actor have the same density then the overloaded method updateMassAndInertia() with a single density parameter can be used instead. Boolean. True on success else false.
+
+
+ Computation of mass properties for a rigid body actor See previous method for details. Boolean. True on success else false.
+
+
+ Computation of mass properties for a rigid body actor This method sets the mass, inertia and center of mass of a rigid body. The mass is set to the sum of all user-supplied shape mass values, and the inertia and center of mass are computed according to the rigid body's shapes and the per shape mass input values. If no collision shapes are found, the inertia tensor is set to (1,1,1) If a single mass value should be used for the actor as a whole then the overloaded method setMassAndUpdateInertia() with a single mass parameter can be used instead. Boolean. True on success else false.
+
+
+ Computation of mass properties for a rigid body actor This method sets the mass, inertia and center of mass of a rigid body. The mass is set to the user-supplied value, and the inertia and center of mass are computed according to the rigid body's shapes and the input mass. If no collision shapes are found, the inertia tensor is set to (1,1,1) Boolean. True on success else false.
+
+
+ Compute the mass, inertia tensor and center of mass from a list of shapes. The mass properties from the combined shapes.
+
+
+ Applies a force (or impulse) defined in the global coordinate frame, acting at a particular point in global coordinates, to the actor. Note that if the force does not act along the center of mass of the actor, this will also add the corresponding torque. Because forces are reset at the end of every timestep, you can maintain a total external force on an object by calling this once every frame. if this call is used to apply a force or impulse to an articulation link, only the link is updated, not the entire articulation ::PxForceMode determines if the force is to be conventional or impulsive. Only eFORCE and eIMPULSE are supported, as the force required to produce a given velocity change or acceleration is underdetermined given only the desired change at a given point. Sleeping: This call wakes the actor if it is sleeping and the wakeup parameter is true (default).
+
+
+ Applies a force (or impulse) defined in the global coordinate frame, acting at a particular point in local coordinates, to the actor. Note that if the force does not act along the center of mass of the actor, this will also add the corresponding torque. Because forces are reset at the end of every timestep, you can maintain a total external force on an object by calling this once every frame. if this call is used to apply a force or impulse to an articulation link, only the link is updated, not the entire articulation ::PxForceMode determines if the force is to be conventional or impulsive. Only eFORCE and eIMPULSE are supported, as the force required to produce a given velocity change or acceleration is underdetermined given only the desired change at a given point. Sleeping: This call wakes the actor if it is sleeping and the wakeup parameter is true (default).
+
+
+ Applies a force (or impulse) defined in the actor local coordinate frame, acting at a particular point in global coordinates, to the actor. Note that if the force does not act along the center of mass of the actor, this will also add the corresponding torque. Because forces are reset at the end of every timestep, you can maintain a total external force on an object by calling this once every frame. if this call is used to apply a force or impulse to an articulation link, only the link is updated, not the entire articulation ::PxForceMode determines if the force is to be conventional or impulsive. Only eFORCE and eIMPULSE are supported, as the force required to produce a given velocity change or acceleration is underdetermined given only the desired change at a given point. Sleeping: This call wakes the actor if it is sleeping and the wakeup parameter is true (default).
+
+
+ Applies a force (or impulse) defined in the actor local coordinate frame, acting at a particular point in local coordinates, to the actor. Note that if the force does not act along the center of mass of the actor, this will also add the corresponding torque. Because forces are reset at the end of every timestep, you can maintain a total external force on an object by calling this once every frame. if this call is used to apply a force or impulse to an articulation link, only the link is updated, not the entire articulation ::PxForceMode determines if the force is to be conventional or impulsive. Only eFORCE and eIMPULSE are supported, as the force required to produce a given velocity change or acceleration is underdetermined given only the desired change at a given point. Sleeping: This call wakes the actor if it is sleeping and the wakeup parameter is true (default).
+
+
+ Computes the velocity of a point given in world coordinates if it were attached to the specified body and moving with it. The velocity of point in the global frame.
+
+
+ Computes the velocity of a point given in local coordinates if it were attached to the specified body and moving with it. The velocity of point in the local frame.
+
+
+ Computes the velocity of a point (offset from the origin of the body) given in world coordinates if it were attached to the specified body and moving with it. The velocity of point (offset from the origin of the body) in the global frame.
+
+
+ Compute the change to linear and angular velocity that would occur if an impulsive force and torque were to be applied to a specified rigid body. The rigid body is left unaffected unless a subsequent independent call is executed that actually applies the computed changes to velocity and angular velocity. if this call is used to determine the velocity delta for an articulation link, only the mass properties of the link are taken into account.
+
+
+ Computes the linear and angular velocity change vectors for a given impulse at a world space position taking a mass and inertia scale into account This function is useful for extracting the respective linear and angular velocity changes from a contact or joint when the mass/inertia ratios have been adjusted. if this call is used to determine the velocity delta for an articulation link, only the mass properties of the link are taken into account.
+
+
+ Computes the linear and angular impulse vectors for a given impulse at a world space position taking a mass and inertia scale into account This function is useful for extracting the respective linear and angular impulses from a contact or joint when the mass/inertia ratios have been adjusted.
+
+
+ Performs a linear sweep through space with the body's geometry objects. Supported geometries are: box, sphere, capsule, convex. Other geometry types will be ignored. If eTOUCH is returned from the filter callback, it will trigger an error and the hit will be discarded. The function sweeps all shapes attached to a given rigid body through space and reports the nearest object in the scene which intersects any of of the shapes swept paths. Information about the closest intersection is written to a [`PxSweepHit`] structure. True if a blocking hit was found.
+
+
+ Performs a linear sweep through space with the body's geometry objects, returning all overlaps. Supported geometries are: box, sphere, capsule, convex. Other geometry types will be ignored. This function sweeps all shapes attached to a given rigid body through space and reports all objects in the scene that intersect any of the shapes' swept paths until there are no more objects to report or a blocking hit is encountered. the number of touching hits. If overflow is set to true, the results are incomplete. In case of overflow there are also no guarantees that all touching hits returned are closer than the blocking hit.
+
+
+ Retrieves the world space pose of the shape. Global pose of shape.
+
+
+ Raycast test against the shape. Number of hits between the ray and the shape
+
+
+ Test overlap between the shape and a geometry object True if the shape overlaps the geometry object
+
+
+ Sweep a geometry object against the shape. Currently only box, sphere, capsule and convex mesh shapes are supported, i.e. the swept geometry object must be one of those types. True if the swept geometry object hits the shape
+
+
+ Retrieves the axis aligned bounding box enclosing the shape. The shape's bounding box.
+
+
+ Find the mesh triangles which touch the specified geometry object. Number of overlaps found. Triangle indices can then be accessed through the [`getResults`]() function.
+
+
+ Find the height field triangles which touch the specified geometry object. Number of overlaps found. Triangle indices can then be accessed through the [`getResults`]() function.
+
+
+ Retrieves array of triangle indices after a findOverlap call. Indices of touched triangles
+
+
+ Retrieves number of triangle indices after a findOverlap call. Number of touched triangles
+
+
+ Computes an approximate minimum translational distance (MTD) between a geometry object and a mesh. This iterative function computes an approximate vector that can be used to depenetrate a geom object from a triangle mesh. Returned depenetration vector should be applied to 'geom', to get out of the mesh. The function works best when the amount of overlap between the geom object and the mesh is small. If the geom object's center goes inside the mesh, backface culling usually kicks in, no overlap is detected, and the function does not compute an MTD vector. The function early exits if no overlap is detected after a depenetration attempt. This means that if maxIter = N, the code will attempt at most N iterations but it might exit earlier if depenetration has been successful. Usually N = 4 gives good results. True if the MTD has successfully been computed, i.e. if objects do overlap.
+
+
+ Computes an approximate minimum translational distance (MTD) between a geometry object and a heightfield. This iterative function computes an approximate vector that can be used to depenetrate a geom object from a heightfield. Returned depenetration vector should be applied to 'geom', to get out of the heightfield. The function works best when the amount of overlap between the geom object and the mesh is small. If the geom object's center goes inside the heightfield, backface culling usually kicks in, no overlap is detected, and the function does not compute an MTD vector. The function early exits if no overlap is detected after a depenetration attempt. This means that if maxIter = N, the code will attempt at most N iterations but it might exit earlier if depenetration has been successful. Usually N = 4 gives good results. True if the MTD has successfully been computed, i.e. if objects do overlap.
+
+
+ Returns whether the collection is serializable with the externalReferences collection. Some definitions to explain whether a collection can be serialized or not: For definitions of requires and complete see [`PxSerialization::complete`] A serializable object is subordinate if it cannot be serialized on its own The following objects are subordinate: - articulation links - articulation joints - joints A collection C can be serialized with external references collection D iff - C is complete relative to D (no dangling references) - Every object in D required by an object in C has a valid ID (no unnamed references) - Every subordinate object in C is required by another object in C (no orphans) Whether the collection is serializable
+
+
+ Adds to a collection all objects such that it can be successfully serialized. A collection C is complete relative to an other collection D if every object required by C is either in C or D. This function adds objects to a collection, such that it becomes complete with respect to the exceptFor collection. Completeness is needed for serialization. See [`PxSerialization::serializeCollectionToBinary`], [`PxSerialization::serializeCollectionToXml`]. Sdk objects require other sdk object according to the following rules: - joints require their actors and constraint - rigid actors require their shapes - shapes require their material(s) and mesh (triangle mesh, convex mesh or height field), if any - articulations require their links and joints - aggregates require their actors If followJoints is specified another rule is added: - actors require their joints Specifying followJoints will make whole jointed actor chains being added to the collection. Following chains is interrupted whenever a object in exceptFor is encountered.
+
+
+ Creates PxSerialObjectId values for unnamed objects in a collection. Creates PxSerialObjectId names for unnamed objects in a collection starting at a base value and incrementing, skipping values that are already assigned to objects in the collection.
+
+
+ Creates a PxCollection from XML data. a pointer to a PxCollection if successful or NULL if it failed.
+
+
+ Deserializes a PxCollection from memory. Creates a collection from memory. If the collection has external dependencies another collection can be provided to resolve these. The memory block provided has to be 128 bytes aligned and contain a contiguous serialized collection as written by PxSerialization::serializeCollectionToBinary. The contained binary data needs to be compatible with the current binary format version which is defined by \"PX_PHYSICS_VERSION_MAJOR.PX_PHYSICS_VERSION_MINOR.PX_PHYSICS_VERSION_BUGFIX-PX_BINARY_SERIAL_VERSION\". For a list of compatible sdk releases refer to the documentation of PX_BINARY_SERIAL_VERSION.
+
+
+ Serializes a physics collection to an XML output stream. The collection to be serialized needs to be complete Serialization of objects in a scene that is simultaneously being simulated is not supported and leads to undefined behavior. true if the collection is successfully serialized.
+
+
+ Serializes a collection to a binary stream. Serializes a collection to a stream. In order to resolve external dependencies the externalReferences collection has to be provided. Optionally names of objects that where set for example with [`PxActor::setName`] are serialized along with the objects. The collection can be successfully serialized if isSerializable(collection) returns true. See [`isSerializable`]. The implementation of the output stream needs to fulfill the requirements on the memory block input taken by PxSerialization::createCollectionFromBinary. Serialization of objects in a scene that is simultaneously being simulated is not supported and leads to undefined behavior. Whether serialization was successful
+
+
+ Creates an application managed registry for serialization. PxSerializationRegistry instance.
+
+
+ Deletes the dispatcher. Do not keep a reference to the deleted instance.
+
+
+ Enables profiling at task level. By default enabled only in profiling builds.
+
+
+ Checks if profiling is enabled at task level. True if tasks should be profiled.
+
+
+ Create default dispatcher, extensions SDK needs to be initialized first. numThreads may be zero in which case no worker thread are initialized and simulation tasks will be executed on the thread that calls PxScene::simulate() yieldProcessorCount must be greater than zero if eYIELD_PROCESSOR is the chosen mode and equal to zero for all other modes. eYIELD_THREAD and eYIELD_PROCESSOR modes will use compute resources even if the simulation is not running. It is left to users to keep threads inactive, if so desired, when no simulation is running.
+
+
+ Builds smooth vertex normals over a mesh. - \"smooth\" because smoothing groups are not supported here - takes angles into account for correct cube normals computation To use 32bit indices pass a pointer in dFaces and set wFaces to zero. Alternatively pass a pointer to wFaces and set dFaces to zero. True on success.
+
+
+ simple method to create a PxRigidDynamic actor with a single PxShape. a new dynamic actor with the PxRigidBodyFlag, or NULL if it could not be constructed
+
+
+ simple method to create a PxRigidDynamic actor with a single PxShape. a new dynamic actor with the PxRigidBodyFlag, or NULL if it could not be constructed
+
+
+ simple method to create a kinematic PxRigidDynamic actor with a single PxShape. unlike PxCreateDynamic, the geometry is not restricted to box, capsule, sphere or convex. However, kinematics of other geometry types may not participate in simulation collision and may be used only for triggers or scene queries of moving objects under animation control. In this case the density parameter will be ignored and the created shape will be set up as a scene query only shape (see [`PxShapeFlag::eSCENE_QUERY_SHAPE`]) a new dynamic actor with the PxRigidBodyFlag::eKINEMATIC set, or NULL if it could not be constructed
+
+
+ simple method to create a kinematic PxRigidDynamic actor with a single PxShape. unlike PxCreateDynamic, the geometry is not restricted to box, capsule, sphere or convex. However, kinematics of other geometry types may not participate in simulation collision and may be used only for triggers or scene queries of moving objects under animation control. In this case the density parameter will be ignored and the created shape will be set up as a scene query only shape (see [`PxShapeFlag::eSCENE_QUERY_SHAPE`]) a new dynamic actor with the PxRigidBodyFlag::eKINEMATIC set, or NULL if it could not be constructed
+
+
+ simple method to create a PxRigidStatic actor with a single PxShape. a new static actor, or NULL if it could not be constructed
+
+
+ simple method to create a PxRigidStatic actor with a single PxShape. a new static actor, or NULL if it could not be constructed
+
+
+ create a shape by copying attributes from another shape The function clones a PxShape. The following properties are copied: - geometry - flags - materials - actor-local pose - contact offset - rest offset - simulation filter data - query filter data - torsional patch radius - minimum torsional patch radius The following are not copied and retain their default values: - name - user data the newly-created rigid static
+
+
+ create a static body by copying attributes from another rigid actor The function clones a PxRigidDynamic or PxRigidStatic as a PxRigidStatic. A uniform scale is applied. The following properties are copied: - shapes - actor flags - owner client and client behavior bits - dominance group The following are not copied and retain their default values: - name - joints or observers - aggregate or scene membership - user data Transforms are not copied with bit-exact accuracy. the newly-created rigid static
+
+
+ create a dynamic body by copying attributes from an existing body The following properties are copied: - shapes - actor flags, rigidDynamic flags and rigidDynamic lock flags - mass, moment of inertia, and center of mass frame - linear and angular velocity - linear and angular damping - maximum linear velocity - maximum angular velocity - position and velocity solver iterations - maximum depenetration velocity - sleep threshold - contact report threshold - dominance group - owner client and client behavior bits - name pointer - kinematic target The following are not copied and retain their default values: - name - joints or observers - aggregate or scene membership - sleep timer - user data Transforms are not copied with bit-exact accuracy. the newly-created rigid static
+
+
+ create a plane actor. The plane equation is n.x + d = 0 a new static actor, or NULL if it could not be constructed
+
+
+ scale a rigid actor by a uniform scale The geometry and relative positions of the actor are multiplied by the given scale value. If the actor is a rigid body or an articulation link and the scaleMassProps value is true, the mass properties are scaled assuming the density is constant: the center of mass is linearly scaled, the mass is multiplied by the cube of the scale, and the inertia tensor by the fifth power of the scale.
+
+
+ Creates regions for PxSceneDesc, from a global box. This helper simply subdivides the given global box into a 2D grid of smaller boxes. Each one of those smaller boxes is a region of interest for the broadphase. There are nbSubdiv*nbSubdiv regions in the 2D grid. The function does not subdivide along the given up axis. This is the simplest setup one can use with PxBroadPhaseType::eMBP. A more sophisticated setup would try to cover the game world with a non-uniform set of regions (i.e. not just a grid). number of regions written out to the 'regions' array
+
+
+ Raycast returning any blocking hit, not necessarily the closest. Returns whether any rigid actor is hit along the ray. Shooting a ray from within an object leads to different results depending on the shape type. Please check the details in article SceneQuery. User can ignore such objects by using one of the provided filter mechanisms. True if a blocking hit was found.
+
+
+ Raycast returning a single result. Returns the first rigid actor that is hit along the ray. Data for a blocking hit will be returned as specified by the outputFlags field. Touching hits will be ignored. Shooting a ray from within an object leads to different results depending on the shape type. Please check the details in article SceneQuery. User can ignore such objects by using one of the provided filter mechanisms. True if a blocking hit was found.
+
+
+ Raycast returning multiple results. Find all rigid actors that get hit along the ray. Each result contains data as specified by the outputFlags field. Touching hits are not ordered. Shooting a ray from within an object leads to different results depending on the shape type. Please check the details in article SceneQuery. User can ignore such objects by using one of the provided filter mechanisms. Number of hits in the buffer, or -1 if the buffer overflowed.
+
+
+ Sweep returning any blocking hit, not necessarily the closest. Returns whether any rigid actor is hit along the sweep path. If a shape from the scene is already overlapping with the query shape in its starting position, behavior is controlled by the PxSceneQueryFlag::eINITIAL_OVERLAP flag. True if a blocking hit was found.
+
+
+ Sweep returning a single result. Returns the first rigid actor that is hit along the ray. Data for a blocking hit will be returned as specified by the outputFlags field. Touching hits will be ignored. If a shape from the scene is already overlapping with the query shape in its starting position, behavior is controlled by the PxSceneQueryFlag::eINITIAL_OVERLAP flag. True if a blocking hit was found.
+
+
+ Sweep returning multiple results. Find all rigid actors that get hit along the sweep. Each result contains data as specified by the outputFlags field. Touching hits are not ordered. If a shape from the scene is already overlapping with the query shape in its starting position, behavior is controlled by the PxSceneQueryFlag::eINITIAL_OVERLAP flag. Number of hits in the buffer, or -1 if the buffer overflowed.
+
+
+ Test overlap between a geometry and objects in the scene. Filtering: Overlap tests do not distinguish between touching and blocking hit types. Both get written to the hit buffer. PxHitFlag::eMESH_MULTIPLE and PxHitFlag::eMESH_BOTH_SIDES have no effect in this case Number of hits in the buffer, or -1 if the buffer overflowed.
+
+
+ Test returning, for a given geometry, any overlapping object in the scene. Filtering: Overlap tests do not distinguish between touching and blocking hit types. Both trigger a hit. PxHitFlag::eMESH_MULTIPLE and PxHitFlag::eMESH_BOTH_SIDES have no effect in this case True if an overlap was found.
+
+
+ Performs a raycast against objects in the scene. Touching hits are not ordered. Shooting a ray from within an object leads to different results depending on the shape type. Please check the details in article SceneQuery. User can ignore such objects by using one of the provided filter mechanisms. This query call writes to a list associated with the query object and is NOT thread safe (for performance reasons there is no lock and overlapping writes from different threads may result in undefined behavior). Returns a PxRaycastBuffer pointer that will store the result of the query after execute() is completed. This will point either to an element of the buffer allocated on construction or to a user buffer passed to the constructor.
+
+
+ Performs a sweep test against objects in the scene. Touching hits are not ordered. If a shape from the scene is already overlapping with the query shape in its starting position, the hit is returned unless eASSUME_NO_INITIAL_OVERLAP was specified. This query call writes to a list associated with the query object and is NOT thread safe (for performance reasons there is no lock and overlapping writes from different threads may result in undefined behavior). Returns a PxSweepBuffer pointer that will store the result of the query after execute() is completed. This will point either to an element of the buffer allocated on construction or to a user buffer passed to the constructor.
+
+
+ Performs an overlap test of a given geometry against objects in the scene. Filtering: returning eBLOCK from user filter for overlap queries will cause a warning (see [`PxQueryHitType`]). eBLOCK should not be returned from user filters for overlap(). Doing so will result in undefined behavior, and a warning will be issued. If the PxQueryFlag::eNO_BLOCK flag is set, the eBLOCK will instead be automatically converted to an eTOUCH and the warning suppressed. This query call writes to a list associated with the query object and is NOT thread safe (for performance reasons there is no lock and overlapping writes from different threads may result in undefined behavior). Returns a PxOverlapBuffer pointer that will store the result of the query after execute() is completed. This will point either to an element of the buffer allocated on construction or to a user buffer passed to the constructor.
+
+
+ Create a PxBatchQueryExt without the need for pre-allocated result or touch buffers. Returns a PxBatchQueryExt instance. A NULL pointer will be returned if the subsequent allocations fail or if any of the arguments are illegal. In the event that a NULL pointer is returned a corresponding error will be issued to the error stream.
+
+
+ Create a PxBatchQueryExt with user-supplied result and touch buffers. Returns a PxBatchQueryExt instance. A NULL pointer will be returned if the subsequent allocations fail or if any of the arguments are illegal. In the event that a NULL pointer is returned a corresponding error will be issued to the error stream.
+
+
+ Creates an external scene query system. An external SQ system is the part of a PxScene that deals with scene queries (SQ). This is usually taken care of by an internal implementation inside PxScene, but it is also possible to re-route all SQ calls to an external implementation, potentially opening the door to some customizations in behavior and features for advanced users. The following external SQ system is an example of how an implementation would look like. It re-uses much of the same code as the internal version, but it could be re-implemented in a completely different way to match users' specific needs. An external SQ system instance
+
+
+ Adds a pruner to the system. The internal PhysX scene-query system uses two regular pruners (one for static shapes, one for dynamic shapes) and an optional compound pruner. Our custom scene query system supports an arbitrary number of regular pruners. This can be useful to reduce the load on each pruner, in particular during updates, when internal trees are rebuilt in the background. On the other hand this implementation simply iterates over all created pruners to perform queries, so their cost might increase if a large number of pruners is used. In any case this serves as an example of how the PxSceneQuerySystem API can be used to customize scene queries. A pruner index
+
+
+ Start custom build-steps for all pruners This function is used in combination with customBuildstep() and finishCustomBuildstep() to let users take control of the pruners' build-step & commit calls - basically the pruners' update functions. These functions should be used with the PxSceneQueryUpdateMode::eBUILD_DISABLED_COMMIT_DISABLED update mode, otherwise the build-steps will happen automatically in fetchResults. For N pruners it can be more efficient to use these custom build-step functions to perform the updates in parallel: - call startCustomBuildstep() first (one synchronous call) - for each pruner, call customBuildstep() (asynchronous calls from multiple threads) - once it is done, call finishCustomBuildstep() to finish the update (synchronous call) The multi-threaded update is more efficient here than what it is in PxScene, because the \"flushShapes()\" call is also multi-threaded (while it is not in PxScene). Note that users are responsible for locks here, and these calls should not overlap with other SQ calls. In particular one should not add new objects to the SQ system or perform queries while these calls are happening. The number of pruners in the system.
+
+
+ Perform a custom build-step for a given pruner.
+
+
+ Finish custom build-steps Call this function once after all the customBuildstep() calls are done.
+
+
+ Gets a pruner index for an actor/shape. This user-defined function tells the system in which pruner a given actor/shape should go. The returned index must be valid, i.e. it must have been previously returned to users by PxCustomSceneQuerySystem::addPruner. A pruner index for this actor/shape.
+
+
+ Pruner filtering callback. This will be called for each query to validate whether it should process a given pruner. True to process the pruner, false to skip it entirely
+
+
+ Creates a custom scene query system. This is similar to PxCreateExternalSceneQuerySystem, except this function creates a PxCustomSceneQuerySystem object. It can be plugged to PxScene the same way, via PxSceneDesc::sceneQuerySystem. A custom SQ system instance
+
+
+ Computes closest polygon of the convex hull geometry for a given impact point and impact direction. When doing sweeps against a scene, one might want to delay the rather expensive computation of the hit face index for convexes until it is clear the information is really needed and then use this method to get the corresponding face index. Closest face index of the convex geometry.
+
+
+ Sets the sampling radius Returns true if the sampling was successful and false if there was a problem. Usually an internal overflow is the problem for very big meshes or very small sampling radii.
+
+
+ Adds new Poisson Samples inside the sphere specified
+
+
+ Adds new Poisson Samples inside the box specified
+
+
+ Creates a shape sampler Returns the sampler
+
+
+ Checks whether a point is inside the triangle mesh Returns true if the point is inside the triangle mesh
+
+
+ Creates a triangle mesh sampler Returns the sampler
+
+
+ Returns the index of the tetrahedron that contains a point The index of the tetrahedon containing the point, -1 if not tetrahedron contains the opoint
+
+
+ Returns the index of the tetrahedron closest to a point The index of the tetrahedon closest to the point
+
+
+ Initialize the PhysXExtensions library. This should be called before calling any functions or methods in extensions which may require allocation. This function does not need to be called before creating a PxDefaultAllocator object.
+
+
+ Shut down the PhysXExtensions library. This function should be called to cleanly shut down the PhysXExtensions library before application exit. This function is required to be called to release foundation usage.
+
+
+ The type this Serializer is meant to operate on.
+
+
+ Convert from a RepX object to a key-value pair hierarchy
+
+
+ Convert from a descriptor to a live object. Must be an object of this Serializer type. The new live object. It can be an invalid object if the instantiation cannot take place.
+
+
+ Connects the SDK to the PhysX Visual Debugger application.
+
+
+ Disconnects the SDK from the PhysX Visual Debugger application. If we are still connected, this will kill the entire debugger connection.
+
+
+ Return if connection to PVD is created.
+
+
+ returns the PVD data transport returns NULL if no transport is present.
+
+
+ Retrieves the PVD flags. See PxPvdInstrumentationFlags.
+
+
+ Releases the pvd instance.
+
+
+ Create a pvd instance.
+
+
+ Connects to the Visual Debugger application. return True if success
+
+
+ Disconnects from the Visual Debugger application. If we are still connected, this will kill the entire debugger connection.
+
+
+ Return if connection to PVD is created.
+
+
+ write bytes to the other endpoint of the connection. should lock before witre. If an error occurs this connection will assume to be dead.
+
+
+ send any data and block until we know it is at least on the wire.
+
+
+ Return size of written data.
+
+
+ Create a default socket transport.
+
+
+ Create a default file transport.
+
+
+ Destroys the instance it is called on. The operation will fail, if there are still modules referencing the foundation object. Release all dependent modules prior to calling this method.
+
+
+ retrieves error callback
+
+
+ Sets mask of errors to report.
+
+
+ Retrieves mask of errors to be reported.
+
+
+ Retrieves the allocator this object was created with.
+
+
+ Retrieves if allocation names are being passed to allocator callback.
+
+
+ Set if allocation names are being passed to allocator callback. Enabled by default in debug and checked build, disabled by default in profile and release build.
+
+
+ Create a pvd instance.
+
+
+ Destroy the returned callback object using PxQueryFilterCallback_delete.
+
+
+ Deletes the rigid actor object. Also releases any shapes associated with the actor. Releasing an actor will affect any objects that are connected to the actor (constraint shaders like joints etc.). Such connected objects will be deleted upon scene deletion, or explicitly by the user by calling release() on these objects. It is recommended to always remove all objects that reference actors before the actors themselves are removed. It is not possible to retrieve list of dead connected objects. Sleeping: This call will awaken any sleeping actors contacting the deleted actor (directly or indirectly). Calls [`PxActor::release`]() so you might want to check the documentation of that method as well.
+
+
+ Returns the internal actor index. This is only defined for actors that have been added to a scene. The internal actor index, or 0xffffffff if the actor is not part of a scene.
+
+
+ Retrieves the actors world space transform. The getGlobalPose() method retrieves the actor's current actor space to world space transformation. It is not allowed to use this method while the simulation is running (except during PxScene::collide(), in PxContactModifyCallback or in contact report callbacks). Global pose of object.
+
+
+ Method for setting an actor's pose in the world. This method instantaneously changes the actor space to world space transformation. This method is mainly for dynamic rigid bodies (see [`PxRigidDynamic`]). Calling this method on static actors is likely to result in a performance penalty, since internal optimization structures for static actors may need to be recomputed. In addition, moving static actors will not interact correctly with dynamic actors or joints. To directly control an actor's position and have it correctly interact with dynamic bodies and joints, create a dynamic body with the PxRigidBodyFlag::eKINEMATIC flag, then use the setKinematicTarget() commands to define its path. Even when moving dynamic actors, exercise restraint in making use of this method. Where possible, avoid: moving actors into other actors, thus causing overlap (an invalid physical state) moving an actor that is connected by a joint to another away from the other (thus causing joint error) Sleeping: This call wakes dynamic actors if they are sleeping and the autowake parameter is true (default).
+
+
+ Attach a shape to an actor This call will increment the reference count of the shape. Mass properties of dynamic rigid actors will not automatically be recomputed to reflect the new mass distribution implied by the shape. Follow this call with a call to the PhysX extensions method [`PxRigidBodyExt::updateMassAndInertia`]() to do that. Attaching a triangle mesh, heightfield or plane geometry shape configured as eSIMULATION_SHAPE is not supported for non-kinematic PxRigidDynamic instances. Sleeping: Does NOT wake the actor up automatically. True if success.
+
+
+ Detach a shape from an actor. This will also decrement the reference count of the PxShape, and if the reference count is zero, will cause it to be deleted. Sleeping: Does NOT wake the actor up automatically.
+
+
+ Returns the number of shapes assigned to the actor. You can use [`getShapes`]() to retrieve the shape pointers. Number of shapes associated with this actor.
+
+
+ Retrieve all the shape pointers belonging to the actor. These are the shapes used by the actor for collision detection. You can retrieve the number of shape pointers by calling [`getNbShapes`]() Note: Removing shapes with [`PxShape::release`]() will invalidate the pointer of the released shape. Number of shape pointers written to the buffer.
+
+
+ Returns the number of constraint shaders attached to the actor. You can use [`getConstraints`]() to retrieve the constraint shader pointers. Number of constraint shaders attached to this actor.
+
+
+ Retrieve all the constraint shader pointers belonging to the actor. You can retrieve the number of constraint shader pointers by calling [`getNbConstraints`]() Note: Removing constraint shaders with [`PxConstraint::release`]() will invalidate the pointer of the released constraint. Number of constraint shader pointers written to the buffer.
+
+
+ Creates a new shape with default properties and a list of materials and adds it to the list of shapes of this actor. This is equivalent to the following ```cpp // reference count is 1 PxShape* shape(...) = PxGetPhysics().createShape(...); // increments reference count actor->attachShape(shape); // releases user reference, leaving reference count at 1 shape->release(); ``` As a consequence, detachShape() will result in the release of the last reference, and the shape will be deleted. The default shape flags to be set are: eVISUALIZATION, eSIMULATION_SHAPE, eSCENE_QUERY_SHAPE (see [`PxShapeFlag`]). Triangle mesh, heightfield or plane geometry shapes configured as eSIMULATION_SHAPE are not supported for non-kinematic PxRigidDynamic instances. Creating compounds with a very large number of shapes may adversely affect performance and stability. Sleeping: Does NOT wake the actor up automatically. The newly created shape.
+
+
+ Creates a new shape with default properties and a single material adds it to the list of shapes of this actor. This is equivalent to the following ```cpp // reference count is 1 PxShape* shape(...) = PxGetPhysics().createShape(...); // increments reference count actor->attachShape(shape); // releases user reference, leaving reference count at 1 shape->release(); ``` As a consequence, detachShape() will result in the release of the last reference, and the shape will be deleted. The default shape flags to be set are: eVISUALIZATION, eSIMULATION_SHAPE, eSCENE_QUERY_SHAPE (see [`PxShapeFlag`]). Triangle mesh, heightfield or plane geometry shapes configured as eSIMULATION_SHAPE are not supported for non-kinematic PxRigidDynamic instances. Creating compounds with a very large number of shapes may adversely affect performance and stability. Sleeping: Does NOT wake the actor up automatically. The newly created shape.
+
+
+ Gets a list of bounds based on shapes in rigid actor. This list can be used to cook/create bounding volume hierarchy though PxCooking API.
+
+
+ scale a rigid actor by a uniform scale The geometry and relative positions of the actor are multiplied by the given scale value. If the actor is a rigid body or an articulation link and the scaleMassProps value is true, the mass properties are scaled assuming the density is constant: the center of mass is linearly scaled, the mass is multiplied by the cube of the scale, and the inertia tensor by the fifth power of the scale.
+
+
+ Allocates size bytes of memory, which must be 16-byte aligned. This method should never return NULL. If you run out of memory, then you should terminate the app or take some other appropriate action. Threading: This function should be thread safe as it can be called in the context of the user thread and physics processing thread(s). The allocated block of memory.
+
+
+ Frees memory previously allocated by allocate(). Threading: This function should be thread safe as it can be called in the context of the user thread and physics processing thread(s).
+
+
+ The default constructor.
+
+
+ New interface to handle simulation events, replacing create_contact_callback.
+
+
+ This is called when a breakable constraint breaks. The user should not release the constraint shader inside this call! No event will get reported if the constraint breaks but gets deleted while the time step is still being simulated.
+
+
+ This is called with the actors which have just been woken up. Only supported by rigid bodies yet. Only called on actors for which the PxActorFlag eSEND_SLEEP_NOTIFIES has been set. Only the latest sleep state transition happening between fetchResults() of the previous frame and fetchResults() of the current frame will get reported. For example, let us assume actor A is awake, then A->putToSleep() gets called, then later A->wakeUp() gets called. At the next simulate/fetchResults() step only an onWake() event will get triggered because that was the last transition. If an actor gets newly added to a scene with properties such that it is awake and the sleep state does not get changed by the user or simulation, then an onWake() event will get sent at the next simulate/fetchResults() step.
+
+
+ This is called with the actors which have just been put to sleep. Only supported by rigid bodies yet. Only called on actors for which the PxActorFlag eSEND_SLEEP_NOTIFIES has been set. Only the latest sleep state transition happening between fetchResults() of the previous frame and fetchResults() of the current frame will get reported. For example, let us assume actor A is asleep, then A->wakeUp() gets called, then later A->putToSleep() gets called. At the next simulate/fetchResults() step only an onSleep() event will get triggered because that was the last transition (assuming the simulation does not wake the actor up). If an actor gets newly added to a scene with properties such that it is asleep and the sleep state does not get changed by the user or simulation, then an onSleep() event will get sent at the next simulate/fetchResults() step.
+
+
+ This is called when certain contact events occur. The method will be called for a pair of actors if one of the colliding shape pairs requested contact notification. You request which events are reported using the filter shader/callback mechanism (see [`PxSimulationFilterShader`], [`PxSimulationFilterCallback`], #PxPairFlag). Do not keep references to the passed objects, as they will be invalid after this function returns.
+
+
+ This is called with the current trigger pair events. Shapes which have been marked as triggers using PxShapeFlag::eTRIGGER_SHAPE will send events according to the pair flag specification in the filter shader (see [`PxPairFlag`], #PxSimulationFilterShader). Trigger shapes will no longer send notification events for interactions with other trigger shapes.
+
+
+ Provides early access to the new pose of moving rigid bodies. When this call occurs, rigid bodies having the [`PxRigidBodyFlag::eENABLE_POSE_INTEGRATION_PREVIEW`] flag set, were moved by the simulation and their new poses can be accessed through the provided buffers. The provided buffers are valid and can be read until the next call to [`PxScene::simulate`]() or #PxScene::collide(). This callback gets triggered while the simulation is running. If the provided rigid body references are used to read properties of the object, then the callback has to guarantee no other thread is writing to the same body at the same time. The code in this callback should be lightweight as it can block the simulation, that is, the [`PxScene::fetchResults`]() call.
+
+
+ Override the default filter shader in the scene with a custom function. If call_default_filter_shader_first is set to true, this will first call the built-in PhysX filter (that matches Physx 2.8 behavior) before your callback.
+
+
+ (re)sets the structure to the default.
+
+
+ Returns true if the descriptor is valid. true if the current settings are valid.
+
+
+ (hidden) Should only be used in testing etc! This isn't generated as we don't generate op functions.
+
+
+ Set the callback that will be used for all profiling.
+
+
+ Mark the beginning of a nested profile block Returns implementation-specific profiler data for this event
+
+
+ Mark the end of a nested profile block eventName plus contextId can be used to uniquely match up start and end of a zone.
+
+
+ tests for exact zero vector
+
+
+ returns true if all 3 elems of the vector are finite (not NAN or INF, etc.)
+
+
+ is normalized - used by API parameter validation
+
+
+ returns the squared magnitude Avoids calling PxSqrt()!
+
+
+ returns the magnitude
+
+
+ returns the scalar product of this and other.
+
+
+ cross product
+
+
+ returns a unit vector
+
+
+ normalizes the vector in place
+
+
+ normalizes the vector in place. Does nothing if vector magnitude is under PX_NORMALIZATION_EPSILON. Returns vector magnitude if >= PX_NORMALIZATION_EPSILON and 0.0f otherwise.
+
+
+ normalizes the vector in place. Asserts if vector magnitude is under PX_NORMALIZATION_EPSILON. returns vector magnitude.
+
+
+ a[i] * b[i], for all i.
+
+
+ element-wise minimum
+
+
+ returns MIN(x, y, z);
+
+
+ element-wise maximum
+
+
+ returns MAX(x, y, z);
+
+
+ returns absolute values of components;
+
+
+ Construct from three base vectors
+
+
+ Construct from diagonal, off-diagonals are zero.
+
+
+ Computes the outer product of two vectors
+
+
+ Construct from two bounding points
+
+
+ returns the AABB containing v0 and v1.
+
+
+ returns the AABB from center and extents vectors.
+
+
+ Construct from center, extent, and (not necessarily orthogonal) basis
+
+
+ Initializes from 3 scalar parameters.
+
+
+ Construct from three base vectors and a translation
+
+
+ Constructor from a normal and a distance
+
+
+ Constructor from a point on the plane and a normal
+
+
+ Constructor from three points
+
+
+ finds the shortest rotation between two vectors. a rotation about an axis normal to the two vectors which takes one to the other via the shortest path
+
+
+ creates a transform from the endpoints of a segment, suitable for an actor transform for a PxCapsuleGeometry A PxTransform which will transform the vector (1,0,0) to the capsule axis shrunk by the halfHeight
+
+
+ Compute the exponent of a PxVec3
+
+
+ return Returns 0 if v.x is largest element of v, 1 if v.y is largest element, 2 if v.z is largest element.
+
+
+ Compute the closest point on an 2d ellipse to a given 2d point. Returns the 2d position on the surface of the ellipse that is closest to point.
+
+
+ Compute the angle between two non-unit vectors Returns the angle (in radians) between the two vector v0 and v1.
+
+
+ Compute two normalized vectors (right and up) that are perpendicular to an input normalized vector (dir).
+
+
+ Compute three normalized vectors (dir, right and up) that are parallel to (dir) and perpendicular to (right, up) the normalized direction vector (p1 - p0)/||p1 - p0||.
+
+
+ Constructor to initialize to arbitrary scale and identity scale rotation.
+
+
+ Constructor to initialize to arbitrary scaling.
+
+
+ Raycast test against a geometry object. All geometry types are supported except PxParticleSystemGeometry, PxTetrahedronMeshGeometry and PxHairSystemGeometry. Number of hits between the ray and the geometry object
+
+
+ Sweep a specified geometry object in space and test for collision with a given object. The following combinations are supported. PxSphereGeometry vs. {PxSphereGeometry, PxPlaneGeometry, PxCapsuleGeometry, PxBoxGeometry, PxConvexMeshGeometry, PxTriangleMeshGeometry, PxHeightFieldGeometry} PxCapsuleGeometry vs. {PxSphereGeometry, PxPlaneGeometry, PxCapsuleGeometry, PxBoxGeometry, PxConvexMeshGeometry, PxTriangleMeshGeometry, PxHeightFieldGeometry} PxBoxGeometry vs. {PxSphereGeometry, PxPlaneGeometry, PxCapsuleGeometry, PxBoxGeometry, PxConvexMeshGeometry, PxTriangleMeshGeometry, PxHeightFieldGeometry} PxConvexMeshGeometry vs. {PxSphereGeometry, PxPlaneGeometry, PxCapsuleGeometry, PxBoxGeometry, PxConvexMeshGeometry, PxTriangleMeshGeometry, PxHeightFieldGeometry} True if the swept geometry object geom0 hits the object geom1
+
+
+ Compute minimum translational distance (MTD) between two geometry objects. All combinations of geom objects are supported except: - plane/plane - plane/mesh - plane/heightfield - mesh/mesh - mesh/heightfield - heightfield/heightfield - anything involving PxParticleSystemGeometry, PxTetrahedronMeshGeometry or PxHairSystemGeometry The function returns a unit vector ('direction') and a penetration depth ('depth'). The depenetration vector D = direction * depth should be applied to the first object, to get out of the second object. Returned depth should always be positive or null. If objects do not overlap, the function can not compute the MTD and returns false. True if the MTD has successfully been computed, i.e. if objects do overlap.
+
+
+ Computes distance between a point and a geometry object. Currently supported geometry objects: box, sphere, capsule, convex, mesh. For meshes, only the BVH34 midphase data-structure is supported. Square distance between the point and the geom object, or 0.0 if the point is inside the object, or -1.0 if an error occured (geometry type is not supported, or invalid pose)
+
+
+ Sweep a specified geometry object in space and test for collision with a set of given triangles. This function simply sweeps input geometry against each input triangle, in the order they are given. This is an O(N) operation with N = number of input triangles. It does not use any particular acceleration structure. True if the swept geometry object hits the specified triangles Only the following geometry types are currently supported: PxSphereGeometry, PxCapsuleGeometry, PxBoxGeometry If a shape from the scene is already overlapping with the query shape in its starting position, the hit is returned unless eASSUME_NO_INITIAL_OVERLAP was specified. This function returns a single closest hit across all the input triangles. Multiple hits are not supported. Supported hitFlags are PxHitFlag::eDEFAULT, PxHitFlag::eASSUME_NO_INITIAL_OVERLAP, PxHitFlag::ePRECISE_SWEEP, PxHitFlag::eMESH_BOTH_SIDES, PxHitFlag::eMESH_ANY. ePOSITION is only defined when there is no initial overlap (sweepHit.hadInitialOverlap() == false) The returned normal for initially overlapping sweeps is set to -unitDir. Otherwise the returned normal is the front normal of the triangle even if PxHitFlag::eMESH_BOTH_SIDES is set. The returned PxGeomSweepHit::faceIndex parameter will hold the index of the hit triangle in input array, i.e. the range is [0; triangleCount). For initially overlapping sweeps, this is the index of overlapping triangle. The inflation parameter is not compatible with PxHitFlag::ePRECISE_SWEEP.
+
+
+ Constructor
+
+
+ Constructor
+
+
+ Computes an approximate minimum translational distance (MTD) between a geometry object and a mesh. This iterative function computes an approximate vector that can be used to depenetrate a geom object from a triangle mesh. Returned depenetration vector should be applied to 'geom', to get out of the mesh. The function works best when the amount of overlap between the geom object and the mesh is small. If the geom object's center goes inside the mesh, backface culling usually kicks in, no overlap is detected, and the function does not compute an MTD vector. The function early exits if no overlap is detected after a depenetration attempt. This means that if maxIter = N, the code will attempt at most N iterations but it might exit earlier if depenetration has been successful. Usually N = 4 gives good results. True if the MTD has successfully been computed, i.e. if objects do overlap.
+
+
+ Computes an approximate minimum translational distance (MTD) between a geometry object and a heightfield. This iterative function computes an approximate vector that can be used to depenetrate a geom object from a heightfield. Returned depenetration vector should be applied to 'geom', to get out of the heightfield. The function works best when the amount of overlap between the geom object and the mesh is small. If the geom object's center goes inside the heightfield, backface culling usually kicks in, no overlap is detected, and the function does not compute an MTD vector. The function early exits if no overlap is detected after a depenetration attempt. This means that if maxIter = N, the code will attempt at most N iterations but it might exit earlier if depenetration has been successful. Usually N = 4 gives good results. True if the MTD has successfully been computed, i.e. if objects do overlap.
+
+
+ Creates from orientation matrix.
+
+
+ Get transposed matrix
+
+
+ Get the real inverse
+
+
+ Get determinant
+
+
+ Transform vector by matrix, equal to v' = M*v
+
+
+ Transform vector by matrix transpose, v' = M^t*v
+
+
+ gets the transformed bounds of the passed AABB (resulting in a bigger AABB). This version is safe to call for empty bounds.
+
+
+ gets the transformed bounds of the passed AABB (resulting in a bigger AABB). Calling this method for empty bounds leads to undefined behavior. Use [`transformSafe`]() instead.
+
+
+ Construct from Mat33 and a translation
+
+
+ computes a oriented bounding box around the scaled basis. Bounding box extent.
+
+
+ Get the entries of the diagonalized inertia tensor and the corresponding reference rotation. The entries of the diagonalized inertia tensor.
+
+
+ Translate an inertia tensor using the parallel axis theorem The translated inertia tensor.
+
+
+ Rotate an inertia tensor around the center of mass The rotated inertia tensor.
+
+
+ Non-uniform scaling of the inertia tensor The scaled inertia tensor.
+
+
+ returns true if quat is identity
+
+
+ returns true if all elements are finite (not NAN or INF, etc.)
+
+
+ returns true if finite and magnitude is close to unit
+
+
+ returns true if finite and magnitude is reasonably close to unit to allow for some accumulation of error vs isValid
+
+
+ converts this quaternion to angle-axis representation
+
+
+ Gets the angle between this quat and the identity quaternion. Unit: Radians
+
+
+ Gets the angle between this quat and the argument Unit: Radians
+
+
+ This is the squared 4D vector length, should be 1 for unit quaternions.
+
+
+ returns the scalar product of this and other.
+
+
+ maps to the closest unit quaternion.
+
+
+ brief computes rotation of x-axis
+
+
+ brief computes rotation of y-axis
+
+
+ brief computes rotation of z-axis
+
+
+ rotates passed vec by this (assumed unitary)
+
+
+ inverse rotates passed vec by this (assumed unitary)
+
+
+ Construct from a quaternion
+
+
+ Construct from a quaternion
+
+
+ return Returns the log of a PxQuat
+
+
+ Compute from an input quaternion q a pair of quaternions (swing, twist) such that q = swing * twist with the caveats that swing.x = twist.y = twist.z = 0.
+
+
+ Get transposed matrix
+
+
+ Transform vector by matrix, equal to v' = M*v
+
+
+ Transform vector by matrix, equal to v' = M*v
+
+
+ Rotate vector by matrix, equal to v' = M*v
+
+
+ Rotate vector by matrix, equal to v' = M*v
+
+
+ Transform transform to parent (returns compound transform: first src, then *this)
+
+
+ returns true if finite and q is a unit quaternion
+
+
+ returns true if finite and quat magnitude is reasonably close to unit to allow for some accumulation of error vs isValid
+
+
+ returns true if all elems are finite (not NAN or INF, etc.)
+
+
+ Transform transform from parent (returns compound transform: first src, then this->inverse)
+
+
+ return a normalized transform (i.e. one in which the quaternion has unit magnitude)
+
+
+ Construct from pose and extent
+
+
+ gets the transformed bounds of the passed AABB (resulting in a bigger AABB). This version is safe to call for empty bounds.
+
+
+ gets the transformed bounds of the passed AABB (resulting in a bigger AABB). Calling this method for empty bounds leads to undefined behavior. Use [`transformSafe`]() instead.
+
+
+ creates a plane equation from a transform, such as the actor transform for a PxPlaneGeometry the plane
+
+
+ integrate transform.
+
+
+ Sets empty to true
+
+
+ Sets the bounds to maximum size [-PX_MAX_BOUNDS_EXTENTS, PX_MAX_BOUNDS_EXTENTS].
+
+
+ expands the volume to include v
+
+
+ expands the volume to include b.
+
+
+ indicates whether the intersection of this and b is empty or not.
+
+
+ computes the 1D-intersection between two AABBs, on a given axis.
+
+
+ indicates if these bounds contain v.
+
+
+ checks a box is inside another box.
+
+
+ returns the center of this axis aligned box.
+
+
+ get component of the box's center along a given axis
+
+
+ get component of the box's extents along a given axis
+
+
+ returns the dimensions (width/height/depth) of this axis aligned box.
+
+
+ returns the extents, which are half of the width/height/depth.
+
+
+ scales the AABB. This version is safe to call for empty bounds.
+
+
+ scales the AABB. Calling this method for empty bounds leads to undefined behavior. Use [`scaleSafe`]() instead.
+
+
+ fattens the AABB in all 3 dimensions by the given distance. This version is safe to call for empty bounds.
+
+
+ fattens the AABB in all 3 dimensions by the given distance. Calling this method for empty bounds leads to undefined behavior. Use [`fattenSafe`]() instead.
+
+
+ checks that the AABB values are not NaN
+
+
+ checks that the AABB values describe a valid configuration.
+
+
+ Finds the closest point in the box to the point p. If p is contained, this will be p, otherwise it will be the closest point on the surface of the box.
+
+
+ computes the bounds for a geometry object
+
+
+ Creates regions for PxSceneDesc, from a global box. This helper simply subdivides the given global box into a 2D grid of smaller boxes. Each one of those smaller boxes is a region of interest for the broadphase. There are nbSubdiv*nbSubdiv regions in the 2D grid. The function does not subdivide along the given up axis. This is the simplest setup one can use with PxBroadPhaseType::eMBP. A more sophisticated setup would try to cover the game world with a non-uniform set of regions (i.e. not just a grid). number of regions written out to the 'regions' array
+
+
+ Reports an error code.
+
+
+ The default constructor.
+
+
+ Construct a new PxTaskManager instance with the given [optional] dispatchers
+
+
+ callback when memory is allocated.
+
+
+ callback when memory is deallocated.
+
+
+ The default constructor.
+
+
+ Allocates size bytes of memory, which must be 16-byte aligned. This method should never return NULL. If you run out of memory, then you should terminate the app or take some other appropriate action. Threading: This function should be thread safe as it can be called in the context of the user thread and physics processing thread(s). The allocated block of memory.
+
+
+ Frees memory previously allocated by allocate(). Threading: This function should be thread safe as it can be called in the context of the user thread and physics processing thread(s).
+
+
+ The default destructor.
+
+
+ Reports an error code.
+
+
+ read from the stream. The number of bytes read may be less than the number requested. the number of bytes read from the stream.
+
+
+ return the length of the input data size in bytes of the input data
+
+
+ seek to the given offset from the start of the data.
+
+
+ return the current offset from the start of the data the offset to seek to.
+
+
+ Creates a PxCollection from XML data. a pointer to a PxCollection if successful or NULL if it failed.
+
+
+ write to the stream. The number of bytes written may be less than the number sent. the number of bytes written to the stream by this call.
+
+
+ Put class meta data in stream, used for serialization
+
+
+ Serializes a physics collection to an XML output stream. The collection to be serialized needs to be complete Serialization of objects in a scene that is simultaneously being simulated is not supported and leads to undefined behavior. true if the collection is successfully serialized.
+
+
+ Serializes a collection to a binary stream. Serializes a collection to a stream. In order to resolve external dependencies the externalReferences collection has to be provided. Optionally names of objects that where set for example with [`PxActor::setName`] are serialized along with the objects. The collection can be successfully serialized if isSerializable(collection) returns true. See [`isSerializable`]. The implementation of the output stream needs to fulfill the requirements on the memory block input taken by PxSerialization::createCollectionFromBinary. Serialization of objects in a scene that is simultaneously being simulated is not supported and leads to undefined behavior. Whether serialization was successful
+
+
+ tests for exact zero vector
+
+
+ returns true if all 3 elems of the vector are finite (not NAN or INF, etc.)
+
+
+ is normalized - used by API parameter validation
+
+
+ returns the squared magnitude Avoids calling PxSqrt()!
+
+
+ returns the magnitude
+
+
+ returns the scalar product of this and other.
+
+
+ returns a unit vector
+
+
+ normalizes the vector in place
+
+
+ a[i] * b[i], for all i.
+
+
+ element-wise minimum
+
+
+ element-wise maximum
+
+
+ Construct from four 4-vectors
+
+
+ Construct from a diagonal vector
+
+
+ projects p into the plane
+
+
+ find an arbitrary point in the plane
+
+
+ equivalent plane with unit normal
+
+
+ transform plane
+
+
+ inverse-transform plane
+
+
+ creates a transform from a plane equation, suitable for an actor transform for a PxPlaneGeometry a PxTransform which will transform the plane PxPlane(1,0,0,0) to the specified plane
+
+
+ The destructor for Mutex deletes the mutex.
+
+
+ Acquire (lock) the mutex. If the mutex is already locked by another thread, this method blocks until the mutex is unlocked.
+
+
+ Acquire (lock) the mutex. If the mutex is already locked by another thread, this method returns false without blocking.
+
+
+ Release (unlock) the mutex.
+
+
+ Wait on the object for at most the given number of ms. Returns true if the object is signaled. Sync::waitForever will block forever or until the object is signaled.
+
+
+ Signal the synchronization object, waking all threads waiting on it
+
+
+ Reset the synchronization object
+
+
+ tests for exact zero vector
+
+
+ returns true if all 2 elems of the vector are finite (not NAN or INF, etc.)
+
+
+ is normalized - used by API parameter validation
+
+
+ returns the squared magnitude Avoids calling PxSqrt()!
+
+
+ returns the magnitude
+
+
+ returns the scalar product of this and other.
+
+
+ returns a unit vector
+
+
+ normalizes the vector in place
+
+
+ a[i] * b[i], for all i.
+
+
+ element-wise minimum
+
+
+ returns MIN(x, y);
+
+
+ element-wise maximum
+
+
+ returns MAX(x, y);
+
+
+ Registers a reference value corresponding to a PxBase object. This method is assumed to be called in the implementation of PxSerializer::registerReferences for serialized references that need to be resolved on deserialization. A reference needs to be associated with exactly one PxBase object in either the collection or the external references collection. Different kinds of references are supported and need to be specified. In the most common case (PX_SERIAL_REF_KIND_PXBASE) the PxBase object matches the reference value (which is the pointer to the PxBase object). Integer references maybe registered as well (used for internal material indices with PX_SERIAL_REF_KIND_MATERIAL_IDX). Other kinds could be added with the restriction that for pointer types the kind value needs to be marked with the PX_SERIAL_REF_KIND_PTR_TYPE_BIT.
+
+
+ Returns the collection that is being serialized.
+
+
+ Serializes object data and object extra data. This function is assumed to be called within the implementation of PxSerializer::exportData and PxSerializer::exportExtraData.
+
+
+ Aligns the serialized data. This function is assumed to be called within the implementation of PxSerializer::exportData and PxSerializer::exportExtraData.
+
+
+ Helper function to write a name to the extraData if serialization is configured to save names. This function is assumed to be called within the implementation of PxSerializer::exportExtraData.
+
+
+ Retrieves a pointer to a deserialized PxBase object given a corresponding deserialized reference value This method is assumed to be called in the implementation of PxSerializer::createObject in order to update reference values on deserialization. To update a PxBase reference the corresponding deserialized pointer value needs to be provided in order to retrieve the location of the corresponding deserialized PxBase object. (PxDeserializationContext::translatePxBase simplifies this common case). For other kinds of references the reverence values need to be updated by deduction given the corresponding PxBase instance. PxBase object associated with the reference value
+
+
+ Helper function to read a name from the extra data during deserialization. This function is assumed to be called within the implementation of PxSerializer::createObject.
+
+
+ Function to align the extra data stream to a power of 2 alignment This function is assumed to be called within the implementation of PxSerializer::createObject.
+
+
+ Register a serializer for a concrete type
+
+
+ Unregister a serializer for a concrete type, and retrieves the corresponding serializer object. Unregistered serializer corresponding to type, NULL for types for which no serializer has been registered.
+
+
+ Returns PxSerializer corresponding to type Registered PxSerializer object corresponding to type
+
+
+ Register a RepX serializer for a concrete type
+
+
+ Unregister a RepX serializer for a concrete type, and retrieves the corresponding serializer object. Unregistered PxRepxSerializer corresponding to type, NULL for types for which no RepX serializer has been registered.
+
+
+ Returns RepX serializer given the corresponding type name Registered PxRepXSerializer object corresponding to type name
+
+
+ Releases PxSerializationRegistry instance. This unregisters all PhysX and PhysXExtension serializers. Make sure to unregister all custom type serializers before releasing the PxSerializationRegistry.
+
+
+ Adds a PxBase object to the collection. Adds a PxBase object to the collection. Optionally a PxSerialObjectId can be provided in order to resolve dependencies between collections. A PxSerialObjectId value of PX_SERIAL_OBJECT_ID_INVALID means the object remains without id. Objects can be added regardless of other objects they require. If the object is already in the collection, the ID will be set if it was PX_SERIAL_OBJECT_ID_INVALID previously, otherwise the operation fails.
+
+
+ Removes a PxBase member object from the collection. Object needs to be contained by the collection.
+
+
+ Returns whether the collection contains a certain PxBase object. Whether object is contained.
+
+
+ Adds an id to a member PxBase object. If the object is already associated with an id within the collection, the id is replaced. May only be called for objects that are members of the collection. The id needs to be unique within the collection.
+
+
+ Removes id from a contained PxBase object. May only be called for ids that are associated with an object in the collection.
+
+
+ Adds all PxBase objects and their ids of collection to this collection. PxBase objects already in this collection are ignored. Object ids need to be conflict free, i.e. the same object may not have two different ids within the two collections.
+
+
+ Removes all PxBase objects of collection from this collection. PxBase objects not present in this collection are ignored. Ids of objects which are removed are also removed.
+
+
+ Gets number of PxBase objects in this collection. Number of objects in this collection
+
+
+ Gets the PxBase object of this collection given its index. PxBase object at index index
+
+
+ Copies member PxBase pointers to a user specified buffer. number of members PxBase objects that have been written to the userBuffer
+
+
+ Looks for a PxBase object given a PxSerialObjectId value. If there is no PxBase object in the collection with the given id, NULL is returned. PxBase object with the given id value or NULL
+
+
+ Gets number of PxSerialObjectId names in this collection. Number of PxSerialObjectId names in this collection
+
+
+ Copies member PxSerialObjectId values to a user specified buffer. number of members PxSerialObjectId values that have been written to the userBuffer
+
+
+ Gets the PxSerialObjectId name of a PxBase object within the collection. The PxBase object needs to be a member of the collection. PxSerialObjectId name of the object or PX_SERIAL_OBJECT_ID_INVALID if the object is unnamed
+
+
+ Deletes a collection object. This function only deletes the collection object, i.e. the container class. It doesn't delete objects that are part of the collection.
+
+
+ Returns whether the collection is serializable with the externalReferences collection. Some definitions to explain whether a collection can be serialized or not: For definitions of requires and complete see [`PxSerialization::complete`] A serializable object is subordinate if it cannot be serialized on its own The following objects are subordinate: - articulation links - articulation joints - joints A collection C can be serialized with external references collection D iff - C is complete relative to D (no dangling references) - Every object in D required by an object in C has a valid ID (no unnamed references) - Every subordinate object in C is required by another object in C (no orphans) Whether the collection is serializable
+
+
+ Adds to a collection all objects such that it can be successfully serialized. A collection C is complete relative to an other collection D if every object required by C is either in C or D. This function adds objects to a collection, such that it becomes complete with respect to the exceptFor collection. Completeness is needed for serialization. See [`PxSerialization::serializeCollectionToBinary`], [`PxSerialization::serializeCollectionToXml`]. Sdk objects require other sdk object according to the following rules: - joints require their actors and constraint - rigid actors require their shapes - shapes require their material(s) and mesh (triangle mesh, convex mesh or height field), if any - articulations require their links and joints - aggregates require their actors If followJoints is specified another rule is added: - actors require their joints Specifying followJoints will make whole jointed actor chains being added to the collection. Following chains is interrupted whenever a object in exceptFor is encountered.
+
+
+ Creates PxSerialObjectId values for unnamed objects in a collection. Creates PxSerialObjectId names for unnamed objects in a collection starting at a base value and incrementing, skipping values that are already assigned to objects in the collection.
+
+
+ Releases the PxBase instance, please check documentation of release in derived class.
+
+
+ Returns string name of dynamic type. Class name of most derived type of this object.
+
+
+ Returns concrete type of object. PxConcreteType::Enum of serialized object
+
+
+ Set PxBaseFlag
+
+
+ Set PxBaseFlags
+
+
+ Returns PxBaseFlags PxBaseFlags
+
+
+ Whether the object is subordinate. A class is subordinate, if it can only be instantiated in the context of another class. Whether the class is subordinate
+
+
+ Decrements the reference count of the object and releases it if the new reference count is zero.
+
+
+ Returns the reference count of the object. At creation, the reference count of the object is 1. Every other object referencing this object increments the count by 1. When the reference count reaches 0, and only then, the object gets destroyed automatically. the current reference count.
+
+
+ Acquires a counted reference to this object. This method increases the reference count of the object by 1. Decrement the reference count by calling release()
+
+
+ Returns true if the descriptor is valid. true if the current settings are valid (returns always true).
+
+
+ constructor sets to default.
+
+
+ construct a linear hard limit
+
+
+ Construct a linear hard limit pair. The lower distance value must be less than the upper distance value.
+
+
+ Allocate a new string. *Always* a valid null terminated string. \"\" is returned if \"\" or null is passed in.
+
+
+ Release the string table and all the strings associated with it.
+
+
+ Returns string name of dynamic type. Class name of most derived type of this object.
+
+
+ Adds required objects to the collection. This method does not add the required objects recursively, e.g. objects required by required objects.
+
+
+ Whether the object is subordinate. A class is subordinate, if it can only be instantiated in the context of another class. Whether the class is subordinate
+
+
+ Exports object's extra data to stream.
+
+
+ Exports object's data to stream.
+
+
+ Register references that the object maintains to other objects.
+
+
+ Returns size needed to create the class instance. sizeof class instance.
+
+
+ Create object at a given address, resolve references and import extra data. Created PxBase pointer (needs to be identical to address before increment).
+
+
+ *******************************************************************************************************************
+
+
+ Builds object (TriangleMesh, Heightfield, ConvexMesh or BVH) from given data in PxPhysics. PxBase Created object in PxPhysics.
+
+
+ Set the user-provided dispatcher object for CPU tasks
+
+
+ Get the user-provided dispatcher object for CPU tasks The CPU dispatcher object.
+
+
+ Reset any dependencies between Tasks Will be called at the start of every frame before tasks are submitted.
+
+
+ Called by the owning scene to start the task graph. All tasks with ref count of 1 will be dispatched.
+
+
+ Called by the owning scene at the end of a simulation step.
+
+
+ Called by the worker threads to inform the PxTaskManager that a task has completed processing.
+
+
+ Retrieve a task by name The ID of the task with that name, or eNOT_PRESENT if not found
+
+
+ Submit a task with a unique name. The ID of the task with that name, or eNOT_PRESENT if not found
+
+
+ Submit an unnamed task. The ID of the task with that name, or eNOT_PRESENT if not found
+
+
+ Retrieve a task given a task ID The task associated with the ID
+
+
+ Release the PxTaskManager object, referenced dispatchers will not be released
+
+
+ Called by the TaskManager when a task is to be queued for execution. Upon receiving a task, the dispatcher should schedule the task to run. After the task has been run, it should call the release() method and discard its pointer.
+
+
+ Returns the number of available worker threads for this dispatcher. The SDK will use this count to control how many tasks are submitted. By matching the number of tasks with the number of execution units task overhead can be reduced.
+
+
+ The user-implemented run method where the task's work should be performed run() methods must be thread safe, stack friendly (no alloca, etc), and must never block.
+
+
+ Return a user-provided task name for profiling purposes. It does not have to be unique, but unique names are helpful. The name of this task
+
+
+ Implemented by derived implementation classes
+
+
+ Implemented by derived implementation classes
+
+
+ Implemented by derived implementation classes
+
+
+ Implemented by derived implementation classes A task may assume in its release() method that the task system no longer holds references to it - so it may safely run its destructor, recycle itself, etc. provided no additional user references to the task exist
+
+
+ Return PxTaskManager to which this task was submitted Note, can return NULL if task was not submitted, or has been completed.
+
+
+ Release method implementation
+
+
+ Inform the PxTaskManager this task must finish before the given
+
+
+ Inform the PxTaskManager this task cannot start until the given
+
+
+ Manually increment this task's reference count. The task will not be allowed to run until removeReference() is called.
+
+
+ Manually decrement this task's reference count. If the reference count reaches zero, the task will be dispatched.
+
+
+ Return the ref-count for this task
+
+
+ Return the unique ID for this task
+
+
+ Called by PxTaskManager at submission time for initialization Perform simulation step initialization here.
+
+
+ Initialize this task and specify the task that will have its ref count decremented on completion. Submission is deferred until the task's mRefCount is decremented to zero. Note that we only use the PxTaskManager to query the appropriate dispatcher.
+
+
+ Initialize this task and specify the task that will have its ref count decremented on completion. This overload of setContinuation() queries the PxTaskManager from the continuation task, which cannot be NULL.
+
+
+ Retrieves continuation task
+
+
+ Manually decrement this task's reference count. If the reference count reaches zero, the task will be dispatched.
+
+
+ Return the ref-count for this task
+
+
+ Manually increment this task's reference count. The task will not be allowed to run until removeReference() is called.
+
+
+ called by CpuDispatcher after run method has completed Decrements the continuation task's reference count, if specified.
+
+
+ Returns the type of the geometry. The type of the object.
+
+
+ Overlap test for two geometry objects. All combinations are supported except: PxPlaneGeometry vs. {PxPlaneGeometry, PxTriangleMeshGeometry, PxHeightFieldGeometry} PxTriangleMeshGeometry vs. PxHeightFieldGeometry PxHeightFieldGeometry vs. PxHeightFieldGeometry Anything involving PxParticleSystemGeometry, PxTetrahedronMeshGeometry or PxHairSystemGeometry. True if the two geometry objects overlap
+
+
+ Checks if provided geometry is valid. True if geometry is valid.
+
+
+ Find the mesh triangles which touch the specified geometry object. For mesh-vs-mesh overlap tests, please use the specialized function below. Returned triangle indices can be used with [`getTriangle`]() to retrieve the triangle properties. Number of overlaps found, i.e. number of elements written to the results buffer
+
+
+ Find the height field triangles which touch the specified geometry object. Returned triangle indices can be used with [`getTriangle`]() to retrieve the triangle properties. Number of overlaps found, i.e. number of elements written to the results buffer
+
+
+ Compute mass properties based on a provided geometry structure. This constructor assumes the geometry has a density of 1. Mass and inertia tensor scale linearly with density.
+
+
+ Creates a shape sampler Returns the sampler
+
+
+ Returns true if the geometry is valid. True if the current settings are valid A valid box has a positive extent in each direction (halfExtents.x > 0, halfExtents.y > 0, halfExtents.z > 0). It is illegal to call PxRigidActor::createShape and PxPhysics::createShape with a box that has zero extent in any direction.
+
+
+ Raycast test against a BVH. false if query has been aborted
+
+
+ Sweep test against a BVH. false if query has been aborted
+
+
+ Overlap test against a BVH. false if query has been aborted
+
+
+ Frustum culling test against a BVH. This is similar in spirit to an overlap query using a convex object around the frustum. However this specialized query has better performance, and can support more than the 6 planes of a frustum, which can be useful in portal-based engines. On the other hand this test only returns a conservative number of bounds, i.e. some of the returned bounds may actually be outside the frustum volume, close to it but not touching it. This is usually an ok performance trade-off when the function is used for view-frustum culling. false if query has been aborted
+
+
+ Returns the number of bounds in the BVH. You can use [`getBounds`]() to retrieve the bounds. These are the user-defined bounds passed to the BVH builder, not the internal bounds around each BVH node. Number of bounds in the BVH.
+
+
+ Retrieve the read-only bounds in the BVH. These are the user-defined bounds passed to the BVH builder, not the internal bounds around each BVH node.
+
+
+ Retrieve the bounds in the BVH. These bounds can be modified. Call refit() after modifications are done. These are the user-defined bounds passed to the BVH builder, not the internal bounds around each BVH node.
+
+
+ Refit the BVH. This function \"refits\" the tree, i.e. takes the new (leaf) bounding boxes into account and recomputes all the BVH bounds accordingly. This is an O(n) operation with n = number of bounds in the BVH. This works best with minor bounds modifications, i.e. when the bounds remain close to their initial values. With large modifications the tree quality degrades more and more, and subsequent query performance suffers. It might be a better strategy to create a brand new BVH if bounds change drastically. This function refits the whole tree after an arbitrary number of bounds have potentially been modified by users (via getBoundsForModification()). If you only have a small number of bounds to update, it might be more efficient to use setBounds() and partialRefit() instead.
+
+
+ Update single bounds. This is an alternative to getBoundsForModification() / refit(). If you only have a small set of bounds to update, it can be inefficient to call the refit() function, because it refits the whole BVH. Instead, one can update individual bounds with this updateBounds() function. It sets the new bounds and marks the corresponding BVH nodes for partial refit. Once all the individual bounds have been updated, call partialRefit() to only refit the subset of marked nodes. true if success
+
+
+ Refits subset of marked nodes. This is an alternative to the refit() function, to be called after updateBounds() calls. See updateBounds() for details.
+
+
+ Generic BVH traversal function. This can be used to implement custom BVH traversal functions if provided ones are not enough. In particular this can be used to visualize the tree's bounds. false if query has been aborted
+
+
+ Returns true if the geometry is valid. True if the current settings are valid. A valid capsule has radius > 0, halfHeight >= 0. It is illegal to call PxRigidActor::createShape and PxPhysics::createShape with a capsule that has zero radius or height.
+
+
+ Returns the number of vertices. Number of vertices.
+
+
+ Returns the vertices. Array of vertices.
+
+
+ Returns the index buffer. Index buffer.
+
+
+ Returns the number of polygons. Number of polygons.
+
+
+ Returns the polygon data. True if success.
+
+
+ Decrements the reference count of a convex mesh and releases it if the new reference count is zero.
+
+
+ Returns the mass properties of the mesh assuming unit density. The following relationship holds between mass and volume: mass = volume * density The mass of a unit density mesh is equal to its volume, so this function returns the volume of the mesh. Similarly, to obtain the localInertia of an identically shaped object with a uniform density of d, simply multiply the localInertia of the unit density mesh by d.
+
+
+ Returns the local-space (vertex space) AABB from the convex mesh. local-space bounds
+
+
+ Returns the local-space Signed Distance Field for this mesh if it has one. local-space SDF.
+
+
+ This method decides whether a convex mesh is gpu compatible. If the total number of vertices are more than 64 or any number of vertices in a polygon is more than 32, or convex hull data was not cooked with GPU data enabled during cooking or was loaded from a serialized collection, the convex hull is incompatible with GPU collision detection. Otherwise it is compatible. True if the convex hull is gpu compatible
+
+
+ Constructor. By default creates an empty object with a NULL mesh and identity scale.
+
+
+ Returns true if the scaling is an identity transformation.
+
+
+ Returns the inverse of this scaling transformation.
+
+
+ Converts this transformation to a 3x3 matrix representation.
+
+
+ Returns true if combination of negative scale components will cause the triangle normal to flip. The SDK will flip the normals internally.
+
+
+ Returns true if the geometry is valid. True if the current settings are valid for shape creation. A valid convex mesh has a positive scale value in each direction (scale.x > 0, scale.y > 0, scale.z > 0). It is illegal to call PxRigidActor::createShape and PxPhysics::createShape with a convex that has zero extent in any direction.
+
+
+ Computes closest polygon of the convex hull geometry for a given impact point and impact direction. When doing sweeps against a scene, one might want to delay the rather expensive computation of the hit face index for convexes until it is clear the information is really needed and then use this method to get the corresponding face index. Closest face index of the convex geometry.
+
+
+ Returns true if the geometry is valid. True if the current settings are valid A valid sphere has radius > 0. It is illegal to call PxRigidActor::createShape and PxPhysics::createShape with a sphere that has zero radius.
+
+
+ Returns true if the geometry is valid. True if the current settings are valid
+
+
+ Constructor. By default creates an empty object with a NULL mesh and identity scale.
+
+
+ Returns the number of vertices. number of vertices
+
+
+ Returns the vertices. array of vertices
+
+
+ Returns all mesh vertices for modification. This function will return the vertices of the mesh so that their positions can be changed in place. After modifying the vertices you must call refitBVH for the refitting to actually take place. This function maintains the old mesh topology (triangle indices). inplace vertex coordinates for each existing mesh vertex. It is recommended to use this feature for scene queries only. Size of array returned is equal to the number returned by getNbVertices(). This function operates on cooked vertex indices. This means the index mapping and vertex count can be different from what was provided as an input to the cooking routine. To achieve unchanged 1-to-1 index mapping with orignal mesh data (before cooking) please use the following cooking flags: eWELD_VERTICES = 0, eDISABLE_CLEAN_MESH = 1. It is also recommended to make sure that a call to validateTriangleMesh returns true if mesh cleaning is disabled.
+
+
+ Refits BVH for mesh vertices. This function will refit the mesh BVH to correctly enclose the new positions updated by getVerticesForModification. Mesh BVH will not be reoptimized by this function so significantly different new positions will cause significantly reduced performance. New bounds for the entire mesh. For PxMeshMidPhase::eBVH34 trees the refit operation is only available on non-quantized trees (see PxBVH34MidphaseDesc::quantized) PhysX does not keep a mapping from the mesh to mesh shapes that reference it. Call PxShape::setGeometry on each shape which references the mesh, to ensure that internal data structures are updated to reflect the new geometry. PxShape::setGeometry does not guarantee correct/continuous behavior when objects are resting on top of old or new geometry. It is also recommended to make sure that a call to validateTriangleMesh returns true if mesh cleaning is disabled. Active edges information will be lost during refit, the rigid body mesh contact generation might not perform as expected.
+
+
+ Returns the number of triangles. number of triangles
+
+
+ Returns the triangle indices. The indices can be 16 or 32bit depending on the number of triangles in the mesh. Call getTriangleMeshFlags() to know if the indices are 16 or 32 bits. The number of indices is the number of triangles * 3. array of triangles
+
+
+ Reads the PxTriangleMesh flags. See the list of flags [`PxTriangleMeshFlag`] The values of the PxTriangleMesh flags.
+
+
+ Returns the triangle remapping table. The triangles are internally sorted according to various criteria. Hence the internal triangle order does not always match the original (user-defined) order. The remapping table helps finding the old indices knowing the new ones: remapTable[ internalTriangleIndex ] = originalTriangleIndex the remapping table (or NULL if 'PxCookingParams::suppressTriangleMeshRemapTable' has been used)
+
+
+ Decrements the reference count of a triangle mesh and releases it if the new reference count is zero.
+
+
+ Returns material table index of given triangle This function takes a post cooking triangle index. Material table index, or 0xffff if no per-triangle materials are used
+
+
+ Returns the local-space (vertex space) AABB from the triangle mesh. local-space bounds
+
+
+ Returns the local-space Signed Distance Field for this mesh if it has one. local-space SDF.
+
+
+ Returns the resolution of the local-space dense SDF.
+
+
+ Sets whether this mesh should be preferred for SDF projection. By default, meshes are flagged as preferring projection and the decisions on which mesh to project is based on the triangle and vertex count. The model with the fewer triangles is projected onto the SDF of the more detailed mesh. If one of the meshes is set to prefer SDF projection (default) and the other is set to not prefer SDF projection, model flagged as preferring SDF projection will be projected onto the model flagged as not preferring, regardless of the detail of the respective meshes. Where both models are flagged as preferring no projection, the less detailed model will be projected as before.
+
+
+ Returns whether this mesh prefers SDF projection. whether this mesh prefers SDF projection.
+
+
+ Returns the mass properties of the mesh assuming unit density. The following relationship holds between mass and volume: mass = volume * density The mass of a unit density mesh is equal to its volume, so this function returns the volume of the mesh. Similarly, to obtain the localInertia of an identically shaped object with a uniform density of d, simply multiply the localInertia of the unit density mesh by d.
+
+
+ Returns true if the geometry is valid. True if the current settings are valid for shape creation. A valid triangle mesh has a positive scale value in each direction (scale.scale.x > 0, scale.scale.y > 0, scale.scale.z > 0). It is illegal to call PxRigidActor::createShape and PxPhysics::createShape with a triangle mesh that has zero extents in any direction.
+
+
+ Retrieves triangle data from a triangle ID. This function can be used together with [`findOverlapTriangleMesh`]() to retrieve triangle properties. This function will flip the triangle normal whenever triGeom.scale.hasNegativeDeterminant() is true.
+
+
+ Constructor.
+
+
+ Decrements the reference count of a height field and releases it if the new reference count is zero.
+
+
+ Writes out the sample data array. The user provides destBufferSize bytes storage at destBuffer. The data is formatted and arranged as PxHeightFieldDesc.samples. The number of bytes written.
+
+
+ Replaces a rectangular subfield in the sample data array. The user provides the description of a rectangular subfield in subfieldDesc. The data is formatted and arranged as PxHeightFieldDesc.samples. True on success, false on failure. Failure can occur due to format mismatch. Modified samples are constrained to the same height quantization range as the original heightfield. Source samples that are out of range of target heightfield will be clipped with no error. PhysX does not keep a mapping from the heightfield to heightfield shapes that reference it. Call PxShape::setGeometry on each shape which references the height field, to ensure that internal data structures are updated to reflect the new geometry. Please note that PxShape::setGeometry does not guarantee correct/continuous behavior when objects are resting on top of old or new geometry.
+
+
+ Retrieves the number of sample rows in the samples array. The number of sample rows in the samples array.
+
+
+ Retrieves the number of sample columns in the samples array. The number of sample columns in the samples array.
+
+
+ Retrieves the format of the sample data. The format of the sample data.
+
+
+ Retrieves the offset in bytes between consecutive samples in the array. The offset in bytes between consecutive samples in the array.
+
+
+ Retrieves the convex edge threshold. The convex edge threshold.
+
+
+ Retrieves the flags bits, combined from values of the enum ::PxHeightFieldFlag. The flags bits, combined from values of the enum ::PxHeightFieldFlag.
+
+
+ Retrieves the height at the given coordinates in grid space. The height at the given coordinates or 0 if the coordinates are out of range.
+
+
+ Returns material table index of given triangle This function takes a post cooking triangle index. Material table index, or 0xffff if no per-triangle materials are used
+
+
+ Returns a triangle face normal for a given triangle index This function takes a post cooking triangle index. Triangle normal for a given triangle index
+
+
+ Returns heightfield sample of given row and column Heightfield sample
+
+
+ Returns the number of times the heightfield data has been modified This method returns the number of times modifySamples has been called on this heightfield, so that code that has retained state that depends on the heightfield can efficiently determine whether it has been modified. the number of times the heightfield sample data has been modified.
+
+
+ Returns true if the geometry is valid. True if the current settings are valid A valid height field has a positive scale value in each direction (heightScale > 0, rowScale > 0, columnScale > 0). It is illegal to call PxRigidActor::createShape and PxPhysics::createShape with a height field that has zero extents in any direction.
+
+
+ Retrieves triangle data from a triangle ID. This function can be used together with [`findOverlapHeightField`]() to retrieve triangle properties. This function will flip the triangle normal whenever triGeom.scale.hasNegativeDeterminant() is true. TriangleIndex is an index used in internal format, which does have an index out of the bounds in last row. To traverse all tri indices in the HF, the following code can be applied: for (PxU32 row = 0; row < (nbRows - 1); row++) { for (PxU32 col = 0; col < (nbCols - 1); col++) { for (PxU32 k = 0; k < 2; k++) { const PxU32 triIndex = 2 * (row*nbCols + col) + k; .... } } }
+
+
+ Returns true if the geometry is valid. True if the current settings are valid for shape creation.
+
+
+ Returns true if the geometry is valid. True if the current settings are valid for shape creation.
+
+
+ Constructor. By default creates an empty object with a NULL mesh and identity scale.
+
+
+ Returns the number of vertices. number of vertices
+
+
+ Returns the vertices array of vertices
+
+
+ Returns the number of tetrahedrons. number of tetrahedrons
+
+
+ Returns the tetrahedron indices. The indices can be 16 or 32bit depending on the number of tetrahedrons in the mesh. Call getTetrahedronMeshFlags() to know if the indices are 16 or 32 bits. The number of indices is the number of tetrahedrons * 4. array of tetrahedrons
+
+
+ Reads the PxTetrahedronMesh flags. See the list of flags [`PxTetrahedronMeshFlags`] The values of the PxTetrahedronMesh flags.
+
+
+ Returns the tetrahedra remapping table. The tetrahedra are internally sorted according to various criteria. Hence the internal tetrahedron order does not always match the original (user-defined) order. The remapping table helps finding the old indices knowing the new ones: remapTable[ internalTetrahedronIndex ] = originalTetrahedronIndex the remapping table (or NULL if 'PxCookingParams::suppressTriangleMeshRemapTable' has been used)
+
+
+ Returns the local-space (vertex space) AABB from the tetrahedron mesh. local-space bounds
+
+
+ Decrements the reference count of a tetrahedron mesh and releases it if the new reference count is zero.
+
+
+ Returns the index of the tetrahedron that contains a point The index of the tetrahedon containing the point, -1 if not tetrahedron contains the opoint
+
+
+ Returns the index of the tetrahedron closest to a point The index of the tetrahedon closest to the point
+
+
+ Returns true if the geometry is valid. True if the current settings are valid for shape creation. A valid tetrahedron mesh has a positive scale value in each direction (scale.scale.x > 0, scale.scale.y > 0, scale.scale.z > 0). It is illegal to call PxRigidActor::createShape and PxPhysics::createShape with a tetrahedron mesh that has zero extents in any direction.
+
+
+ For raycast hits: true for shapes overlapping with raycast origin. For sweep hits: true for shapes overlapping at zero sweep distance.
+
+
+ Return custom type. The type purpose is for user to differentiate custom geometries. Not used by PhysX. Unique ID of a custom geometry type. User should use DECLARE_CUSTOM_GEOMETRY_TYPE and IMPLEMENT_CUSTOM_GEOMETRY_TYPE intead of overwriting this function.
+
+
+ Return local bounds. Bounding box in the geometry local space.
+
+
+ Raycast. Cast a ray against the geometry in given pose. Number of hits.
+
+
+ Overlap. Test if geometries overlap. True if there is overlap. False otherwise.
+
+
+ Sweep. Sweep one geometry against the other. True if there is hit. False otherwise.
+
+
+ Compute custom geometry mass properties. For geometries usable with dynamic rigidbodies.
+
+
+ Compatible with PhysX's PCM feature. Allows to optimize contact generation.
+
+
+ Constructor.
+
+
+ Returns true if the geometry is valid. True if the current settings are valid for shape creation.
+
+
+ Returns the custom type of the custom geometry.
+
+
+ (re)sets the structure to the default.
+
+
+ Returns true if the descriptor is valid. True if the current settings are valid.
+
+
+ Cooks a heightfield. The results are written to the stream. To create a heightfield object there is an option to precompute some of calculations done while loading the heightfield data. cookHeightField() allows a heightfield description to be cooked into a binary stream suitable for loading and performing collision detection at runtime. true on success
+
+
+ Cooks and creates a heightfield mesh and inserts it into PxPhysics. PxHeightField pointer on success
+
+
+ (re)sets the structure to the default.
+
+
+ returns true if the current settings are valid
+
+
+ Destructor
+
+
+ Compute the normal of the Triangle.
+
+
+ Compute the unnormalized normal of the triangle.
+
+
+ Compute the area of the triangle. Area of the triangle.
+
+
+ Computes a point on the triangle from u and v barycentric coordinates.
+
+
+ Destructor
+
+
+ Decrements the reference count of a tetrahedron mesh and releases it if the new reference count is zero.
+
+
+ Const accecssor to the softbody's collision mesh.
+
+
+ Accecssor to the softbody's collision mesh.
+
+
+ Const accessor to the softbody's simulation mesh.
+
+
+ Accecssor to the softbody's simulation mesh.
+
+
+ Const accessor to the softbodies simulation state.
+
+
+ Accessor to the softbody's auxilary data like mass and rest pose information
+
+
+ Decrements the reference count of a tetrahedron mesh and releases it if the new reference count is zero.
+
+
+ Deletes the actor. Do not keep a reference to the deleted instance. If the actor belongs to a [`PxAggregate`] object, it is automatically removed from the aggregate.
+
+
+ Retrieves the type of actor. The actor type of the actor.
+
+
+ Retrieves the scene which this actor belongs to. Owner Scene. NULL if not part of a scene.
+
+
+ Sets a name string for the object that can be retrieved with getName(). This is for debugging and is not used by the SDK. The string is not copied by the SDK, only the pointer is stored. Default: NULL
+
+
+ Retrieves the name string set with setName(). Name string associated with object.
+
+
+ Retrieves the axis aligned bounding box enclosing the actor. It is not allowed to use this method while the simulation is running (except during PxScene::collide(), in PxContactModifyCallback or in contact report callbacks). The actor's bounding box.
+
+
+ Raises or clears a particular actor flag. See the list of flags [`PxActorFlag`] Sleeping: Does NOT wake the actor up automatically.
+
+
+ Sets the actor flags. See the list of flags [`PxActorFlag`]
+
+
+ Reads the PxActor flags. See the list of flags [`PxActorFlag`] The values of the PxActor flags.
+
+
+ Assigns dynamic actors a dominance group identifier. PxDominanceGroup is a 5 bit group identifier (legal range from 0 to 31). The PxScene::setDominanceGroupPair() lets you set certain behaviors for pairs of dominance groups. By default every dynamic actor is created in group 0. Default: 0 Sleeping: Changing the dominance group does NOT wake the actor up automatically.
+
+
+ Retrieves the value set with setDominanceGroup(). The dominance group of this actor.
+
+
+ Sets the owner client of an actor. This cannot be done once the actor has been placed into a scene. Default: PX_DEFAULT_CLIENT
+
+
+ Returns the owner client that was specified at creation time. This value cannot be changed once the object is placed into the scene.
+
+
+ Retrieves the aggregate the actor might be a part of. The aggregate the actor is a part of, or NULL if the actor does not belong to an aggregate.
+
+
+ Retrieves the value set with PxSetGroup() Collision group is an integer between 0 and 31. The collision group this actor belongs to
+
+
+ Sets which collision group this actor is part of Collision group is an integer between 0 and 31.
+
+
+ Gets 64-bit mask used for collision filtering. See comments for PxGroupsMask The group mask for the actor.
+
+
+ Sets 64-bit mask used for collision filtering. See comments for PxGroupsMask
+
+
+ Deletes the aggregate object. Deleting the PxAggregate object does not delete the aggregated actors. If the PxAggregate object belongs to a scene, the aggregated actors are automatically re-inserted in that scene. If you intend to delete both the PxAggregate and its actors, it is best to release the actors first, then release the PxAggregate when it is empty.
+
+
+ Adds an actor to the aggregate object. A warning is output if the total number of actors is reached, or if the incoming actor already belongs to an aggregate. If the aggregate belongs to a scene, adding an actor to the aggregate also adds the actor to that scene. If the actor already belongs to a scene, a warning is output and the call is ignored. You need to remove the actor from the scene first, before adding it to the aggregate. When a BVH is provided the actor shapes are grouped together. The scene query pruning structure inside PhysX SDK will store/update one bound per actor. The scene queries against such an actor will query actor bounds and then make a local space query against the provided BVH, which is in actor's local space.
+
+
+ Removes an actor from the aggregate object. A warning is output if the incoming actor does not belong to the aggregate. Otherwise the actor is removed from the aggregate. If the aggregate belongs to a scene, the actor is reinserted in that scene. If you intend to delete the actor, it is best to call [`PxActor::release`]() directly. That way the actor will be automatically removed from its aggregate (if any) and not reinserted in a scene.
+
+
+ Adds an articulation to the aggregate object. A warning is output if the total number of actors is reached (every articulation link counts as an actor), or if the incoming articulation already belongs to an aggregate. If the aggregate belongs to a scene, adding an articulation to the aggregate also adds the articulation to that scene. If the articulation already belongs to a scene, a warning is output and the call is ignored. You need to remove the articulation from the scene first, before adding it to the aggregate.
+
+
+ Removes an articulation from the aggregate object. A warning is output if the incoming articulation does not belong to the aggregate. Otherwise the articulation is removed from the aggregate. If the aggregate belongs to a scene, the articulation is reinserted in that scene. If you intend to delete the articulation, it is best to call [`PxArticulationReducedCoordinate::release`]() directly. That way the articulation will be automatically removed from its aggregate (if any) and not reinserted in a scene.
+
+
+ Returns the number of actors contained in the aggregate. You can use [`getActors`]() to retrieve the actor pointers. Number of actors contained in the aggregate.
+
+
+ Retrieves max amount of shapes that can be contained in the aggregate. Max shape size.
+
+
+ Retrieve all actors contained in the aggregate. You can retrieve the number of actor pointers by calling [`getNbActors`]() Number of actor pointers written to the buffer.
+
+
+ Retrieves the scene which this aggregate belongs to. Owner Scene. NULL if not part of a scene.
+
+
+ Retrieves aggregate's self-collision flag. self-collision flag
+
+
+ Visualize joint frames
+
+
+ Visualize joint linear limit
+
+
+ Visualize joint angular limit
+
+
+ Visualize limit cone
+
+
+ Visualize joint double cone
+
+
+ Visualize line
+
+
+ Pre-simulation data preparation when the constraint is marked dirty, this function is called at the start of the simulation step for the SDK to copy the constraint data block.
+
+
+ Constraint release callback When the SDK deletes a PxConstraint object this function is called by the SDK. In general custom constraints should not be deleted directly by applications: rather, the constraint should respond to a release() request by calling PxConstraint::release(), then wait for this call to release its own resources. This function is also called when a PxConstraint object is deleted on cleanup due to destruction of the PxPhysics object.
+
+
+ Center-of-mass shift callback This function is called by the SDK when the CoM of one of the actors is moved. Since the API specifies constraint positions relative to actors, and the constraint shader functions are supplied with coordinates relative to bodies, some synchronization is usually required when the application moves an object's center of mass.
+
+
+ Origin shift callback This function is called by the SDK when the scene origin gets shifted and allows to adjust custom data which contains world space transforms. If the adjustments affect constraint shader data, it is necessary to call PxConstraint::markDirty() to make sure that the data gets synced at the beginning of the next simulation step.
+
+
+ Obtain a reference to a PxBase interface if the constraint has one. If the constraint does not implement the PxBase interface, it should return NULL.
+
+
+ Obtain the pointer to the constraint's constant data
+
+
+ Let the connector know it has been connected to a constraint.
+
+
+ virtual destructor
+
+
+ Allocates constraint data. It is the application's responsibility to release this memory after PxSolveConstraints has completed. The allocated memory. This address must be 16-byte aligned.
+
+
+ Allocates friction data. Friction data can be retained by the application for a given pair and provided as an input to PxSolverContactDesc to improve simulation stability. It is the application's responsibility to release this memory. If this memory is released, the application should ensure it does not pass pointers to this memory to PxSolverContactDesc. The allocated memory. This address must be 4-byte aligned.
+
+
+ Sets the spring rest length for the sub-tendon from the root to this leaf attachment. Setting this on non-leaf attachments has no effect.
+
+
+ Gets the spring rest length for the sub-tendon from the root to this leaf attachment. The rest length.
+
+
+ Sets the low and high limit on the length of the sub-tendon from the root to this leaf attachment. Setting this on non-leaf attachments has no effect.
+
+
+ Gets the low and high limit on the length of the sub-tendon from the root to this leaf attachment. Struct with the low and high limit.
+
+
+ Sets the attachment's relative offset in the link actor frame.
+
+
+ Gets the attachment's relative offset in the link actor frame. The relative offset in the link actor frame.
+
+
+ Sets the attachment coefficient.
+
+
+ Gets the attachment coefficient. The scale that the distance between this attachment and its parent is multiplied by when summing up the spatial tendon's length.
+
+
+ Gets the articulation link. The articulation link that this attachment is attached to.
+
+
+ Gets the parent attachment. The parent attachment.
+
+
+ Indicates that this attachment is a leaf, and thus defines a sub-tendon from the root to this attachment. True: This attachment is a leaf and has zero children; False: Not a leaf.
+
+
+ Gets the spatial tendon that the attachment is a part of. The tendon.
+
+
+ Releases the attachment. Releasing the attachment is not allowed while the articulation is in a scene. In order to release the attachment, remove and then re-add the articulation to the scene.
+
+
+ Returns the string name of the dynamic type. The string name.
+
+
+ Sets the tendon joint coefficient. RecipCoefficient is commonly expected to be 1/coefficient, but it can be set to different values to tune behavior; for example, zero can be used to have a joint axis only participate in the length computation of the tendon, but not have any tendon force applied to it.
+
+
+ Gets the tendon joint coefficient.
+
+
+ Gets the articulation link. The articulation link (and its incoming joint in particular) that this tendon joint is associated with.
+
+
+ Gets the parent tendon joint. The parent tendon joint.
+
+
+ Gets the tendon that the joint is a part of. The tendon.
+
+
+ Releases a tendon joint. Releasing a tendon joint is not allowed while the articulation is in a scene. In order to release the joint, remove and then re-add the articulation to the scene.
+
+
+ Returns the string name of the dynamic type. The string name.
+
+
+ Sets the spring stiffness term acting on the tendon length.
+
+
+ Gets the spring stiffness of the tendon. The spring stiffness.
+
+
+ Sets the damping term acting both on the tendon length and tendon-length limits.
+
+
+ Gets the damping term acting both on the tendon length and tendon-length limits. The damping term.
+
+
+ Sets the limit stiffness term acting on the tendon's length limits. For spatial tendons, this parameter applies to all its leaf attachments / sub-tendons.
+
+
+ Gets the limit stiffness term acting on the tendon's length limits. For spatial tendons, this parameter applies to all its leaf attachments / sub-tendons. The limit stiffness term.
+
+
+ Sets the length offset term for the tendon. An offset defines an amount to be added to the accumulated length computed for the tendon. It allows the application to actuate the tendon by shortening or lengthening it.
+
+
+ Gets the length offset term for the tendon. The offset term.
+
+
+ Gets the articulation that the tendon is a part of. The articulation.
+
+
+ Releases a tendon to remove it from the articulation and free its associated memory. When an articulation is released, its attached tendons are automatically released. Releasing a tendon is not allowed while the articulation is in a scene. In order to release the tendon, remove and then re-add the articulation to the scene.
+
+
+ Creates an articulation attachment and adds it to the list of children in the parent attachment. Creating an attachment is not allowed while the articulation is in a scene. In order to add the attachment, remove and then re-add the articulation to the scene. The newly-created attachment if creation was successful, otherwise a null pointer.
+
+
+ Fills a user-provided buffer of attachment pointers with the set of attachments. The number of attachments that were filled into the user buffer.
+
+
+ Returns the number of attachments in the tendon. The number of attachments.
+
+
+ Returns the string name of the dynamic type. The string name.
+
+
+ Creates an articulation tendon joint and adds it to the list of children in the parent tendon joint. Creating a tendon joint is not allowed while the articulation is in a scene. In order to add the joint, remove and then re-add the articulation to the scene. The newly-created tendon joint if creation was successful, otherwise a null pointer. - The axis motion must not be configured as PxArticulationMotion::eLOCKED. - The axis cannot be part of a fixed joint, i.e. joint configured as PxArticulationJointType::eFIX.
+
+
+ Fills a user-provided buffer of tendon-joint pointers with the set of tendon joints. The number of tendon joints filled into the user buffer.
+
+
+ Returns the number of tendon joints in the tendon. The number of tendon joints.
+
+
+ Sets the spring rest length of the tendon. The accumulated \"length\" of a fixed tendon is a linear combination of the joint axis positions that the tendon is associated with, scaled by the respective tendon joints' coefficients. As such, when the joint positions of all joints are zero, the accumulated length of a fixed tendon is zero. The spring of the tendon is not exerting any force on the articulation when the rest length is equal to the tendon's accumulated length plus the tendon offset.
+
+
+ Gets the spring rest length of the tendon. The spring rest length of the tendon.
+
+
+ Sets the low and high limit on the length of the tendon. The limits, together with the damping and limit stiffness parameters, act on the accumulated length of the tendon.
+
+
+ Gets the low and high limit on the length of the tendon. Struct with the low and high limit.
+
+
+ Returns the string name of the dynamic type. The string name.
+
+
+ Releases an articulation cache.
+
+
+ Releases the sensor. Releasing a sensor is not allowed while the articulation is in a scene. In order to release a sensor, remove and then re-add the articulation to the scene.
+
+
+ Returns the spatial force in the local frame of the sensor. The spatial force. This call is not allowed while the simulation is running except in a split simulation during [`PxScene::collide`]() and up to #PxScene::advance(), and in PxContactModifyCallback or in contact report callbacks.
+
+
+ Returns the relative pose between this sensor and the body frame of the link that the sensor is attached to. The link body frame is at the center of mass and aligned with the principal axes of inertia, see PxRigidBody::getCMassLocalPose. The transform link body frame -> sensor frame.
+
+
+ Sets the relative pose between this sensor and the body frame of the link that the sensor is attached to. The link body frame is at the center of mass and aligned with the principal axes of inertia, see PxRigidBody::getCMassLocalPose. Setting the sensor relative pose is not allowed while the articulation is in a scene. In order to set the pose, remove and then re-add the articulation to the scene.
+
+
+ Returns the link that this sensor is attached to. A pointer to the link.
+
+
+ Returns the index of this sensor inside the articulation. The return value is only valid for sensors attached to articulations that are in a scene. The low-level index, or 0xFFFFFFFF if the articulation is not in a scene.
+
+
+ Returns the articulation that this sensor is part of. A pointer to the articulation.
+
+
+ Returns the sensor's flags. The current set of flags of the sensor.
+
+
+ Sets a flag of the sensor. Setting the sensor flags is not allowed while the articulation is in a scene. In order to set the flags, remove and then re-add the articulation to the scene.
+
+
+ Returns the string name of the dynamic type. The string name.
+
+
+ Returns the scene which this articulation belongs to. Owner Scene. NULL if not part of a scene.
+
+
+ Sets the solver iteration counts for the articulation. The solver iteration count determines how accurately contacts, drives, and limits are resolved. Setting a higher position iteration count may therefore help in scenarios where the articulation is subject to many constraints; for example, a manipulator articulation with drives and joint limits that is grasping objects, or several such articulations interacting through contacts. Other situations where higher position iterations may improve simulation fidelity are: large mass ratios within the articulation or between the articulation and an object in contact with it; or strong drives in the articulation being used to manipulate a light object. If intersecting bodies are being depenetrated too violently, increase the number of velocity iterations. More velocity iterations will drive the relative exit velocity of the intersecting objects closer to the correct value given the restitution. This call may not be made during simulation.
+
+
+ Returns the solver iteration counts.
+
+
+ Returns true if this articulation is sleeping. When an actor does not move for a period of time, it is no longer simulated in order to save time. This state is called sleeping. However, because the object automatically wakes up when it is either touched by an awake object, or a sleep-affecting property is changed by the user, the entire sleep mechanism should be transparent to the user. An articulation can only go to sleep if all links are ready for sleeping. An articulation is guaranteed to be awake if at least one of the following holds: The wake counter is positive (see [`setWakeCounter`]()). The linear or angular velocity of any link is non-zero. A non-zero force or torque has been applied to the articulation or any of its links. If an articulation is sleeping, the following state is guaranteed: The wake counter is zero. The linear and angular velocity of all links is zero. There is no force update pending. When an articulation gets inserted into a scene, it will be considered asleep if all the points above hold, else it will be treated as awake. If an articulation is asleep after the call to [`PxScene::fetchResults`]() returns, it is guaranteed that the poses of the links were not changed. You can use this information to avoid updating the transforms of associated objects. True if the articulation is sleeping. This call may only be made on articulations that are in a scene, and may not be made during simulation, except in a split simulation in-between [`PxScene::fetchCollision`] and #PxScene::advance.
+
+
+ Sets the mass-normalized energy threshold below which the articulation may go to sleep. The articulation will sleep if the energy of each link is below this threshold. This call may not be made during simulation.
+
+
+ Returns the mass-normalized energy below which the articulation may go to sleep. The energy threshold for sleeping.
+
+
+ Sets the mass-normalized kinetic energy threshold below which the articulation may participate in stabilization. Articulations whose kinetic energy divided by their mass is above this threshold will not participate in stabilization. This value has no effect if PxSceneFlag::eENABLE_STABILIZATION was not enabled on the PxSceneDesc. Default: 0.01 * PxTolerancesScale::speed * PxTolerancesScale::speed This call may not be made during simulation.
+
+
+ Returns the mass-normalized kinetic energy below which the articulation may participate in stabilization. Articulations whose kinetic energy divided by their mass is above this threshold will not participate in stabilization. The energy threshold for participating in stabilization.
+
+
+ Sets the wake counter for the articulation in seconds. - The wake counter value determines the minimum amount of time until the articulation can be put to sleep. - An articulation will not be put to sleep if the energy is above the specified threshold (see [`setSleepThreshold`]()) or if other awake objects are touching it. - Passing in a positive value will wake up the articulation automatically. Default: 0.4s (which corresponds to 20 frames for a time step of 0.02s) This call may not be made during simulation, except in a split simulation in-between [`PxScene::fetchCollision`] and #PxScene::advance.
+
+
+ Returns the wake counter of the articulation in seconds. The wake counter of the articulation in seconds. This call may not be made during simulation, except in a split simulation in-between [`PxScene::fetchCollision`] and #PxScene::advance.
+
+
+ Wakes up the articulation if it is sleeping. - The articulation will get woken up and might cause other touching objects to wake up as well during the next simulation step. - This will set the wake counter of the articulation to the value specified in [`PxSceneDesc::wakeCounterResetValue`]. This call may only be made on articulations that are in a scene, and may not be made during simulation, except in a split simulation in-between [`PxScene::fetchCollision`] and #PxScene::advance.
+
+
+ Forces the articulation to sleep. - The articulation will stay asleep during the next simulation step if not touched by another non-sleeping actor. - This will set any applied force, the velocity, and the wake counter of all bodies in the articulation to zero. This call may not be made during simulation, and may only be made on articulations that are in a scene.
+
+
+ Sets the limit on the magnitude of the linear velocity of the articulation's center of mass. - The limit acts on the linear velocity of the entire articulation. The velocity is calculated from the total momentum and the spatial inertia of the articulation. - The limit only applies to floating-base articulations. - A benefit of the COM velocity limit is that it is evenly applied to the whole articulation, which results in fewer visual artifacts compared to link rigid-body damping or joint-velocity limits. However, these per-link or per-degree-of-freedom limits may still help avoid numerical issues. This call may not be made during simulation.
+
+
+ Gets the limit on the magnitude of the linear velocity of the articulation's center of mass. The maximal linear velocity magnitude.
+
+
+ Sets the limit on the magnitude of the angular velocity at the articulation's center of mass. - The limit acts on the angular velocity of the entire articulation. The velocity is calculated from the total momentum and the spatial inertia of the articulation. - The limit only applies to floating-base articulations. - A benefit of the COM velocity limit is that it is evenly applied to the whole articulation, which results in fewer visual artifacts compared to link rigid-body damping or joint-velocity limits. However, these per-link or per-degree-of-freedom limits may still help avoid numerical issues. This call may not be made during simulation.
+
+
+ Gets the limit on the magnitude of the angular velocity at the articulation's center of mass. The maximal angular velocity magnitude.
+
+
+ Adds a link to the articulation with default attribute values. The new link, or NULL if the link cannot be created. Creating a link is not allowed while the articulation is in a scene. In order to add a link, remove and then re-add the articulation to the scene.
+
+
+ Releases the articulation, and all its links and corresponding joints. Attached sensors and tendons are released automatically when the articulation is released. This call may not be made during simulation.
+
+
+ Returns the number of links in the articulation. The number of links.
+
+
+ Returns the set of links in the articulation in the order that they were added to the articulation using createLink. The number of links written into the buffer.
+
+
+ Returns the number of shapes in the articulation. The number of shapes.
+
+
+ Sets a name string for the articulation that can be retrieved with getName(). This is for debugging and is not used by the SDK. The string is not copied by the SDK, only the pointer is stored.
+
+
+ Returns the name string set with setName(). Name string associated with the articulation.
+
+
+ Returns the axis-aligned bounding box enclosing the articulation. The articulation's bounding box. It is not allowed to use this method while the simulation is running, except in a split simulation during [`PxScene::collide`]() and up to #PxScene::advance(), and in PxContactModifyCallback or in contact report callbacks.
+
+
+ Returns the aggregate the articulation might be a part of. The aggregate the articulation is a part of, or NULL if the articulation does not belong to an aggregate.
+
+
+ Sets flags on the articulation. This call may not be made during simulation.
+
+
+ Raises or clears a flag on the articulation. This call may not be made during simulation.
+
+
+ Returns the articulation's flags. The flags.
+
+
+ Returns the total number of joint degrees-of-freedom (DOFs) of the articulation. - The six DOFs of the base of a floating-base articulation are not included in this count. - Example: Both a fixed-base and a floating-base double-pendulum with two revolute joints will have getDofs() == 2. - The return value is only valid for articulations that are in a scene. The number of joint DOFs, or 0xFFFFFFFF if the articulation is not in a scene.
+
+
+ Creates an articulation cache that can be used to read and write internal articulation data. - When the structure of the articulation changes (e.g. adding a link or sensor) after the cache was created, the cache needs to be released and recreated. - Free the memory allocated for the cache by calling the release() method on the cache. - Caches can only be created by articulations that are in a scene. The cache, or NULL if the articulation is not in a scene.
+
+
+ Returns the size of the articulation cache in bytes. - The size does not include: the user-allocated memory for the coefficient matrix or lambda values; the scratch-related memory/members; and the cache version. See comment in [`PxArticulationCache`]. - The return value is only valid for articulations that are in a scene. The byte size of the cache, or 0xFFFFFFFF if the articulation is not in a scene.
+
+
+ Zeroes all data in the articulation cache, except user-provided and scratch memory, and cache version. This call may only be made on articulations that are in a scene.
+
+
+ Applies the data in the cache to the articulation. This call wakes the articulation if it is sleeping, and the autowake parameter is true (default) or: - a nonzero joint velocity is applied or - a nonzero joint force is applied or - a nonzero root velocity is applied This call may only be made on articulations that are in a scene, and may not be made during simulation.
+
+
+ Copies internal data of the articulation to the cache. This call may only be made on articulations that are in a scene, and may not be made during simulation.
+
+
+ Converts maximal-coordinate joint DOF data to reduced coordinates. - Indexing into the maximal joint DOF data is via the link's low-level index minus 1 (the root link is not included). - The reduced-coordinate data follows the cache indexing convention, see PxArticulationCache::jointVelocity. The articulation must be in a scene.
+
+
+ Converts reduced-coordinate joint DOF data to maximal coordinates. - Indexing into the maximal joint DOF data is via the link's low-level index minus 1 (the root link is not included). - The reduced-coordinate data follows the cache indexing convention, see PxArticulationCache::jointVelocity. The articulation must be in a scene.
+
+
+ Prepares common articulation data based on articulation pose for inverse dynamics calculations. Usage: 1. Set articulation pose (joint positions and base transform) via articulation cache and applyCache(). 1. Call commonInit. 1. Call inverse dynamics computation method. This call may only be made on articulations that are in a scene, and may not be made during simulation.
+
+
+ Computes the joint DOF forces required to counteract gravitational forces for the given articulation pose. - Inputs - Articulation pose (joint positions + base transform). - Outputs - Joint forces to counteract gravity (in cache). - The joint forces returned are determined purely by gravity for the articulation in the current joint and base pose, and joints at rest; i.e. external forces, joint velocities, and joint accelerations are set to zero. Joint drives are also not considered in the computation. - commonInit() must be called before the computation, and after setting the articulation pose via applyCache(). This call may only be made on articulations that are in a scene, and may not be made during simulation.
+
+
+ Computes the joint DOF forces required to counteract Coriolis and centrifugal forces for the given articulation state. - Inputs - Articulation state (joint positions and velocities (in cache), and base transform and spatial velocity). - Outputs - Joint forces to counteract Coriolis and centrifugal forces (in cache). - The joint forces returned are determined purely by the articulation's state; i.e. external forces, gravity, and joint accelerations are set to zero. Joint drives and potential damping terms, such as link angular or linear damping, or joint friction, are also not considered in the computation. - Prior to the computation, update/set the base spatial velocity with PxArticulationCache::rootLinkData and applyCache(). - commonInit() must be called before the computation, and after setting the articulation pose via applyCache(). This call may only be made on articulations that are in a scene, and may not be made during simulation.
+
+
+ Computes the joint DOF forces required to counteract external spatial forces applied to articulation links. - Inputs - External forces on links (in cache), articulation pose (joint positions + base transform). - Outputs - Joint forces to counteract the external forces (in cache). - Only the external spatial forces provided in the cache and the articulation pose are considered in the computation. - The external spatial forces are with respect to the links' centers of mass, and not the actor's origin. - commonInit() must be called before the computation, and after setting the articulation pose via applyCache(). This call may only be made on articulations that are in a scene, and may not be made during simulation.
+
+
+ Computes the joint accelerations for the given articulation state and joint forces. - Inputs - Joint forces (in cache) and articulation state (joint positions and velocities (in cache), and base transform and spatial velocity). - Outputs - Joint accelerations (in cache). - The computation includes Coriolis terms and gravity. However, joint drives and potential damping terms are not considered in the computation (for example, linear link damping or joint friction). - Prior to the computation, update/set the base spatial velocity with PxArticulationCache::rootLinkData and applyCache(). - commonInit() must be called before the computation, and after setting the articulation pose via applyCache(). This call may only be made on articulations that are in a scene, and may not be made during simulation.
+
+
+ Computes the joint forces for the given articulation state and joint accelerations, not considering gravity. - Inputs - Joint accelerations (in cache) and articulation state (joint positions and velocities (in cache), and base transform and spatial velocity). - Outputs - Joint forces (in cache). - The computation includes Coriolis terms. However, joint drives and potential damping terms are not considered in the computation (for example, linear link damping or joint friction). - Prior to the computation, update/set the base spatial velocity with PxArticulationCache::rootLinkData and applyCache(). - commonInit() must be called before the computation, and after setting the articulation pose via applyCache(). This call may only be made on articulations that are in a scene, and may not be made during simulation.
+
+
+ Compute the dense Jacobian for the articulation in world space, including the DOFs of a potentially floating base. This computes the dense representation of an inherently sparse matrix. Multiplication with this matrix maps joint space velocities to world-space linear and angular (i.e. spatial) velocities of the centers of mass of the links. This call may only be made on articulations that are in a scene, and may not be made during simulation.
+
+
+ Computes the coefficient matrix for contact forces. - The matrix dimension is getCoefficientMatrixSize() = getDofs() * getNbLoopJoints(), and the DOF (column) indexing follows the internal DOF order, see PxArticulationCache::jointVelocity. - Each column in the matrix is the joint forces effected by a contact based on impulse strength 1. - The user must allocate memory for PxArticulationCache::coefficientMatrix where the required size of the PxReal array is equal to getCoefficientMatrixSize(). - commonInit() must be called before the computation, and after setting the articulation pose via applyCache(). This call may only be made on articulations that are in a scene, and may not be made during simulation.
+
+
+ Computes the lambda values when the test impulse is 1. - The user must allocate memory for PxArticulationCache::lambda where the required size of the PxReal array is equal to getNbLoopJoints(). - commonInit() must be called before the computation, and after setting the articulation pose via applyCache(). True if convergence was achieved within maxIter; False if convergence was not achieved or the operation failed otherwise. This call may only be made on articulations that are in a scene, and may not be made during simulation.
+
+
+ Compute the joint-space inertia matrix that maps joint accelerations to joint forces: forces = M * accelerations. - Inputs - Articulation pose (joint positions and base transform). - Outputs - Mass matrix (in cache). commonInit() must be called before the computation, and after setting the articulation pose via applyCache(). This call may only be made on articulations that are in a scene, and may not be made during simulation.
+
+
+ Adds a loop joint to the articulation system for inverse dynamics. This call may not be made during simulation.
+
+
+ Removes a loop joint from the articulation for inverse dynamics. This call may not be made during simulation.
+
+
+ Returns the number of loop joints in the articulation for inverse dynamics. The number of loop joints.
+
+
+ Returns the set of loop constraints (i.e. joints) in the articulation. The number of constraints written into the buffer.
+
+
+ Returns the required size of the coefficient matrix in the articulation. Size of the coefficient matrix (equal to getDofs() * getNbLoopJoints()). This call may only be made on articulations that are in a scene.
+
+
+ Sets the root link transform (world to actor frame). - For performance, prefer PxArticulationCache::rootLinkData to set the root link transform in a batch articulation state update. - Use updateKinematic() after all state updates to the articulation via non-cache API such as this method, in order to update link states for the next simulation frame or querying. This call may not be made during simulation.
+
+
+ Returns the root link transform (world to actor frame). For performance, prefer PxArticulationCache::rootLinkData to get the root link transform in a batch query. The root link transform. This call is not allowed while the simulation is running except in a split simulation during [`PxScene::collide`]() and up to #PxScene::advance(), and in PxContactModifyCallback or in contact report callbacks.
+
+
+ Sets the root link linear center-of-mass velocity. - The linear velocity is with respect to the link's center of mass and not the actor frame origin. - For performance, prefer PxArticulationCache::rootLinkData to set the root link velocity in a batch articulation state update. - The articulation is woken up if the input velocity is nonzero (ignoring autowake) and the articulation is in a scene. - Use updateKinematic() after all state updates to the articulation via non-cache API such as this method, in order to update link states for the next simulation frame or querying. This call may not be made during simulation, except in a split simulation in-between [`PxScene::fetchCollision`] and #PxScene::advance.
+
+
+ Gets the root link center-of-mass linear velocity. - The linear velocity is with respect to the link's center of mass and not the actor frame origin. - For performance, prefer PxArticulationCache::rootLinkData to get the root link velocity in a batch query. The root link center-of-mass linear velocity. This call is not allowed while the simulation is running except in a split simulation during [`PxScene::collide`]() and up to #PxScene::advance(), and in PxContactModifyCallback or in contact report callbacks.
+
+
+ Sets the root link angular velocity. - For performance, prefer PxArticulationCache::rootLinkData to set the root link velocity in a batch articulation state update. - The articulation is woken up if the input velocity is nonzero (ignoring autowake) and the articulation is in a scene. - Use updateKinematic() after all state updates to the articulation via non-cache API such as this method, in order to update link states for the next simulation frame or querying. This call may not be made during simulation, except in a split simulation in-between [`PxScene::fetchCollision`] and #PxScene::advance.
+
+
+ Gets the root link angular velocity. For performance, prefer PxArticulationCache::rootLinkData to get the root link velocity in a batch query. The root link angular velocity. This call is not allowed while the simulation is running except in a split simulation during [`PxScene::collide`]() and up to #PxScene::advance(), and in PxContactModifyCallback or in contact report callbacks.
+
+
+ Returns the (classical) link acceleration in world space for the given low-level link index. - The returned acceleration is not a spatial, but a classical, i.e. body-fixed acceleration (https://en.wikipedia.org/wiki/Spatial_acceleration). - The (linear) acceleration is with respect to the link's center of mass and not the actor frame origin. The link's center-of-mass classical acceleration, or 0 if the call is made before the articulation participated in a first simulation step. This call may only be made on articulations that are in a scene, and it is not allowed to use this method while the simulation is running except in a split simulation during [`PxScene::collide`]() and up to #PxScene::advance(), and in PxContactModifyCallback or in contact report callbacks.
+
+
+ Returns the GPU articulation index. The GPU index, or 0xFFFFFFFF if the articulation is not in a scene or PxSceneFlag::eSUPPRESS_READBACK is not set.
+
+
+ Creates a spatial tendon to attach to the articulation with default attribute values. The new spatial tendon. Creating a spatial tendon is not allowed while the articulation is in a scene. In order to add the tendon, remove and then re-add the articulation to the scene.
+
+
+ Creates a fixed tendon to attach to the articulation with default attribute values. The new fixed tendon. Creating a fixed tendon is not allowed while the articulation is in a scene. In order to add the tendon, remove and then re-add the articulation to the scene.
+
+
+ Creates a force sensor attached to a link of the articulation. The new sensor. Creating a sensor is not allowed while the articulation is in a scene. In order to add the sensor, remove and then re-add the articulation to the scene.
+
+
+ Returns the spatial tendons attached to the articulation. The order of the tendons in the buffer is not necessarily identical to the order in which the tendons were added to the articulation. The number of tendons written into the buffer.
+
+
+ Returns the number of spatial tendons in the articulation. The number of tendons.
+
+
+ Returns the fixed tendons attached to the articulation. The order of the tendons in the buffer is not necessarily identical to the order in which the tendons were added to the articulation. The number of tendons written into the buffer.
+
+
+ Returns the number of fixed tendons in the articulation. The number of tendons.
+
+
+ Returns the sensors attached to the articulation. The order of the sensors in the buffer is not necessarily identical to the order in which the sensors were added to the articulation. The number of sensors written into the buffer.
+
+
+ Returns the number of sensors in the articulation. The number of sensors.
+
+
+ Update link velocities and/or positions in the articulation. For performance, prefer the PxArticulationCache API that performs batch articulation state updates. If the application updates the root state (position and velocity) or joint state via any combination of the non-cache API calls - setRootGlobalPose(), setRootLinearVelocity(), setRootAngularVelocity() - PxArticulationJointReducedCoordinate::setJointPosition(), PxArticulationJointReducedCoordinate::setJointVelocity() the application needs to call this method after the state setting in order to update the link states for the next simulation frame or querying. Use - PxArticulationKinematicFlag::ePOSITION after any changes to the articulation root or joint positions using non-cache API calls. Updates links' positions and velocities. - PxArticulationKinematicFlag::eVELOCITY after velocity-only changes to the articulation root or joints using non-cache API calls. Updates links' velocities only. This call may only be made on articulations that are in a scene, and may not be made during simulation.
+
+
+ Gets the parent articulation link of this joint. The parent link.
+
+
+ Sets the joint pose in the parent link actor frame. This call is not allowed while the simulation is running.
+
+
+ Gets the joint pose in the parent link actor frame. The joint pose.
+
+
+ Gets the child articulation link of this joint. The child link.
+
+
+ Sets the joint pose in the child link actor frame. This call is not allowed while the simulation is running.
+
+
+ Gets the joint pose in the child link actor frame. The joint pose.
+
+
+ Sets the joint type (e.g. revolute). Setting the joint type is not allowed while the articulation is in a scene. In order to set the joint type, remove and then re-add the articulation to the scene.
+
+
+ Gets the joint type. The joint type.
+
+
+ Sets the joint motion for a given axis. Setting the motion of joint axes is not allowed while the articulation is in a scene. In order to set the motion, remove and then re-add the articulation to the scene.
+
+
+ Returns the joint motion for the given axis. The joint motion of the given axis.
+
+
+ Sets the joint limits for a given axis. - The motion of the corresponding axis should be set to PxArticulationMotion::eLIMITED in order for the limits to be enforced. - The lower limit should be strictly smaller than the higher limit. If the limits should be equal, use PxArticulationMotion::eLOCKED and an appropriate offset in the parent/child joint frames. This call is not allowed while the simulation is running. For spherical joints, limit.min and limit.max must both be in range [-Pi, Pi].
+
+
+ Returns the joint limits for a given axis. The joint limits.
+
+
+ Configures a joint drive for the given axis. See PxArticulationDrive for parameter details; and the manual for further information, and the drives' implicit spring-damper (i.e. PD control) implementation in particular. This call is not allowed while the simulation is running.
+
+
+ Gets the joint drive configuration for the given axis. The drive parameters.
+
+
+ Sets the joint drive position target for the given axis. The target units are linear units (equivalent to scene units) for a translational axis, or rad for a rotational axis. This call is not allowed while the simulation is running. For spherical joints, target must be in range [-Pi, Pi]. The target is specified in the parent frame of the joint. If Gp, Gc are the parent and child actor poses in the world frame and Lp, Lc are the parent and child joint frames expressed in the parent and child actor frames then the joint will drive the parent and child links to poses that obey Gp * Lp * J = Gc * Lc. For joints restricted to angular motion, J has the form PxTranfsorm(PxVec3(PxZero), PxExp(PxVec3(twistTarget, swing1Target, swing2Target))). For joints restricted to linear motion, J has the form PxTransform(PxVec3(XTarget, YTarget, ZTarget), PxQuat(PxIdentity)). For spherical joints with more than 1 degree of freedom, the joint target angles taken together can collectively represent a rotation of greater than Pi around a vector. When this happens the rotation that matches the joint drive target is not the shortest path rotation. The joint pose J that is the outcome after driving to the target pose will always be the equivalent of the shortest path rotation.
+
+
+ Returns the joint drive position target for the given axis. The target position.
+
+
+ Sets the joint drive velocity target for the given axis. The target units are linear units (equivalent to scene units) per second for a translational axis, or radians per second for a rotational axis. This call is not allowed while the simulation is running.
+
+
+ Returns the joint drive velocity target for the given axis. The target velocity.
+
+
+ Sets the joint armature for the given axis. - The armature is directly added to the joint-space spatial inertia of the corresponding axis. - The armature is in mass units for a prismatic (i.e. linear) joint, and in mass units * (scene linear units)^2 for a rotational joint. This call is not allowed while the simulation is running.
+
+
+ Gets the joint armature for the given axis. The armature set on the given axis.
+
+
+ Sets the joint friction coefficient, which applies to all joint axes. - The joint friction is unitless and relates the magnitude of the spatial force [F_trans, T_trans] transmitted from parent to child link to the maximal friction force F_resist that may be applied by the solver to resist joint motion, per axis; i.e. |F_resist| < coefficient * (|F_trans| + |T_trans|), where F_resist may refer to a linear force or torque depending on the joint axis. - The simulated friction effect is therefore similar to static and Coulomb friction. In order to simulate dynamic joint friction, use a joint drive with zero stiffness and zero velocity target, and an appropriately dimensioned damping parameter. This call is not allowed while the simulation is running.
+
+
+ Gets the joint friction coefficient. The joint friction coefficient.
+
+
+ Sets the maximal joint velocity enforced for all axes. - The solver will apply appropriate joint-space impulses in order to enforce the per-axis joint-velocity limit. - The velocity units are linear units (equivalent to scene units) per second for a translational axis, or radians per second for a rotational axis. This call is not allowed while the simulation is running.
+
+
+ Gets the maximal joint velocity enforced for all axes. The maximal per-axis joint velocity.
+
+
+ Sets the joint position for the given axis. - For performance, prefer PxArticulationCache::jointPosition to set joint positions in a batch articulation state update. - Use PxArticulationReducedCoordinate::updateKinematic after all state updates to the articulation via non-cache API such as this method, in order to update link states for the next simulation frame or querying. This call is not allowed while the simulation is running. For spherical joints, jointPos must be in range [-Pi, Pi]. Joint position is specified in the parent frame of the joint. If Gp, Gc are the parent and child actor poses in the world frame and Lp, Lc are the parent and child joint frames expressed in the parent and child actor frames then the parent and child links will be given poses that obey Gp * Lp * J = Gc * Lc with J denoting the joint pose. For joints restricted to angular motion, J has the form PxTranfsorm(PxVec3(PxZero), PxExp(PxVec3(twistPos, swing1Pos, swing2Pos))). For joints restricted to linear motion, J has the form PxTransform(PxVec3(xPos, yPos, zPos), PxQuat(PxIdentity)). For spherical joints with more than 1 degree of freedom, the input joint positions taken together can collectively represent a rotation of greater than Pi around a vector. When this happens the rotation that matches the joint positions is not the shortest path rotation. The joint pose J that is the outcome of setting and applying the joint positions will always be the equivalent of the shortest path rotation.
+
+
+ Gets the joint position for the given axis, i.e. joint degree of freedom (DOF). For performance, prefer PxArticulationCache::jointPosition to get joint positions in a batch query. The joint position in linear units (equivalent to scene units) for a translational axis, or radians for a rotational axis. This call is not allowed while the simulation is running except in a split simulation during [`PxScene::collide`]() and up to #PxScene::advance(), and in PxContactModifyCallback or in contact report callbacks.
+
+
+ Sets the joint velocity for the given axis. - For performance, prefer PxArticulationCache::jointVelocity to set joint velocities in a batch articulation state update. - Use PxArticulationReducedCoordinate::updateKinematic after all state updates to the articulation via non-cache API such as this method, in order to update link states for the next simulation frame or querying. This call is not allowed while the simulation is running.
+
+
+ Gets the joint velocity for the given axis. For performance, prefer PxArticulationCache::jointVelocity to get joint velocities in a batch query. The joint velocity in linear units (equivalent to scene units) per second for a translational axis, or radians per second for a rotational axis. This call is not allowed while the simulation is running except in a split simulation during [`PxScene::collide`]() and up to #PxScene::advance(), and in PxContactModifyCallback or in contact report callbacks.
+
+
+ Returns the string name of the dynamic type. The string name.
+
+
+ Decrements the reference count of a shape and releases it if the new reference count is zero. Note that in releases prior to PhysX 3.3 this method did not have reference counting semantics and was used to destroy a shape created with PxActor::createShape(). In PhysX 3.3 and above, this usage is deprecated, instead, use PxRigidActor::detachShape() to detach a shape from an actor. If the shape to be detached was created with PxActor::createShape(), the actor holds the only counted reference, and so when the shape is detached it will also be destroyed.
+
+
+ Adjust the geometry of the shape. The type of the passed in geometry must match the geometry type of the shape. It is not allowed to change the geometry type of a shape. This function does not guarantee correct/continuous behavior when objects are resting on top of old or new geometry.
+
+
+ Retrieve a reference to the shape's geometry. The returned reference has the same lifetime as the PxShape it comes from. Reference to internal PxGeometry object.
+
+
+ Retrieves the actor which this shape is associated with. The actor this shape is associated with, if it is an exclusive shape, else NULL
+
+
+ Sets the pose of the shape in actor space, i.e. relative to the actors to which they are attached. This transformation is identity by default. The local pose is an attribute of the shape, and so will apply to all actors to which the shape is attached. Sleeping: Does NOT wake the associated actor up automatically. Note: Does not automatically update the inertia properties of the owning actor (if applicable); use the PhysX extensions method [`PxRigidBodyExt::updateMassAndInertia`]() to do this. Default: the identity transform
+
+
+ Retrieves the pose of the shape in actor space, i.e. relative to the actor they are owned by. This transformation is identity by default. Pose of shape relative to the actor's frame.
+
+
+ Sets the user definable collision filter data. Sleeping: Does wake up the actor if the filter data change causes a formerly suppressed collision pair to be enabled. Default: (0,0,0,0)
+
+
+ Retrieves the shape's collision filter data.
+
+
+ Sets the user definable query filter data. Default: (0,0,0,0)
+
+
+ Retrieves the shape's Query filter data.
+
+
+ Assigns material(s) to the shape. Will remove existing materials from the shape. Sleeping: Does NOT wake the associated actor up automatically.
+
+
+ Returns the number of materials assigned to the shape. You can use [`getMaterials`]() to retrieve the material pointers. Number of materials associated with this shape.
+
+
+ Retrieve all the material pointers associated with the shape. You can retrieve the number of material pointers by calling [`getNbMaterials`]() Note: The returned data may contain invalid pointers if you release materials using [`PxMaterial::release`](). Number of material pointers written to the buffer.
+
+
+ Retrieve material from given triangle index. The input index is the internal triangle index as used inside the SDK. This is the index returned to users by various SDK functions such as raycasts. This function is only useful for triangle meshes or heightfields, which have per-triangle materials. For other shapes or SDF triangle meshes, the function returns the single material associated with the shape, regardless of the index. Material from input triangle If faceIndex value of 0xFFFFffff is passed as an input for mesh and heightfield shapes, this function will issue a warning and return NULL. Scene queries set the value of PxQueryHit::faceIndex to 0xFFFFffff whenever it is undefined or does not apply.
+
+
+ Sets the contact offset. Shapes whose distance is less than the sum of their contactOffset values will generate contacts. The contact offset must be positive and greater than the rest offset. Having a contactOffset greater than than the restOffset allows the collision detection system to predictively enforce the contact constraint even when the objects are slightly separated. This prevents jitter that would occur if the constraint were enforced only when shapes were within the rest distance. Default: 0.02f * PxTolerancesScale::length Sleeping: Does NOT wake the associated actor up automatically.
+
+
+ Retrieves the contact offset. The contact offset of the shape.
+
+
+ Sets the rest offset. Two shapes will come to rest at a distance equal to the sum of their restOffset values. If the restOffset is 0, they should converge to touching exactly. Having a restOffset greater than zero is useful to have objects slide smoothly, so that they do not get hung up on irregularities of each others' surfaces. Default: 0.0f Sleeping: Does NOT wake the associated actor up automatically.
+
+
+ Retrieves the rest offset. The rest offset of the shape.
+
+
+ Sets the density used to interact with fluids. To be physically accurate, the density of a rigid body should be computed as its mass divided by its volume. To simplify tuning the interaction of fluid and rigid bodies, the density for fluid can differ from the real density. This allows to create floating bodies, even if they are supposed to sink with their mass and volume. Default: 800.0f
+
+
+ Retrieves the density used to interact with fluids. The density of the body when interacting with fluid.
+
+
+ Sets torsional patch radius. This defines the radius of the contact patch used to apply torsional friction. If the radius is 0, no torsional friction will be applied. If the radius is > 0, some torsional friction will be applied. This is proportional to the penetration depth so, if the shapes are separated or penetration is zero, no torsional friction will be applied. It is used to approximate rotational friction introduced by the compression of contacting surfaces. Default: 0.0
+
+
+ Gets torsional patch radius. This defines the radius of the contact patch used to apply torsional friction. If the radius is 0, no torsional friction will be applied. If the radius is > 0, some torsional friction will be applied. This is proportional to the penetration depth so, if the shapes are separated or penetration is zero, no torsional friction will be applied. It is used to approximate rotational friction introduced by the compression of contacting surfaces. The torsional patch radius of the shape.
+
+
+ Sets minimum torsional patch radius. This defines the minimum radius of the contact patch used to apply torsional friction. If the radius is 0, the amount of torsional friction that will be applied will be entirely dependent on the value of torsionalPatchRadius. If the radius is > 0, some torsional friction will be applied regardless of the value of torsionalPatchRadius or the amount of penetration. Default: 0.0
+
+
+ Gets minimum torsional patch radius. This defines the minimum radius of the contact patch used to apply torsional friction. If the radius is 0, the amount of torsional friction that will be applied will be entirely dependent on the value of torsionalPatchRadius. If the radius is > 0, some torsional friction will be applied regardless of the value of torsionalPatchRadius or the amount of penetration. The minimum torsional patch radius of the shape.
+
+
+ Sets shape flags Sleeping: Does NOT wake the associated actor up automatically. Default: PxShapeFlag::eVISUALIZATION | PxShapeFlag::eSIMULATION_SHAPE | PxShapeFlag::eSCENE_QUERY_SHAPE
+
+
+ Sets shape flags
+
+
+ Retrieves shape flags. The values of the shape flags.
+
+
+ Returns true if the shape is exclusive to an actor.
+
+
+ Sets a name string for the object that can be retrieved with [`getName`](). This is for debugging and is not used by the SDK. The string is not copied by the SDK, only the pointer is stored. Default: NULL
+
+
+ retrieves the name string set with setName(). The name associated with the shape.
+
+
+ constructor to set properties
+
+
+ Retrieves the world space pose of the shape. Global pose of shape.
+
+
+ Raycast test against the shape. Number of hits between the ray and the shape
+
+
+ Test overlap between the shape and a geometry object True if the shape overlaps the geometry object
+
+
+ Sweep a geometry object against the shape. Currently only box, sphere, capsule and convex mesh shapes are supported, i.e. the swept geometry object must be one of those types. True if the swept geometry object hits the shape
+
+
+ Retrieves the axis aligned bounding box enclosing the shape. The shape's bounding box.
+
+
+ Sets the pose of the center of mass relative to the actor. Changing this transform will not move the actor in the world! Setting an unrealistic center of mass which is a long way from the body can make it difficult for the SDK to solve constraints. Perhaps leading to instability and jittering bodies. Default: the identity transform
+
+
+ Retrieves the center of mass pose relative to the actor frame. The center of mass pose relative to the actor frame.
+
+
+ Sets the mass of a dynamic actor. The mass must be non-negative. setMass() does not update the inertial properties of the body, to change the inertia tensor use setMassSpaceInertiaTensor() or the PhysX extensions method [`PxRigidBodyExt::updateMassAndInertia`](). A value of 0 is interpreted as infinite mass. Values of 0 are not permitted for instances of PxArticulationLink but are permitted for instances of PxRigidDynamic. Default: 1.0 Sleeping: Does NOT wake the actor up automatically.
+
+
+ Retrieves the mass of the actor. A value of 0 is interpreted as infinite mass. The mass of this actor.
+
+
+ Retrieves the inverse mass of the actor. The inverse mass of this actor.
+
+
+ Sets the inertia tensor, using a parameter specified in mass space coordinates. Note that such matrices are diagonal -- the passed vector is the diagonal. If you have a non diagonal world/actor space inertia tensor(3x3 matrix). Then you need to diagonalize it and set an appropriate mass space transform. See [`setCMassLocalPose`](). The inertia tensor elements must be non-negative. A value of 0 in an element is interpreted as infinite inertia along that axis. Values of 0 are not permitted for instances of PxArticulationLink but are permitted for instances of PxRigidDynamic. Default: (1.0, 1.0, 1.0) Sleeping: Does NOT wake the actor up automatically.
+
+
+ Retrieves the diagonal inertia tensor of the actor relative to the mass coordinate frame. This method retrieves a mass frame inertia vector. The mass space inertia tensor of this actor. A value of 0 in an element is interpreted as infinite inertia along that axis.
+
+
+ Retrieves the diagonal inverse inertia tensor of the actor relative to the mass coordinate frame. This method retrieves a mass frame inverse inertia vector. A value of 0 in an element is interpreted as infinite inertia along that axis. The mass space inverse inertia tensor of this actor.
+
+
+ Sets the linear damping coefficient. Zero represents no damping. The damping coefficient must be nonnegative. Default: 0.0
+
+
+ Retrieves the linear damping coefficient. The linear damping coefficient associated with this actor.
+
+
+ Sets the angular damping coefficient. Zero represents no damping. The angular damping coefficient must be nonnegative. Default: 0.05
+
+
+ Retrieves the angular damping coefficient. The angular damping coefficient associated with this actor.
+
+
+ Retrieves the linear velocity of an actor. It is not allowed to use this method while the simulation is running (except during PxScene::collide(), in PxContactModifyCallback or in contact report callbacks). The linear velocity of the actor.
+
+
+ Retrieves the angular velocity of the actor. It is not allowed to use this method while the simulation is running (except during PxScene::collide(), in PxContactModifyCallback or in contact report callbacks). The angular velocity of the actor.
+
+
+ Lets you set the maximum linear velocity permitted for this actor. With this function, you can set the maximum linear velocity permitted for this rigid body. Higher angular velocities are clamped to this value. Note: The angular velocity is clamped to the set value before the solver, which means that the limit may still be momentarily exceeded. Default: PX_MAX_F32
+
+
+ Retrieves the maximum angular velocity permitted for this actor. The maximum allowed angular velocity for this actor.
+
+
+ Lets you set the maximum angular velocity permitted for this actor. For various internal computations, very quickly rotating actors introduce error into the simulation, which leads to undesired results. With this function, you can set the maximum angular velocity permitted for this rigid body. Higher angular velocities are clamped to this value. Note: The angular velocity is clamped to the set value before the solver, which means that the limit may still be momentarily exceeded. Default: 100.0
+
+
+ Retrieves the maximum angular velocity permitted for this actor. The maximum allowed angular velocity for this actor.
+
+
+ Applies a force (or impulse) defined in the global coordinate frame to the actor at its center of mass. This will not induce a torque . ::PxForceMode determines if the force is to be conventional or impulsive. Each actor has an acceleration and a velocity change accumulator which are directly modified using the modes PxForceMode::eACCELERATION and PxForceMode::eVELOCITY_CHANGE respectively. The modes PxForceMode::eFORCE and PxForceMode::eIMPULSE also modify these same accumulators and are just short hand for multiplying the vector parameter by inverse mass and then using PxForceMode::eACCELERATION and PxForceMode::eVELOCITY_CHANGE respectively. It is invalid to use this method if the actor has not been added to a scene already or if PxActorFlag::eDISABLE_SIMULATION is set. The force modes PxForceMode::eIMPULSE and PxForceMode::eVELOCITY_CHANGE can not be applied to articulation links. if this is called on an articulation link, only the link is updated, not the entire articulation. see [`PxRigidBodyExt::computeVelocityDeltaFromImpulse`] for details of how to compute the change in linear velocity that will arise from the application of an impulsive force, where an impulsive force is applied force multiplied by a timestep. Sleeping: This call wakes the actor if it is sleeping, and the autowake parameter is true (default) or the force is non-zero.
+
+
+ Applies an impulsive torque defined in the global coordinate frame to the actor. ::PxForceMode determines if the torque is to be conventional or impulsive. Each actor has an angular acceleration and an angular velocity change accumulator which are directly modified using the modes PxForceMode::eACCELERATION and PxForceMode::eVELOCITY_CHANGE respectively. The modes PxForceMode::eFORCE and PxForceMode::eIMPULSE also modify these same accumulators and are just short hand for multiplying the vector parameter by inverse inertia and then using PxForceMode::eACCELERATION and PxForceMode::eVELOCITY_CHANGE respectively. It is invalid to use this method if the actor has not been added to a scene already or if PxActorFlag::eDISABLE_SIMULATION is set. The force modes PxForceMode::eIMPULSE and PxForceMode::eVELOCITY_CHANGE can not be applied to articulation links. if this called on an articulation link, only the link is updated, not the entire articulation. see [`PxRigidBodyExt::computeVelocityDeltaFromImpulse`] for details of how to compute the change in angular velocity that will arise from the application of an impulsive torque, where an impulsive torque is an applied torque multiplied by a timestep. Sleeping: This call wakes the actor if it is sleeping, and the autowake parameter is true (default) or the torque is non-zero.
+
+
+ Clears the accumulated forces (sets the accumulated force back to zero). Each actor has an acceleration and a velocity change accumulator which are directly modified using the modes PxForceMode::eACCELERATION and PxForceMode::eVELOCITY_CHANGE respectively. The modes PxForceMode::eFORCE and PxForceMode::eIMPULSE also modify these same accumulators (see PxRigidBody::addForce() for details); therefore the effect of calling clearForce(PxForceMode::eFORCE) is equivalent to calling clearForce(PxForceMode::eACCELERATION), and the effect of calling clearForce(PxForceMode::eIMPULSE) is equivalent to calling clearForce(PxForceMode::eVELOCITY_CHANGE). ::PxForceMode determines if the cleared force is to be conventional or impulsive. The force modes PxForceMode::eIMPULSE and PxForceMode::eVELOCITY_CHANGE can not be applied to articulation links. It is invalid to use this method if the actor has not been added to a scene already or if PxActorFlag::eDISABLE_SIMULATION is set.
+
+
+ Clears the impulsive torque defined in the global coordinate frame to the actor. ::PxForceMode determines if the cleared torque is to be conventional or impulsive. Each actor has an angular acceleration and a velocity change accumulator which are directly modified using the modes PxForceMode::eACCELERATION and PxForceMode::eVELOCITY_CHANGE respectively. The modes PxForceMode::eFORCE and PxForceMode::eIMPULSE also modify these same accumulators (see PxRigidBody::addTorque() for details); therefore the effect of calling clearTorque(PxForceMode::eFORCE) is equivalent to calling clearTorque(PxForceMode::eACCELERATION), and the effect of calling clearTorque(PxForceMode::eIMPULSE) is equivalent to calling clearTorque(PxForceMode::eVELOCITY_CHANGE). The force modes PxForceMode::eIMPULSE and PxForceMode::eVELOCITY_CHANGE can not be applied to articulation links. It is invalid to use this method if the actor has not been added to a scene already or if PxActorFlag::eDISABLE_SIMULATION is set.
+
+
+ Sets the impulsive force and torque defined in the global coordinate frame to the actor. ::PxForceMode determines if the cleared torque is to be conventional or impulsive. The force modes PxForceMode::eIMPULSE and PxForceMode::eVELOCITY_CHANGE can not be applied to articulation links. It is invalid to use this method if the actor has not been added to a scene already or if PxActorFlag::eDISABLE_SIMULATION is set.
+
+
+ Raises or clears a particular rigid body flag. See the list of flags [`PxRigidBodyFlag`] Default: no flags are set Sleeping: Does NOT wake the actor up automatically.
+
+
+ Reads the PxRigidBody flags. See the list of flags [`PxRigidBodyFlag`] The values of the PxRigidBody flags.
+
+
+ Sets the CCD minimum advance coefficient. The CCD minimum advance coefficient is a value in the range [0, 1] that is used to control the minimum amount of time a body is integrated when it has a CCD contact. The actual minimum amount of time that is integrated depends on various properties, including the relative speed and collision shapes of the bodies involved in the contact. From these properties, a numeric value is calculated that determines the maximum distance (and therefore maximum time) which these bodies could be integrated forwards that would ensure that these bodies did not pass through each-other. This value is then scaled by CCD minimum advance coefficient to determine the amount of time that will be consumed in the CCD pass. Things to consider: A large value (approaching 1) ensures that the objects will always advance some time. However, larger values increase the chances of objects gently drifting through each-other in scenes which the constraint solver can't converge, e.g. scenes where an object is being dragged through a wall with a constraint. A value of 0 ensures that the pair of objects stop at the exact time-of-impact and will not gently drift through each-other. However, with very small/thin objects initially in contact, this can lead to a large amount of time being dropped and increases the chances of jamming. Jamming occurs when the an object is persistently in contact with an object such that the time-of-impact is 0, which results in no time being advanced for those objects in that CCD pass. The chances of jamming can be reduced by increasing the number of CCD mass
+
+
+ Gets the CCD minimum advance coefficient. The value of the CCD min advance coefficient.
+
+
+ Sets the maximum depenetration velocity permitted to be introduced by the solver. This value controls how much velocity the solver can introduce to correct for penetrations in contacts.
+
+
+ Returns the maximum depenetration velocity the solver is permitted to introduced. This value controls how much velocity the solver can introduce to correct for penetrations in contacts. The maximum penetration bias applied by the solver.
+
+
+ Sets a limit on the impulse that may be applied at a contact. The maximum impulse at a contact between two dynamic or kinematic bodies will be the minimum of the two limit values. For a collision between a static and a dynamic body, the impulse is limited by the value for the dynamic body.
+
+
+ Returns the maximum impulse that may be applied at a contact. The maximum impulse that may be applied at a contact
+
+
+ Sets a distance scale whereby the angular influence of a contact on the normal constraint in a contact is zeroed if normal.cross(offset) falls below this tolerance. Rather than acting as an absolute value, this tolerance is scaled by the ratio rXn.dot(angVel)/normal.dot(linVel) such that contacts that have relatively larger angular velocity than linear normal velocity (e.g. rolling wheels) achieve larger slop values as the angular velocity increases.
+
+
+ Returns the contact slop coefficient. The contact slop coefficient.
+
+
+ Returns the island node index The island node index.
+
+
+ Computation of mass properties for a rigid body actor To simulate a dynamic rigid actor, the SDK needs a mass and an inertia tensor. This method offers functionality to compute the necessary mass and inertia properties based on the shapes declared in the PxRigidBody descriptor and some additionally specified parameters. For each shape, the shape geometry, the shape positioning within the actor and the specified shape density are used to compute the body's mass and inertia properties. Shapes without PxShapeFlag::eSIMULATION_SHAPE set are ignored unless includeNonSimShapes is true. Shapes with plane, triangle mesh or heightfield geometry and PxShapeFlag::eSIMULATION_SHAPE set are not allowed for PxRigidBody collision. This method will set the mass, center of mass, and inertia tensor if no collision shapes are found, the inertia tensor is set to (1,1,1) and the mass to 1 if massLocalPose is non-NULL, the rigid body's center of mass parameter will be set to the user provided value (massLocalPose) and the inertia tensor will be resolved at that point. If all shapes of the actor have the same density then the overloaded method updateMassAndInertia() with a single density parameter can be used instead. Boolean. True on success else false.
+
+
+ Computation of mass properties for a rigid body actor See previous method for details. Boolean. True on success else false.
+
+
+ Computation of mass properties for a rigid body actor This method sets the mass, inertia and center of mass of a rigid body. The mass is set to the sum of all user-supplied shape mass values, and the inertia and center of mass are computed according to the rigid body's shapes and the per shape mass input values. If no collision shapes are found, the inertia tensor is set to (1,1,1) If a single mass value should be used for the actor as a whole then the overloaded method setMassAndUpdateInertia() with a single mass parameter can be used instead. Boolean. True on success else false.
+
+
+ Computation of mass properties for a rigid body actor This method sets the mass, inertia and center of mass of a rigid body. The mass is set to the user-supplied value, and the inertia and center of mass are computed according to the rigid body's shapes and the input mass. If no collision shapes are found, the inertia tensor is set to (1,1,1) Boolean. True on success else false.
+
+
+ Applies a force (or impulse) defined in the global coordinate frame, acting at a particular point in global coordinates, to the actor. Note that if the force does not act along the center of mass of the actor, this will also add the corresponding torque. Because forces are reset at the end of every timestep, you can maintain a total external force on an object by calling this once every frame. if this call is used to apply a force or impulse to an articulation link, only the link is updated, not the entire articulation ::PxForceMode determines if the force is to be conventional or impulsive. Only eFORCE and eIMPULSE are supported, as the force required to produce a given velocity change or acceleration is underdetermined given only the desired change at a given point. Sleeping: This call wakes the actor if it is sleeping and the wakeup parameter is true (default).
+
+
+ Applies a force (or impulse) defined in the global coordinate frame, acting at a particular point in local coordinates, to the actor. Note that if the force does not act along the center of mass of the actor, this will also add the corresponding torque. Because forces are reset at the end of every timestep, you can maintain a total external force on an object by calling this once every frame. if this call is used to apply a force or impulse to an articulation link, only the link is updated, not the entire articulation ::PxForceMode determines if the force is to be conventional or impulsive. Only eFORCE and eIMPULSE are supported, as the force required to produce a given velocity change or acceleration is underdetermined given only the desired change at a given point. Sleeping: This call wakes the actor if it is sleeping and the wakeup parameter is true (default).
+
+
+ Applies a force (or impulse) defined in the actor local coordinate frame, acting at a particular point in global coordinates, to the actor. Note that if the force does not act along the center of mass of the actor, this will also add the corresponding torque. Because forces are reset at the end of every timestep, you can maintain a total external force on an object by calling this once every frame. if this call is used to apply a force or impulse to an articulation link, only the link is updated, not the entire articulation ::PxForceMode determines if the force is to be conventional or impulsive. Only eFORCE and eIMPULSE are supported, as the force required to produce a given velocity change or acceleration is underdetermined given only the desired change at a given point. Sleeping: This call wakes the actor if it is sleeping and the wakeup parameter is true (default).
+
+
+ Applies a force (or impulse) defined in the actor local coordinate frame, acting at a particular point in local coordinates, to the actor. Note that if the force does not act along the center of mass of the actor, this will also add the corresponding torque. Because forces are reset at the end of every timestep, you can maintain a total external force on an object by calling this once every frame. if this call is used to apply a force or impulse to an articulation link, only the link is updated, not the entire articulation ::PxForceMode determines if the force is to be conventional or impulsive. Only eFORCE and eIMPULSE are supported, as the force required to produce a given velocity change or acceleration is underdetermined given only the desired change at a given point. Sleeping: This call wakes the actor if it is sleeping and the wakeup parameter is true (default).
+
+
+ Computes the velocity of a point given in world coordinates if it were attached to the specified body and moving with it. The velocity of point in the global frame.
+
+
+ Computes the velocity of a point given in local coordinates if it were attached to the specified body and moving with it. The velocity of point in the local frame.
+
+
+ Computes the velocity of a point (offset from the origin of the body) given in world coordinates if it were attached to the specified body and moving with it. The velocity of point (offset from the origin of the body) in the global frame.
+
+
+ Compute the change to linear and angular velocity that would occur if an impulsive force and torque were to be applied to a specified rigid body. The rigid body is left unaffected unless a subsequent independent call is executed that actually applies the computed changes to velocity and angular velocity. if this call is used to determine the velocity delta for an articulation link, only the mass properties of the link are taken into account.
+
+
+ Computes the linear and angular velocity change vectors for a given impulse at a world space position taking a mass and inertia scale into account This function is useful for extracting the respective linear and angular velocity changes from a contact or joint when the mass/inertia ratios have been adjusted. if this call is used to determine the velocity delta for an articulation link, only the mass properties of the link are taken into account.
+
+
+ Computes the linear and angular impulse vectors for a given impulse at a world space position taking a mass and inertia scale into account This function is useful for extracting the respective linear and angular impulses from a contact or joint when the mass/inertia ratios have been adjusted.
+
+
+ Performs a linear sweep through space with the body's geometry objects. Supported geometries are: box, sphere, capsule, convex. Other geometry types will be ignored. If eTOUCH is returned from the filter callback, it will trigger an error and the hit will be discarded. The function sweeps all shapes attached to a given rigid body through space and reports the nearest object in the scene which intersects any of of the shapes swept paths. Information about the closest intersection is written to a [`PxSweepHit`] structure. True if a blocking hit was found.
+
+
+ Performs a linear sweep through space with the body's geometry objects, returning all overlaps. Supported geometries are: box, sphere, capsule, convex. Other geometry types will be ignored. This function sweeps all shapes attached to a given rigid body through space and reports all objects in the scene that intersect any of the shapes' swept paths until there are no more objects to report or a blocking hit is encountered. the number of touching hits. If overflow is set to true, the results are incomplete. In case of overflow there are also no guarantees that all touching hits returned are closer than the blocking hit.
+
+
+ Releases the link from the articulation. Only a leaf articulation link can be released. Releasing a link is not allowed while the articulation link is in a scene. In order to release a link, remove and then re-add the corresponding articulation to the scene.
+
+
+ Gets the articulation that the link is a part of. The articulation.
+
+
+ Gets the joint which connects this link to its parent. The joint connecting the link to the parent. NULL for the root link.
+
+
+ Gets the number of degrees of freedom of the joint which connects this link to its parent. - The root link DOF-count is defined to be 0 regardless of PxArticulationFlag::eFIX_BASE. - The return value is only valid for articulations that are in a scene. The number of degrees of freedom, or 0xFFFFFFFF if the articulation is not in a scene.
+
+
+ Gets the number of child links. The number of child links.
+
+
+ Gets the low-level link index that may be used to index into members of PxArticulationCache. The return value is only valid for articulations that are in a scene. The low-level index, or 0xFFFFFFFF if the articulation is not in a scene.
+
+
+ Retrieves the child links. The number of articulation links written to the buffer.
+
+
+ Set the constraint-force-mixing scale term. The cfm scale term is a stabilization term that helps avoid instabilities with over-constrained configurations. It should be a small value that is multiplied by 1/mass internally to produce an additional bias added to the unit response term in the solver. Default: 0.025 Range: [0, 1] This call is not allowed while the simulation is running.
+
+
+ Get the constraint-force-mixing scale term. The constraint-force-mixing scale term.
+
+
+ Get the linear velocity of the link. - The linear velocity is with respect to the link's center of mass and not the actor frame origin. - For performance, prefer PxArticulationCache::linkVelocity to get link spatial velocities in a batch query. - When the articulation state is updated via non-cache API, use PxArticulationReducedCoordinate::updateKinematic before querying velocity. The linear velocity of the link. This call is not allowed while the simulation is running except in a split simulation during [`PxScene::collide`]() and up to #PxScene::advance(), and in PxContactModifyCallback or in contact report callbacks.
+
+
+ Get the angular velocity of the link. - For performance, prefer PxArticulationCache::linkVelocity to get link spatial velocities in a batch query. - When the articulation state is updated via non-cache API, use PxArticulationReducedCoordinate::updateKinematic before querying velocity. The angular velocity of the link. This call is not allowed while the simulation is running except in a split simulation during [`PxScene::collide`]() and up to #PxScene::advance(), and in PxContactModifyCallback or in contact report callbacks.
+
+
+ Returns the string name of the dynamic type. The string name.
+
+
+ Releases a PxConstraint instance. This call does not wake up the connected rigid bodies.
+
+
+ Retrieves the scene which this constraint belongs to. Owner Scene. NULL if not part of a scene.
+
+
+ Retrieves the actors for this constraint.
+
+
+ Sets the actors for this constraint.
+
+
+ Notify the scene that the constraint shader data has been updated by the application
+
+
+ Retrieve the flags for this constraint the constraint flags
+
+
+ Set the flags for this constraint default: PxConstraintFlag::eDRIVE_LIMITS_ARE_FORCES
+
+
+ Set a flag for this constraint
+
+
+ Retrieve the constraint force most recently applied to maintain this constraint. It is not allowed to use this method while the simulation is running (except during PxScene::collide(), in PxContactModifyCallback or in contact report callbacks).
+
+
+ whether the constraint is valid. A constraint is valid if it has at least one dynamic rigid body or articulation link. A constraint that is not valid may not be inserted into a scene, and therefore a static actor to which an invalid constraint is attached may not be inserted into a scene. Invalid constraints arise only when an actor to which the constraint is attached has been deleted.
+
+
+ Set the break force and torque thresholds for this constraint. If either the force or torque measured at the constraint exceed these thresholds the constraint will break.
+
+
+ Retrieve the constraint break force and torque thresholds
+
+
+ Set the minimum response threshold for a constraint row When using mass modification for a joint or infinite inertia for a jointed body, very stiff solver constraints can be generated which can destabilize simulation. Setting this value to a small positive value (e.g. 1e-8) will cause constraint rows to be ignored if very large changes in impulses will generate only small changes in velocity. When setting this value, also set PxConstraintFlag::eDISABLE_PREPROCESSING. The solver accuracy for this joint may be reduced.
+
+
+ Retrieve the constraint break force and torque thresholds the minimum response threshold for a constraint row
+
+
+ Fetch external owner of the constraint. Provides a reference to the external owner of a constraint and a unique owner type ID. Reference to the external object which owns the constraint.
+
+
+ Set the constraint functions for this constraint
+
+
+ Returns whether there are more patches in this stream. Whether there are more patches in this stream.
+
+
+ Returns the total contact count. Total contact count.
+
+
+ Returns the total patch count. Total patch count.
+
+
+ Advances iterator to next contact patch.
+
+
+ Returns if the current patch has more contacts. If there are more contacts in the current patch.
+
+
+ Advances to the next contact in the patch.
+
+
+ Gets the current contact's normal The current contact's normal.
+
+
+ Gets the inverse mass scale for body 0. The inverse mass scale for body 0.
+
+
+ Gets the inverse mass scale for body 1. The inverse mass scale for body 1.
+
+
+ Gets the inverse inertia scale for body 0. The inverse inertia scale for body 0.
+
+
+ Gets the inverse inertia scale for body 1. The inverse inertia scale for body 1.
+
+
+ Gets the contact's max impulse. The contact's max impulse.
+
+
+ Gets the contact's target velocity. The contact's target velocity.
+
+
+ Gets the contact's contact point. The contact's contact point.
+
+
+ Gets the contact's separation. The contact's separation.
+
+
+ Gets the contact's face index for shape 0. The contact's face index for shape 0.
+
+
+ Gets the contact's face index for shape 1. The contact's face index for shape 1.
+
+
+ Gets the contact's static friction coefficient. The contact's static friction coefficient.
+
+
+ Gets the contact's dynamic friction coefficient. The contact's dynamic friction coefficient.
+
+
+ Gets the contact's restitution coefficient. The contact's restitution coefficient.
+
+
+ Gets the contact's damping value. The contact's damping value.
+
+
+ Gets the contact's material flags. The contact's material flags.
+
+
+ Gets the contact's material index for shape 0. The contact's material index for shape 0.
+
+
+ Gets the contact's material index for shape 1. The contact's material index for shape 1.
+
+
+ Advances the contact stream iterator to a specific contact index. True if advancing was possible
+
+
+ Get the position of a specific contact point in the set. Position to the requested point in world space
+
+
+ Alter the position of a specific contact point in the set.
+
+
+ Get the contact normal of a specific contact point in the set. The requested normal in world space
+
+
+ Alter the contact normal of a specific contact point in the set. Changing the normal can cause contact points to be ignored.
+
+
+ Get the separation distance of a specific contact point in the set. The separation. Negative implies penetration.
+
+
+ Alter the separation of a specific contact point in the set.
+
+
+ Get the target velocity of a specific contact point in the set. The target velocity in world frame
+
+
+ Alter the target velocity of a specific contact point in the set.
+
+
+ Get the face index with respect to the first shape of the pair for a specific contact point in the set. The face index of the first shape At the moment, the first shape is never a tri-mesh, therefore this function always returns PXC_CONTACT_NO_FACE_INDEX
+
+
+ Get the face index with respect to the second shape of the pair for a specific contact point in the set. The face index of the second shape
+
+
+ Get the maximum impulse for a specific contact point in the set. The maximum impulse
+
+
+ Alter the maximum impulse for a specific contact point in the set. Must be nonnegative. If set to zero, the contact point will be ignored
+
+
+ Get the restitution coefficient for a specific contact point in the set. The restitution coefficient
+
+
+ Alter the restitution coefficient for a specific contact point in the set. Valid ranges [0,1]
+
+
+ Get the static friction coefficient for a specific contact point in the set. The friction coefficient (dimensionless)
+
+
+ Alter the static friction coefficient for a specific contact point in the set.
+
+
+ Get the static friction coefficient for a specific contact point in the set. The friction coefficient
+
+
+ Alter the static dynamic coefficient for a specific contact point in the set.
+
+
+ Ignore the contact point. If a contact point is ignored then no force will get applied at this point. This can be used to disable collision in certain areas of a shape, for example.
+
+
+ The number of contact points in the set.
+
+
+ Returns the invMassScale of body 0 A value < 1.0 makes this contact treat the body as if it had larger mass. A value of 0.f makes this contact treat the body as if it had infinite mass. Any value > 1.f makes this contact treat the body as if it had smaller mass.
+
+
+ Returns the invMassScale of body 1 A value < 1.0 makes this contact treat the body as if it had larger mass. A value of 0.f makes this contact treat the body as if it had infinite mass. Any value > 1.f makes this contact treat the body as if it had smaller mass.
+
+
+ Returns the invInertiaScale of body 0 A value < 1.0 makes this contact treat the body as if it had larger inertia. A value of 0.f makes this contact treat the body as if it had infinite inertia. Any value > 1.f makes this contact treat the body as if it had smaller inertia.
+
+
+ Returns the invInertiaScale of body 1 A value < 1.0 makes this contact treat the body as if it had larger inertia. A value of 0.f makes this contact treat the body as if it had infinite inertia. Any value > 1.f makes this contact treat the body as if it had smaller inertia.
+
+
+ Sets the invMassScale of body 0 This can be set to any value in the range [0, PX_MAX_F32). A value < 1.0 makes this contact treat the body as if it had larger mass. A value of 0.f makes this contact treat the body as if it had infinite mass. Any value > 1.f makes this contact treat the body as if it had smaller mass.
+
+
+ Sets the invMassScale of body 1 This can be set to any value in the range [0, PX_MAX_F32). A value < 1.0 makes this contact treat the body as if it had larger mass. A value of 0.f makes this contact treat the body as if it had infinite mass. Any value > 1.f makes this contact treat the body as if it had smaller mass.
+
+
+ Sets the invInertiaScale of body 0 This can be set to any value in the range [0, PX_MAX_F32). A value < 1.0 makes this contact treat the body as if it had larger inertia. A value of 0.f makes this contact treat the body as if it had infinite inertia. Any value > 1.f makes this contact treat the body as if it had smaller inertia.
+
+
+ Sets the invInertiaScale of body 1 This can be set to any value in the range [0, PX_MAX_F32). A value < 1.0 makes this contact treat the body as if it had larger inertia. A value of 0.f makes this contact treat the body as if it had infinite inertia. Any value > 1.f makes this contact treat the body as if it had smaller inertia.
+
+
+ Passes modifiable arrays of contacts to the application. The initial contacts are regenerated from scratch each frame by collision detection. The number of contacts can not be changed, so you cannot add your own contacts. You may however disable contacts using PxContactSet::ignore().
+
+
+ Passes modifiable arrays of contacts to the application. The initial contacts are regenerated from scratch each frame by collision detection. The number of contacts can not be changed, so you cannot add your own contacts. You may however disable contacts using PxContactSet::ignore().
+
+
+ Notification if an object or its memory gets released If release() gets called on a PxBase object, an eUSER_RELEASE event will get fired immediately. The object state can be queried in the callback but it is not allowed to change the state. Furthermore, when reading from the object it is the user's responsibility to make sure that no other thread is writing at the same time to the object (this includes the simulation itself, i.e., [`PxScene::fetchResults`]() must not get called at the same time). Calling release() on a PxBase object does not necessarily trigger its destructor immediately. For example, the object can be shared and might still be referenced by other objects or the simulation might still be running and accessing the object state. In such cases the destructor will be called as soon as it is safe to do so. After the destruction of the object and its memory, an eMEMORY_RELEASE event will get fired. In this case it is not allowed to dereference the object pointer in the callback.
+
+
+ Sets young's modulus which defines the body's stiffness
+
+
+ Retrieves the young's modulus value. The young's modulus value.
+
+
+ Sets the Poisson's ratio which defines the body's volume preservation. Completely incompressible materials have a poisson ratio of 0.5. Its value should not be set to exactly 0.5 because this leads to numerical problems.
+
+
+ Retrieves the Poisson's ratio. The Poisson's ratio.
+
+
+ Sets the dynamic friction value which defines the strength of resistance when two objects slide relative to each other while in contact.
+
+
+ Retrieves the dynamic friction value The dynamic friction value
+
+
+ (re)sets the structure to the default.
+
+
+ constructor to set both filter data and filter flags
+
+
+ Filter method to specify how a pair of potentially colliding objects should be processed. This method gets called when the filter flags returned by the filter shader (see [`PxSimulationFilterShader`]) indicate that the filter callback should be invoked ([`PxFilterFlag::eCALLBACK`] or #PxFilterFlag::eNOTIFY set). Return the PxFilterFlag flags and set the PxPairFlag flags to define what the simulation should do with the given collision pair. Filter flags defining whether the pair should be discarded, temporarily ignored or processed and whether the pair should be tracked and send a report on pair deletion through the filter callback
+
+
+ Callback to inform that a tracked collision pair is gone. This method gets called when a collision pair disappears or gets re-filtered. Only applies to collision pairs which have been marked as filter callback pairs ([`PxFilterFlag::eNOTIFY`] set in #pairFound()).
+
+
+ Callback to give the opportunity to change the filter state of a tracked collision pair. This method gets called once per simulation step to let the application change the filter and pair flags of a collision pair that has been reported in [`pairFound`]() and requested callbacks by setting [`PxFilterFlag::eNOTIFY`]. To request a change of filter status, the target pair has to be specified by its ID, the new filter and pair flags have to be provided and the method should return true. If this method changes the filter status of a collision pair and the pair should keep being tracked by the filter callbacks then [`PxFilterFlag::eNOTIFY`] has to be set. The application is responsible to ensure that this method does not get called for pairs that have been reported as lost, see [`pairLost`](). True if the changes should be applied. In this case the method will get called again. False if no more status changes should be done in the current simulation step. In that case the provided flags will be discarded.
+
+
+ Any combination of PxDataAccessFlag::eREADABLE and PxDataAccessFlag::eWRITABLE
+
+
+ Unlocks the bulk data.
+
+
+ virtual destructor
+
+
+ Sets the coefficient of dynamic friction. The coefficient of dynamic friction should be in [0, PX_MAX_F32). If set to greater than staticFriction, the effective value of staticFriction will be increased to match. Sleeping: Does NOT wake any actors which may be affected.
+
+
+ Retrieves the DynamicFriction value. The coefficient of dynamic friction.
+
+
+ Sets the coefficient of static friction The coefficient of static friction should be in the range [0, PX_MAX_F32) Sleeping: Does NOT wake any actors which may be affected.
+
+
+ Retrieves the coefficient of static friction. The coefficient of static friction.
+
+
+ Sets the coefficient of restitution A coefficient of 0 makes the object bounce as little as possible, higher values up to 1.0 result in more bounce. This property is overloaded when PxMaterialFlag::eCOMPLIANT_CONTACT flag is enabled. This permits negative values for restitution to be provided. The negative values are converted into spring stiffness terms for an implicit spring simulated at the contact site, with the spring positional error defined by the contact separation value. Higher stiffness terms produce stiffer springs that behave more like a rigid contact. Sleeping: Does NOT wake any actors which may be affected.
+
+
+ Retrieves the coefficient of restitution. See [`setRestitution`]. The coefficient of restitution.
+
+
+ Sets the coefficient of damping This property only affects the simulation if PxMaterialFlag::eCOMPLIANT_CONTACT is raised. Damping works together with spring stiffness (set through a negative restitution value). Spring stiffness corrects positional error while damping resists relative velocity. Setting a high damping coefficient can produce spongy contacts. Sleeping: Does NOT wake any actors which may be affected.
+
+
+ Retrieves the coefficient of damping. See [`setDamping`]. The coefficient of damping.
+
+
+ Raises or clears a particular material flag. See the list of flags [`PxMaterialFlag`] Default: eIMPROVED_PATCH_FRICTION Sleeping: Does NOT wake any actors which may be affected.
+
+
+ sets all the material flags. See the list of flags [`PxMaterialFlag`] Default: eIMPROVED_PATCH_FRICTION Sleeping: Does NOT wake any actors which may be affected.
+
+
+ Retrieves the flags. See [`PxMaterialFlag`]. The material flags.
+
+
+ Sets the friction combine mode. See the enum ::PxCombineMode . Default: PxCombineMode::eAVERAGE Sleeping: Does NOT wake any actors which may be affected.
+
+
+ Retrieves the friction combine mode. See [`setFrictionCombineMode`]. The friction combine mode for this material.
+
+
+ Sets the restitution combine mode. See the enum ::PxCombineMode . Default: PxCombineMode::eAVERAGE Sleeping: Does NOT wake any actors which may be affected.
+
+
+ Retrieves the restitution combine mode. See [`setRestitutionCombineMode`]. The coefficient of restitution combine mode for this material.
+
+
+ (re)sets the structure to the default.
+
+
+ Sets friction
+
+
+ Retrieves the friction value. The friction value.
+
+
+ Sets velocity damping term
+
+
+ Retrieves the velocity damping term The velocity damping term.
+
+
+ Sets adhesion term
+
+
+ Retrieves the adhesion term The adhesion term.
+
+
+ Sets gravity scale term
+
+
+ Retrieves the gravity scale term The gravity scale term.
+
+
+ Sets material adhesion radius scale. This is multiplied by the particle rest offset to compute the fall-off distance at which point adhesion ceases to operate.
+
+
+ Retrieves the adhesion radius scale. The adhesion radius scale.
+
+
+ Destroys the instance it is called on. Use this release method to destroy an instance of this class. Be sure to not keep a reference to this object after calling release. Avoid release calls while a scene is simulating (in between simulate() and fetchResults() calls). Note that this must be called once for each prior call to PxCreatePhysics, as there is a reference counter. Also note that you mustn't destroy the PxFoundation instance (holding the allocator, error callback etc.) until after the reference count reaches 0 and the SDK is actually removed. Releasing an SDK will also release any objects created through it (scenes, triangle meshes, convex meshes, heightfields, shapes etc.), provided the user hasn't already done so. Releasing the PxPhysics instance is a prerequisite to releasing the PxFoundation instance.
+
+
+ Retrieves the Foundation instance. A reference to the Foundation object.
+
+
+ Creates an aggregate with the specified maximum size and filtering hint. The previous API used \"bool enableSelfCollision\" which should now silently evaluates to a PxAggregateType::eGENERIC aggregate with its self-collision bit. Use PxAggregateType::eSTATIC or PxAggregateType::eKINEMATIC for aggregates that will only contain static or kinematic actors. This provides faster filtering when used in combination with PxPairFilteringMode. The new aggregate.
+
+
+ Returns the simulation tolerance parameters. The current simulation tolerance parameters.
+
+
+ Creates a triangle mesh object. This can then be instanced into [`PxShape`] objects. The new triangle mesh.
+
+
+ Return the number of triangle meshes that currently exist. Number of triangle meshes.
+
+
+ Writes the array of triangle mesh pointers to a user buffer. Returns the number of pointers written. The ordering of the triangle meshes in the array is not specified. The number of triangle mesh pointers written to userBuffer, this should be less or equal to bufferSize.
+
+
+ Creates a tetrahedron mesh object. This can then be instanced into [`PxShape`] objects. The new tetrahedron mesh.
+
+
+ Creates a softbody mesh object. The new softbody mesh.
+
+
+ Return the number of tetrahedron meshes that currently exist. Number of tetrahedron meshes.
+
+
+ Writes the array of tetrahedron mesh pointers to a user buffer. Returns the number of pointers written. The ordering of the tetrahedron meshes in the array is not specified. The number of tetrahedron mesh pointers written to userBuffer, this should be less or equal to bufferSize.
+
+
+ Creates a heightfield object from previously cooked stream. This can then be instanced into [`PxShape`] objects. The new heightfield.
+
+
+ Return the number of heightfields that currently exist. Number of heightfields.
+
+
+ Writes the array of heightfield pointers to a user buffer. Returns the number of pointers written. The ordering of the heightfields in the array is not specified. The number of heightfield pointers written to userBuffer, this should be less or equal to bufferSize.
+
+
+ Creates a convex mesh object. This can then be instanced into [`PxShape`] objects. The new convex mesh.
+
+
+ Return the number of convex meshes that currently exist. Number of convex meshes.
+
+
+ Writes the array of convex mesh pointers to a user buffer. Returns the number of pointers written. The ordering of the convex meshes in the array is not specified. The number of convex mesh pointers written to userBuffer, this should be less or equal to bufferSize.
+
+
+ Creates a bounding volume hierarchy. The new BVH.
+
+
+ Return the number of bounding volume hierarchies that currently exist. Number of bounding volume hierarchies.
+
+
+ Writes the array of bounding volume hierarchy pointers to a user buffer. Returns the number of pointers written. The ordering of the BVHs in the array is not specified. The number of BVH pointers written to userBuffer, this should be less or equal to bufferSize.
+
+
+ Creates a scene. Every scene uses a Thread Local Storage slot. This imposes a platform specific limit on the number of scenes that can be created. The new scene object.
+
+
+ Gets number of created scenes. The number of scenes created.
+
+
+ Writes the array of scene pointers to a user buffer. Returns the number of pointers written. The ordering of the scene pointers in the array is not specified. The number of scene pointers written to userBuffer, this should be less or equal to bufferSize.
+
+
+ Creates a static rigid actor with the specified pose and all other fields initialized to their default values.
+
+
+ Creates a dynamic rigid actor with the specified pose and all other fields initialized to their default values.
+
+
+ Creates a pruning structure from actors. Every provided actor needs at least one shape with the eSCENE_QUERY_SHAPE flag set. Both static and dynamic actors can be provided. It is not allowed to pass in actors which are already part of a scene. Articulation links cannot be provided. Pruning structure created from given actors, or NULL if any of the actors did not comply with the above requirements.
+
+
+ Creates a shape which may be attached to multiple actors The shape will be created with a reference count of 1. The shape Shared shapes are not mutable when they are attached to an actor
+
+
+ Creates a shape which may be attached to multiple actors The shape will be created with a reference count of 1. The shape Shared shapes are not mutable when they are attached to an actor Shapes created from *SDF* triangle-mesh geometries do not support more than one material.
+
+
+ Return the number of shapes that currently exist. Number of shapes.
+
+
+ Writes the array of shape pointers to a user buffer. Returns the number of pointers written. The ordering of the shapes in the array is not specified. The number of shape pointers written to userBuffer, this should be less or equal to bufferSize.
+
+
+ Creates a constraint shader. A constraint shader will get added automatically to the scene the two linked actors belong to. Either, but not both, of actor0 and actor1 may be NULL to denote attachment to the world. The new constraint shader.
+
+
+ Creates a reduced-coordinate articulation with all fields initialized to their default values. the new articulation
+
+
+ Creates a new rigid body material with certain default properties. The new rigid body material.
+
+
+ Return the number of rigid body materials that currently exist. Number of rigid body materials.
+
+
+ Writes the array of rigid body material pointers to a user buffer. Returns the number of pointers written. The ordering of the materials in the array is not specified. The number of material pointers written to userBuffer, this should be less or equal to bufferSize.
+
+
+ Register a deletion listener. Listeners will be called whenever an object is deleted. It is illegal to register or unregister a deletion listener while deletions are being processed. By default a registered listener will receive events from all objects. Set the restrictedObjectSet parameter to true on registration and use [`registerDeletionListenerObjects`] to restrict the received events to specific objects. The deletion events are only supported on core PhysX objects. In general, objects in extension modules do not provide this functionality, however, in the case of PxJoint objects, the underlying PxConstraint will send the events.
+
+
+ Unregister a deletion listener. It is illegal to register or unregister a deletion listener while deletions are being processed.
+
+
+ Register specific objects for deletion events. This method allows for a deletion listener to limit deletion events to specific objects only. It is illegal to register or unregister objects while deletions are being processed. The deletion listener has to be registered through [`registerDeletionListener`]() and configured to support restricted object sets prior to this method being used.
+
+
+ Unregister specific objects for deletion events. This method allows to clear previously registered objects for a deletion listener (see [`registerDeletionListenerObjects`]()). It is illegal to register or unregister objects while deletions are being processed. The deletion listener has to be registered through [`registerDeletionListener`]() and configured to support restricted object sets prior to this method being used.
+
+
+ Gets PxPhysics object insertion interface. The insertion interface is needed for PxCreateTriangleMesh, PxCooking::createTriangleMesh etc., this allows runtime mesh creation.
+
+
+ Create a distance Joint.
+
+
+ Create a distance Joint.
+
+
+ Create a fixed joint.
+
+
+ Create a prismatic joint.
+
+
+ Create a revolute joint.
+
+
+ Create a spherical joint.
+
+
+ Create a D6 joint.
+
+
+ Create a gear Joint.
+
+
+ Create a rack & pinion Joint.
+
+
+ Convenience function to create a PxBVH object from a PxRigidActor. The computed PxBVH can then be used in PxScene::addActor() or PxAggregate::addActor(). After adding the actor & BVH to the scene/aggregate, release the PxBVH object by calling PxBVH::release(). The PxBVH for this actor.
+
+
+ Creates an application managed registry for serialization. PxSerializationRegistry instance.
+
+
+ simple method to create a PxRigidDynamic actor with a single PxShape. a new dynamic actor with the PxRigidBodyFlag, or NULL if it could not be constructed
+
+
+ simple method to create a PxRigidDynamic actor with a single PxShape. a new dynamic actor with the PxRigidBodyFlag, or NULL if it could not be constructed
+
+
+ simple method to create a kinematic PxRigidDynamic actor with a single PxShape. unlike PxCreateDynamic, the geometry is not restricted to box, capsule, sphere or convex. However, kinematics of other geometry types may not participate in simulation collision and may be used only for triggers or scene queries of moving objects under animation control. In this case the density parameter will be ignored and the created shape will be set up as a scene query only shape (see [`PxShapeFlag::eSCENE_QUERY_SHAPE`]) a new dynamic actor with the PxRigidBodyFlag::eKINEMATIC set, or NULL if it could not be constructed
+
+
+ simple method to create a kinematic PxRigidDynamic actor with a single PxShape. unlike PxCreateDynamic, the geometry is not restricted to box, capsule, sphere or convex. However, kinematics of other geometry types may not participate in simulation collision and may be used only for triggers or scene queries of moving objects under animation control. In this case the density parameter will be ignored and the created shape will be set up as a scene query only shape (see [`PxShapeFlag::eSCENE_QUERY_SHAPE`]) a new dynamic actor with the PxRigidBodyFlag::eKINEMATIC set, or NULL if it could not be constructed
+
+
+ simple method to create a PxRigidStatic actor with a single PxShape. a new static actor, or NULL if it could not be constructed
+
+
+ simple method to create a PxRigidStatic actor with a single PxShape. a new static actor, or NULL if it could not be constructed
+
+
+ create a shape by copying attributes from another shape The function clones a PxShape. The following properties are copied: - geometry - flags - materials - actor-local pose - contact offset - rest offset - simulation filter data - query filter data - torsional patch radius - minimum torsional patch radius The following are not copied and retain their default values: - name - user data the newly-created rigid static
+
+
+ create a static body by copying attributes from another rigid actor The function clones a PxRigidDynamic or PxRigidStatic as a PxRigidStatic. A uniform scale is applied. The following properties are copied: - shapes - actor flags - owner client and client behavior bits - dominance group The following are not copied and retain their default values: - name - joints or observers - aggregate or scene membership - user data Transforms are not copied with bit-exact accuracy. the newly-created rigid static
+
+
+ create a dynamic body by copying attributes from an existing body The following properties are copied: - shapes - actor flags, rigidDynamic flags and rigidDynamic lock flags - mass, moment of inertia, and center of mass frame - linear and angular velocity - linear and angular damping - maximum linear velocity - maximum angular velocity - position and velocity solver iterations - maximum depenetration velocity - sleep threshold - contact report threshold - dominance group - owner client and client behavior bits - name pointer - kinematic target The following are not copied and retain their default values: - name - joints or observers - aggregate or scene membership - sleep timer - user data Transforms are not copied with bit-exact accuracy. the newly-created rigid static
+
+
+ create a plane actor. The plane equation is n.x + d = 0 a new static actor, or NULL if it could not be constructed
+
+
+ Initialize the PhysXExtensions library. This should be called before calling any functions or methods in extensions which may require allocation. This function does not need to be called before creating a PxDefaultAllocator object.
+
+
+ This filter callback is executed before the exact intersection test if PxQueryFlag::ePREFILTER flag was set. the updated type for this hit (see [`PxQueryHitType`])
+
+
+ This filter callback is executed if the exact intersection test returned true and PxQueryFlag::ePOSTFILTER flag was set. the updated hit type for this hit (see [`PxQueryHitType`])
+
+
+ virtual destructor
+
+
+ Moves kinematically controlled dynamic actors through the game world. You set a dynamic actor to be kinematic using the PxRigidBodyFlag::eKINEMATIC flag with setRigidBodyFlag(). The move command will result in a velocity that will move the body into the desired pose. After the move is carried out during a single time step, the velocity is returned to zero. Thus, you must continuously call this in every time step for kinematic actors so that they move along a path. This function simply stores the move destination until the next simulation step is processed, so consecutive calls will simply overwrite the stored target variable. The motion is always fully carried out. It is invalid to use this method if the actor has not been added to a scene already or if PxActorFlag::eDISABLE_SIMULATION is set. Sleeping: This call wakes the actor if it is sleeping and will set the wake counter to [`PxSceneDesc::wakeCounterResetValue`].
+
+
+ Get target pose of a kinematically controlled dynamic actor. True if the actor is a kinematically controlled dynamic and the target has been set, else False.
+
+
+ Returns true if this body is sleeping. When an actor does not move for a period of time, it is no longer simulated in order to save time. This state is called sleeping. However, because the object automatically wakes up when it is either touched by an awake object, or one of its properties is changed by the user, the entire sleep mechanism should be transparent to the user. In general, a dynamic rigid actor is guaranteed to be awake if at least one of the following holds: The wake counter is positive (see [`setWakeCounter`]()). The linear or angular velocity is non-zero. A non-zero force or torque has been applied. If a dynamic rigid actor is sleeping, the following state is guaranteed: The wake counter is zero. The linear and angular velocity is zero. There is no force update pending. When an actor gets inserted into a scene, it will be considered asleep if all the points above hold, else it will be treated as awake. If an actor is asleep after the call to PxScene::fetchResults() returns, it is guaranteed that the pose of the actor was not changed. You can use this information to avoid updating the transforms of associated objects. A kinematic actor is asleep unless a target pose has been set (in which case it will stay awake until two consecutive simulation steps without a target pose being set have passed). The wake counter will get set to zero or to the reset value [`PxSceneDesc::wakeCounterResetValue`] in the case where a target pose has been set to be consistent with the definitions above. It is invalid to use this method if the actor has not been added to a scene already. It is not allowed to use this method while the simulation is running. True if the actor is sleeping.
+
+
+ Sets the mass-normalized kinetic energy threshold below which an actor may go to sleep. Actors whose kinetic energy divided by their mass is below this threshold will be candidates for sleeping. Default: 5e-5f * PxTolerancesScale::speed * PxTolerancesScale::speed
+
+
+ Returns the mass-normalized kinetic energy below which an actor may go to sleep. The energy threshold for sleeping.
+
+
+ Sets the mass-normalized kinetic energy threshold below which an actor may participate in stabilization. Actors whose kinetic energy divided by their mass is above this threshold will not participate in stabilization. This value has no effect if PxSceneFlag::eENABLE_STABILIZATION was not enabled on the PxSceneDesc. Default: 1e-5f * PxTolerancesScale::speed * PxTolerancesScale::speed
+
+
+ Returns the mass-normalized kinetic energy below which an actor may participate in stabilization. Actors whose kinetic energy divided by their mass is above this threshold will not participate in stabilization. The energy threshold for participating in stabilization.
+
+
+ Reads the PxRigidDynamic lock flags. See the list of flags [`PxRigidDynamicLockFlag`] The values of the PxRigidDynamicLock flags.
+
+
+ Raises or clears a particular rigid dynamic lock flag. See the list of flags [`PxRigidDynamicLockFlag`] Default: no flags are set
+
+
+ Retrieves the linear velocity of an actor. It is not allowed to use this method while the simulation is running (except during PxScene::collide(), in PxContactModifyCallback or in contact report callbacks). The linear velocity of the actor.
+
+
+ Sets the linear velocity of the actor. Note that if you continuously set the velocity of an actor yourself, forces such as gravity or friction will not be able to manifest themselves, because forces directly influence only the velocity/momentum of an actor. Default: (0.0, 0.0, 0.0) Sleeping: This call wakes the actor if it is sleeping, and the autowake parameter is true (default) or the new velocity is non-zero. It is invalid to use this method if PxActorFlag::eDISABLE_SIMULATION is set.
+
+
+ Retrieves the angular velocity of the actor. It is not allowed to use this method while the simulation is running (except during PxScene::collide(), in PxContactModifyCallback or in contact report callbacks). The angular velocity of the actor.
+
+
+ Sets the angular velocity of the actor. Note that if you continuously set the angular velocity of an actor yourself, forces such as friction will not be able to rotate the actor, because forces directly influence only the velocity/momentum. Default: (0.0, 0.0, 0.0) Sleeping: This call wakes the actor if it is sleeping, and the autowake parameter is true (default) or the new velocity is non-zero. It is invalid to use this method if PxActorFlag::eDISABLE_SIMULATION is set.
+
+
+ Sets the wake counter for the actor. The wake counter value determines the minimum amount of time until the body can be put to sleep. Please note that a body will not be put to sleep if the energy is above the specified threshold (see [`setSleepThreshold`]()) or if other awake bodies are touching it. Passing in a positive value will wake the actor up automatically. It is invalid to use this method for kinematic actors since the wake counter for kinematics is defined based on whether a target pose has been set (see the comment in [`isSleeping`]()). It is invalid to use this method if PxActorFlag::eDISABLE_SIMULATION is set. Default: 0.4 (which corresponds to 20 frames for a time step of 0.02)
+
+
+ Returns the wake counter of the actor. It is not allowed to use this method while the simulation is running. The wake counter of the actor.
+
+
+ Wakes up the actor if it is sleeping. The actor will get woken up and might cause other touching actors to wake up as well during the next simulation step. This will set the wake counter of the actor to the value specified in [`PxSceneDesc::wakeCounterResetValue`]. It is invalid to use this method if the actor has not been added to a scene already or if PxActorFlag::eDISABLE_SIMULATION is set. It is invalid to use this method for kinematic actors since the sleep state for kinematics is defined based on whether a target pose has been set (see the comment in [`isSleeping`]()).
+
+
+ Forces the actor to sleep. The actor will stay asleep during the next simulation step if not touched by another non-sleeping actor. Any applied force will be cleared and the velocity and the wake counter of the actor will be set to 0. It is invalid to use this method if the actor has not been added to a scene already or if PxActorFlag::eDISABLE_SIMULATION is set. It is invalid to use this method for kinematic actors since the sleep state for kinematics is defined based on whether a target pose has been set (see the comment in [`isSleeping`]()).
+
+
+ Sets the solver iteration counts for the body. The solver iteration count determines how accurately joints and contacts are resolved. If you are having trouble with jointed bodies oscillating and behaving erratically, then setting a higher position iteration count may improve their stability. If intersecting bodies are being depenetrated too violently, increase the number of velocity iterations. More velocity iterations will drive the relative exit velocity of the intersecting objects closer to the correct value given the restitution. Default: 4 position iterations, 1 velocity iteration
+
+
+ Retrieves the solver iteration counts.
+
+
+ Retrieves the force threshold for contact reports. The contact report threshold is a force threshold. If the force between two actors exceeds this threshold for either of the two actors, a contact report will be generated according to the contact report threshold flags provided by the filter shader/callback. See [`PxPairFlag`]. The threshold used for a collision between a dynamic actor and the static environment is the threshold of the dynamic actor, and all contacts with static actors are summed to find the total normal force. Default: PX_MAX_F32 Force threshold for contact reports.
+
+
+ Sets the force threshold for contact reports. See [`getContactReportThreshold`]().
+
+
+ (re)sets the structure to the default.
+
+
+ Returns true if the descriptor is valid. true if the current settings are valid.
+
+
+ Creates an external scene query system. An external SQ system is the part of a PxScene that deals with scene queries (SQ). This is usually taken care of by an internal implementation inside PxScene, but it is also possible to re-route all SQ calls to an external implementation, potentially opening the door to some customizations in behavior and features for advanced users. The following external SQ system is an example of how an implementation would look like. It re-uses much of the same code as the internal version, but it could be re-implemented in a completely different way to match users' specific needs. An external SQ system instance
+
+
+ Sets the rebuild rate of the dynamic tree pruning structures.
+
+
+ Retrieves the rebuild rate of the dynamic tree pruning structures. The rebuild rate of the dynamic tree pruning structures.
+
+
+ Forces dynamic trees to be immediately rebuilt. PxScene will call this function with the PX_SCENE_PRUNER_STATIC or PX_SCENE_PRUNER_DYNAMIC value.
+
+
+ Sets scene query update mode
+
+
+ Gets scene query update mode Current scene query update mode.
+
+
+ Retrieves the system's internal scene query timestamp, increased each time a change to the static scene query structure is performed. scene query static timestamp
+
+
+ Flushes any changes to the scene query representation. This method updates the state of the scene query representation to match changes in the scene state. By default, these changes are buffered until the next query is submitted. Calling this function will not change the results from scene queries, but can be used to ensure that a query will not perform update work in the course of its execution. A thread performing updates will hold a write lock on the query structure, and thus stall other querying threads. In multithread scenarios it can be useful to explicitly schedule the period where this lock may be held for a significant period, so that subsequent queries issued from multiple threads will not block.
+
+
+ Performs a raycast against objects in the scene, returns results in a PxRaycastBuffer object or via a custom user callback implementation inheriting from PxRaycastCallback. Touching hits are not ordered. Shooting a ray from within an object leads to different results depending on the shape type. Please check the details in user guide article SceneQuery. User can ignore such objects by employing one of the provided filter mechanisms. True if any touching or blocking hits were found or any hit was found in case PxQueryFlag::eANY_HIT was specified.
+
+
+ Performs a sweep test against objects in the scene, returns results in a PxSweepBuffer object or via a custom user callback implementation inheriting from PxSweepCallback. Touching hits are not ordered. If a shape from the scene is already overlapping with the query shape in its starting position, the hit is returned unless eASSUME_NO_INITIAL_OVERLAP was specified. True if any touching or blocking hits were found or any hit was found in case PxQueryFlag::eANY_HIT was specified.
+
+
+ Performs an overlap test of a given geometry against objects in the scene, returns results in a PxOverlapBuffer object or via a custom user callback implementation inheriting from PxOverlapCallback. Filtering: returning eBLOCK from user filter for overlap queries will cause a warning (see [`PxQueryHitType`]). True if any touching or blocking hits were found or any hit was found in case PxQueryFlag::eANY_HIT was specified. eBLOCK should not be returned from user filters for overlap(). Doing so will result in undefined behavior, and a warning will be issued. If the PxQueryFlag::eNO_BLOCK flag is set, the eBLOCK will instead be automatically converted to an eTOUCH and the warning suppressed.
+
+
+ Sets scene query update mode
+
+
+ Gets scene query update mode Current scene query update mode.
+
+
+ Retrieves the scene's internal scene query timestamp, increased each time a change to the static scene query structure is performed. scene query static timestamp
+
+
+ Flushes any changes to the scene query representation.
+
+
+ Forces dynamic trees to be immediately rebuilt.
+
+
+ Return the value of PxSceneQueryDesc::staticStructure that was set when creating the scene with PxPhysics::createScene
+
+
+ Return the value of PxSceneQueryDesc::dynamicStructure that was set when creating the scene with PxPhysics::createScene
+
+
+ Executes scene queries update tasks. This function will refit dirty shapes within the pruner and will execute a task to build a new AABB tree, which is build on a different thread. The new AABB tree is built based on the dynamic tree rebuild hint rate. Once the new tree is ready it will be commited in next fetchQueries call, which must be called after. This function is equivalent to the following PxSceneQuerySystem calls: Synchronous calls: - PxSceneQuerySystemBase::flushUpdates() - handle0 = PxSceneQuerySystem::prepareSceneQueryBuildStep(PX_SCENE_PRUNER_STATIC) - handle1 = PxSceneQuerySystem::prepareSceneQueryBuildStep(PX_SCENE_PRUNER_DYNAMIC) Asynchronous calls: - PxSceneQuerySystem::sceneQueryBuildStep(handle0); - PxSceneQuerySystem::sceneQueryBuildStep(handle1); This function is part of the PxSceneSQSystem interface because it uses the PxScene task system under the hood. But it calls PxSceneQuerySystem functions, which are independent from this system and could be called in a similar fashion by a separate, possibly user-defined task manager. If PxSceneQueryUpdateMode::eBUILD_DISABLED_COMMIT_DISABLED is used, it is required to update the scene queries using this function.
+
+
+ This checks to see if the scene queries update has completed. This does not cause the data available for reading to be updated with the results of the scene queries update, it is simply a status check. The bool will allow it to either return immediately or block waiting for the condition to be met so that it can return true True if the results are available.
+
+
+ This method must be called after sceneQueriesUpdate. It will wait for the scene queries update to finish. If the user makes an illegal scene queries update call, the SDK will issue an error message. If a new AABB tree build finished, then during fetchQueries the current tree within the pruning structure is swapped with the new tree.
+
+
+ Decrements the reference count of the object and releases it if the new reference count is zero.
+
+
+ Acquires a counted reference to this object. This method increases the reference count of the object by 1. Decrement the reference count by calling release()
+
+
+ Preallocates internal arrays to minimize the amount of reallocations. The system does not prevent more allocations than given numbers. It is legal to not call this function at all, or to add more shapes to the system than the preallocated amounts.
+
+
+ Frees internal memory that may not be in-use anymore. This is an entry point for reclaiming transient memory allocated at some point by the SQ system, but which wasn't been immediately freed for performance reason. Calling this function might free some memory, but it might also produce a new set of allocations in the next frame.
+
+
+ Adds a shape to the SQ system. The same function is used to add either a regular shape, or a SQ compound shape.
+
+
+ Removes a shape from the SQ system. The same function is used to remove either a regular shape, or a SQ compound shape.
+
+
+ Updates a shape in the SQ system. The same function is used to update either a regular shape, or a SQ compound shape. The transforms are eager-evaluated, but the bounds are lazy-evaluated. This means that the updated transform has to be passed to the update function, while the bounds are automatically recomputed by the system whenever needed.
+
+
+ Adds a compound to the SQ system. SQ compound handle
+
+
+ Removes a compound from the SQ system.
+
+
+ Updates a compound in the SQ system. The compound structures are immediately updated when the call occurs.
+
+
+ Shift the data structures' origin by the specified vector. Please refer to the notes of the similar function in PxScene.
+
+
+ Merges a pruning structure with the SQ system's internal pruners.
+
+
+ Shape to SQ-pruner-handle mapping function. This function finds and returns the SQ pruner handle associated with a given (actor/shape) couple that was previously added to the system. This is needed for the sync function. Associated SQ pruner handle.
+
+
+ Synchronizes the scene-query system with another system that references the same objects. This function is used when the scene-query objects also exist in another system that can also update them. For example the scene-query objects (used for raycast, overlap or sweep queries) might be driven by equivalent objects in an external rigid-body simulation engine. In this case the rigid-body simulation engine computes the new poses and transforms, and passes them to the scene-query system using this function. It is more efficient than calling updateSQShape on each object individually, since updateSQShape would end up recomputing the bounds already available in the rigid-body engine.
+
+
+ Finalizes updates made to the SQ system. This function should be called after updates have been made to the SQ system, to fully reflect the changes inside the internal pruners. In particular it should be called: - after calls to updateSQShape - after calls to sync This function: - recomputes bounds of manually updated shapes (i.e. either regular or SQ compound shapes modified by updateSQShape) - updates dynamic pruners (refit operations) - incrementally rebuilds AABB-trees The amount of work performed in this function depends on PxSceneQueryUpdateMode.
+
+
+ Prepares asynchronous build step. This is directly called (synchronously) by PxSceneSQSystem::sceneQueriesUpdate(). See the comments there. This function is called to let the system execute any necessary synchronous operation before the asynchronous sceneQueryBuildStep() function is called. If there is any work to do for the specific pruner, the function returns a pruner-specific handle that will be passed to the corresponding, asynchronous sceneQueryBuildStep function. A pruner-specific handle that will be sent to sceneQueryBuildStep if there is any work to do, i.e. to execute the corresponding sceneQueryBuildStep() call. Null if there is no work to do, otherwise a pruner-specific handle.
+
+
+ Executes asynchronous build step. This is directly called (asynchronously) by PxSceneSQSystem::sceneQueriesUpdate(). See the comments there. This function incrementally builds the internal trees/pruners. It is called asynchronously, i.e. this can be called from different threads for building multiple trees at the same time.
+
+
+ Broadphase factory function. Use this function to create a new standalone broadphase. Newly created broadphase, or NULL
+
+
+ Returns number of regions currently registered in the broad-phase. Number of regions
+
+
+ Gets broad-phase regions. Number of written out regions.
+
+
+ Adds a new broad-phase region. The total number of regions is limited to PxBroadPhaseCaps::mMaxNbRegions. If that number is exceeded, the call is ignored. The newly added region will be automatically populated with already existing objects that touch it, if the 'populateRegion' parameter is set to true. Otherwise the newly added region will be empty, and it will only be populated with objects when those objects are added to the simulation, or updated if they already exist. Using 'populateRegion=true' has a cost, so it is best to avoid it if possible. In particular it is more efficient to create the empty regions first (with populateRegion=false) and then add the objects afterwards (rather than the opposite). Objects automatically move from one region to another during their lifetime. The system keeps tracks of what regions a given object is in. It is legal for an object to be in an arbitrary number of regions. However if an object leaves all regions, or is created outside of all regions, several things happen: - collisions get disabled for this object - the object appears in the getOutOfBoundsObjects() array If an out-of-bounds object, whose collisions are disabled, re-enters a valid broadphase region, then collisions are re-enabled for that object. Handle for newly created region, or 0xffffffff in case of failure.
+
+
+ Removes a broad-phase region. If the region still contains objects, and if those objects do not overlap any region any more, they are not automatically removed from the simulation. Instead, the PxBroadPhaseCallback::onObjectOutOfBounds notification is used for each object. Users are responsible for removing the objects from the simulation if this is the desired behavior. If the handle is invalid, or if a valid handle is removed twice, an error message is sent to the error stream. True if success
+
+
+ Gets the broadphase type. Broadphase type.
+
+
+ Gets broad-phase caps.
+
+
+ Retrieves the regions API if applicable. For broadphases that do not use explicit user-defined regions, this call returns NULL. Region API, or NULL.
+
+
+ Retrieves the broadphase allocator. User-provided buffers should ideally be allocated with this allocator, for best performance. This is especially true for the GPU broadphases, whose buffers need to be allocated in CUDA host memory. The broadphase allocator.
+
+
+ Retrieves the profiler's context ID. The context ID.
+
+
+ Sets a scratch buffer Some broadphases might take advantage of a scratch buffer to limit runtime allocations. All broadphases still work without providing a scratch buffer, this is an optional function that can potentially reduce runtime allocations.
+
+
+ Updates the broadphase and computes the lists of created/deleted pairs. The provided update data describes changes to objects since the last broadphase update. To benefit from potentially multithreaded implementations, it is necessary to provide a continuation task to the function. It is legal to pass NULL there, but the underlying (CPU) implementations will then run single-threaded.
+
+
+ Retrieves the broadphase results after an update. This should be called once after each update call to retrieve the results of the broadphase. The results are incremental, i.e. the system only returns new and lost pairs, not all current pairs.
+
+
+ Helper for single-threaded updates. This short helper function performs a single-theaded update and reports the results in a single call.
+
+
+ AABB manager factory function. Use this function to create a new standalone high-level broadphase. Newly created AABB manager, or NULL
+
+
+ Retrieves the underlying broadphase. The managed broadphase.
+
+
+ Retrieves the managed bounds. This is needed as input parameters to functions like PxBroadPhaseRegions::addRegion. The managed object bounds.
+
+
+ Retrieves the managed distances. This is needed as input parameters to functions like PxBroadPhaseRegions::addRegion. The managed object distances.
+
+
+ Retrieves the managed filter groups. The managed object groups.
+
+
+ Retrieves the managed buffers' capacity. Bounds, distances and groups buffers have the same capacity. The managed buffers' capacity.
+
+
+ Adds an object to the manager. Objects' indices are externally managed, i.e. they must be provided by users (as opposed to handles that could be returned by this manager). The design allows users to identify an object by a single ID, and use the same ID in multiple sub-systems.
+
+
+ Removes an object from the manager.
+
+
+ Updates an object in the manager. This call can update an object's bounds, distance, or both. It is not possible to update an object's filter group.
+
+
+ Updates the broadphase and computes the lists of created/deleted pairs. The data necessary for updating the broadphase is internally computed by the AABB manager. To benefit from potentially multithreaded implementations, it is necessary to provide a continuation task to the function. It is legal to pass NULL there, but the underlying (CPU) implementations will then run single-threaded.
+
+
+ Retrieves the broadphase results after an update. This should be called once after each update call to retrieve the results of the broadphase. The results are incremental, i.e. the system only returns new and lost pairs, not all current pairs.
+
+
+ Helper for single-threaded updates. This short helper function performs a single-theaded update and reports the results in a single call.
+
+
+ (re)sets the structure to the default
+
+
+ Returns true if the descriptor is valid. true if the current settings are valid.
+
+
+ Get number of broadphase volumes added for the current simulation step. Number of broadphase volumes added.
+
+
+ Get number of broadphase volumes removed for the current simulation step. Number of broadphase volumes removed.
+
+
+ Get number of shape collision pairs of a certain type processed for the current simulation step. There is an entry for each geometry pair type. entry[i][j] = entry[j][i], hence, if you want the sum of all pair types, you need to discard the symmetric entries Number of processed pairs of the specified geometry types.
+
+
+ Sets the PVD flag. See PxPvdSceneFlag.
+
+
+ Sets the PVD flags. See PxPvdSceneFlags.
+
+
+ Retrieves the PVD flags. See PxPvdSceneFlags.
+
+
+ update camera on PVD application's render window
+
+
+ draw points on PVD application's render window
+
+
+ draw lines on PVD application's render window
+
+
+ draw triangles on PVD application's render window
+
+
+ draw text on PVD application's render window
+
+
+ Out-of-bounds notification. This function is called when an object leaves the broad-phase.
+
+
+ Out-of-bounds notification. This function is called when an aggregate leaves the broad-phase.
+
+
+ Deletes the scene. Removes any actors and constraint shaders from this scene (if the user hasn't already done so). Be sure to not keep a reference to this object after calling release. Avoid release calls while the scene is simulating (in between simulate() and fetchResults() calls).
+
+
+ Sets a scene flag. You can only set one flag at a time. Not all flags are mutable and changing some will result in an error. Please check [`PxSceneFlag`] to see which flags can be changed.
+
+
+ Get the scene flags. The scene flags. See [`PxSceneFlag`]
+
+
+ Set new scene limits. Increase the maximum capacity of various data structures in the scene. The new capacities will be at least as large as required to deal with the objects currently in the scene. Further, these values are for preallocation and do not represent hard limits.
+
+
+ Get current scene limits. Current scene limits.
+
+
+ Call this method to retrieve the Physics SDK. The physics SDK this scene is associated with.
+
+
+ Retrieves the scene's internal timestamp, increased each time a simulation step is completed. scene timestamp
+
+
+ Adds an articulation to this scene. If the articulation is already assigned to a scene (see [`PxArticulationReducedCoordinate::getScene`]), the call is ignored and an error is issued. True if success
+
+
+ Removes an articulation from this scene. If the articulation is not part of this scene (see [`PxArticulationReducedCoordinate::getScene`]), the call is ignored and an error is issued. If the articulation is in an aggregate it will be removed from the aggregate.
+
+
+ Adds an actor to this scene. If the actor is already assigned to a scene (see [`PxActor::getScene`]), the call is ignored and an error is issued. If the actor has an invalid constraint, in checked builds the call is ignored and an error is issued. You can not add individual articulation links (see [`PxArticulationLink`]) to the scene. Use #addArticulation() instead. If the actor is a PxRigidActor then each assigned PxConstraint object will get added to the scene automatically if it connects to another actor that is part of the scene already. When a BVH is provided the actor shapes are grouped together. The scene query pruning structure inside PhysX SDK will store/update one bound per actor. The scene queries against such an actor will query actor bounds and then make a local space query against the provided BVH, which is in actor's local space. True if success
+
+
+ Adds actors to this scene. Only supports actors of type PxRigidStatic and PxRigidDynamic. This method only supports actors of type PxRigidStatic and PxRigidDynamic. For other actors, use addActor() instead. For articulation links, use addArticulation(). If one of the actors is already assigned to a scene (see [`PxActor::getScene`]), the call is ignored and an error is issued. If an actor in the array contains an invalid constraint, in checked builds the call is ignored and an error is issued. If an actor in the array is a PxRigidActor then each assigned PxConstraint object will get added to the scene automatically if it connects to another actor that is part of the scene already. this method is optimized for high performance. True if success
+
+
+ Adds a pruning structure together with its actors to this scene. Only supports actors of type PxRigidStatic and PxRigidDynamic. This method only supports actors of type PxRigidStatic and PxRigidDynamic. For other actors, use addActor() instead. For articulation links, use addArticulation(). If an actor in the pruning structure contains an invalid constraint, in checked builds the call is ignored and an error is issued. For all actors in the pruning structure each assigned PxConstraint object will get added to the scene automatically if it connects to another actor that is part of the scene already. This method is optimized for high performance. Merging a PxPruningStructure into an active scene query optimization AABB tree might unbalance the tree. A typical use case for PxPruningStructure is a large world scenario where blocks of closely positioned actors get streamed in. The merge process finds the best node in the active scene query optimization AABB tree and inserts the PxPruningStructure. Therefore using PxPruningStructure for actors scattered throughout the world will result in an unbalanced tree. True if success
+
+
+ Removes an actor from this scene. If the actor is not part of this scene (see [`PxActor::getScene`]), the call is ignored and an error is issued. You can not remove individual articulation links (see [`PxArticulationLink`]) from the scene. Use #removeArticulation() instead. If the actor is a PxRigidActor then all assigned PxConstraint objects will get removed from the scene automatically. If the actor is in an aggregate it will be removed from the aggregate.
+
+
+ Removes actors from this scene. Only supports actors of type PxRigidStatic and PxRigidDynamic. This method only supports actors of type PxRigidStatic and PxRigidDynamic. For other actors, use removeActor() instead. For articulation links, use removeArticulation(). If some actor is not part of this scene (see [`PxActor::getScene`]), the actor remove is ignored and an error is issued. You can not remove individual articulation links (see [`PxArticulationLink`]) from the scene. Use #removeArticulation() instead. If the actor is a PxRigidActor then all assigned PxConstraint objects will get removed from the scene automatically.
+
+
+ Adds an aggregate to this scene. If the aggregate is already assigned to a scene (see [`PxAggregate::getScene`]), the call is ignored and an error is issued. If the aggregate contains an actor with an invalid constraint, in checked builds the call is ignored and an error is issued. If the aggregate already contains actors, those actors are added to the scene as well. True if success
+
+
+ Removes an aggregate from this scene. If the aggregate is not part of this scene (see [`PxAggregate::getScene`]), the call is ignored and an error is issued. If the aggregate contains actors, those actors are removed from the scene as well.
+
+
+ Adds objects in the collection to this scene. This function adds the following types of objects to this scene: PxRigidActor (except PxArticulationLink), PxAggregate, PxArticulationReducedCoordinate. This method is typically used after deserializing the collection in order to populate the scene with deserialized objects. If the collection contains an actor with an invalid constraint, in checked builds the call is ignored and an error is issued. True if success
+
+
+ Retrieve the number of actors of certain types in the scene. For supported types, see PxActorTypeFlags. the number of actors.
+
+
+ Retrieve an array of all the actors of certain types in the scene. For supported types, see PxActorTypeFlags. Number of actors written to the buffer.
+
+
+ Queries the PxScene for a list of the PxActors whose transforms have been updated during the previous simulation step. Only includes actors of type PxRigidDynamic and PxArticulationLink. PxSceneFlag::eENABLE_ACTIVE_ACTORS must be set. Do not use this method while the simulation is running. Calls to this method while the simulation is running will be ignored and NULL will be returned. A pointer to the list of active PxActors generated during the last call to fetchResults().
+
+
+ Returns the number of articulations in the scene. the number of articulations in this scene.
+
+
+ Retrieve all the articulations in the scene. Number of articulations written to the buffer.
+
+
+ Returns the number of constraint shaders in the scene. the number of constraint shaders in this scene.
+
+
+ Retrieve all the constraint shaders in the scene. Number of constraint shaders written to the buffer.
+
+
+ Returns the number of aggregates in the scene. the number of aggregates in this scene.
+
+
+ Retrieve all the aggregates in the scene. Number of aggregates written to the buffer.
+
+
+ Specifies the dominance behavior of contacts between two actors with two certain dominance groups. It is possible to assign each actor to a dominance groups using [`PxActor::setDominanceGroup`](). With dominance groups one can have all contacts created between actors act in one direction only. This is useful, for example, if you want an object to push debris out of its way and be unaffected,while still responding physically to forces and collisions with non-debris objects. Whenever a contact between two actors (a0, a1) needs to be solved, the groups (g0, g1) of both actors are retrieved. Then the PxDominanceGroupPair setting for this group pair is retrieved with getDominanceGroupPair(g0, g1). In the contact, PxDominanceGroupPair::dominance0 becomes the dominance setting for a0, and PxDominanceGroupPair::dominance1 becomes the dominance setting for a1. A dominanceN setting of 1.0f, the default, will permit aN to be pushed or pulled by a(1-N) through the contact. A dominanceN setting of 0.0f, will however prevent aN to be pushed by a(1-N) via the contact. Thus, a PxDominanceGroupPair of (1.0f, 0.0f) makes the interaction one-way. The matrix sampled by getDominanceGroupPair(g1, g2) is initialised by default such that: if g1 == g2, then (1.0f, 1.0f) is returned if g1 < g2, then (0.0f, 1.0f) is returned if g1 > g2, then (1.0f, 0.0f) is returned In other words, we permit actors in higher groups to be pushed around by actors in lower groups by default. These settings should cover most applications, and in fact not overriding these settings may likely result in higher performance. It is not possible to make the matrix asymetric, or to change the diagonal. In other words: it is not possible to change (g1, g2) if (g1==g2) if you set (g1, g2) to X, then (g2, g1) will implicitly and automatically be set to ~X, where: ~(1.0f, 1.0f) is (1.0f, 1.0f) ~(0.0f, 1.0f) is (1.0f, 0.0f) ~(1.0f, 0.0f) is (0.0f, 1.0f) These two restrictions are to make sure that contacts between two actors will always evaluate to the same dominance setting, regardless of the order of the actors. Dominance settings are currently specified as floats 0.0f or 1.0f because in the future we may permit arbitrary fractional settings to express 'partly-one-way' interactions. Sleeping: Does NOT wake actors up automatically.
+
+
+ Samples the dominance matrix.
+
+
+ Return the cpu dispatcher that was set in PxSceneDesc::cpuDispatcher when creating the scene with PxPhysics::createScene
+
+
+ Reserves a new client ID. PX_DEFAULT_CLIENT is always available as the default clientID. Additional clients are returned by this function. Clients cannot be released once created. An error is reported when more than a supported number of clients (currently 128) are created.
+
+
+ Sets a user notify object which receives special simulation events when they occur. Do not set the callback while the simulation is running. Calls to this method while the simulation is running will be ignored.
+
+
+ Retrieves the simulationEventCallback pointer set with setSimulationEventCallback(). The current user notify pointer. See [`PxSimulationEventCallback`].
+
+
+ Sets a user callback object, which receives callbacks on all contacts generated for specified actors. Do not set the callback while the simulation is running. Calls to this method while the simulation is running will be ignored.
+
+
+ Sets a user callback object, which receives callbacks on all CCD contacts generated for specified actors. Do not set the callback while the simulation is running. Calls to this method while the simulation is running will be ignored.
+
+
+ Retrieves the PxContactModifyCallback pointer set with setContactModifyCallback(). The current user contact modify callback pointer. See [`PxContactModifyCallback`].
+
+
+ Retrieves the PxCCDContactModifyCallback pointer set with setContactModifyCallback(). The current user contact modify callback pointer. See [`PxContactModifyCallback`].
+
+
+ Sets a broad-phase user callback object. Do not set the callback while the simulation is running. Calls to this method while the simulation is running will be ignored.
+
+
+ Retrieves the PxBroadPhaseCallback pointer set with setBroadPhaseCallback(). The current broad-phase callback pointer. See [`PxBroadPhaseCallback`].
+
+
+ Sets the shared global filter data which will get passed into the filter shader. It is the user's responsibility to ensure that changing the shared global filter data does not change the filter output value for existing pairs. If the filter output for existing pairs does change nonetheless then such a change will not take effect until the pair gets refiltered. resetFiltering() can be used to explicitly refilter the pairs of specific objects. The provided data will get copied to internal buffers and this copy will be used for filtering calls. Do not use this method while the simulation is running. Calls to this method while the simulation is running will be ignored.
+
+
+ Gets the shared global filter data in use for this scene. The reference points to a copy of the original filter data specified in [`PxSceneDesc`].filterShaderData or provided by #setFilterShaderData(). Shared filter data for filter shader.
+
+
+ Gets the size of the shared global filter data ([`PxSceneDesc`].filterShaderData) Size of shared filter data [bytes].
+
+
+ Marks the object to reset interactions and re-run collision filters in the next simulation step. This call forces the object to remove all existing collision interactions, to search anew for existing contact pairs and to run the collision filters again for found collision pairs. The operation is supported for PxRigidActor objects only. All persistent state of existing interactions will be lost and can not be retrieved even if the same collison pair is found again in the next step. This will mean, for example, that you will not get notified about persistent contact for such an interaction (see [`PxPairFlag::eNOTIFY_TOUCH_PERSISTS`]), the contact pair will be interpreted as newly found instead. Lost touch contact reports will be sent for every collision pair which includes this shape, if they have been requested through [`PxPairFlag::eNOTIFY_TOUCH_LOST`] or #PxPairFlag::eNOTIFY_THRESHOLD_FORCE_LOST. This is an expensive operation, don't use it if you don't have to. Can be used to retrieve collision pairs that were killed by the collision filters (see [`PxFilterFlag::eKILL`]) It is invalid to use this method if the actor has not been added to a scene already. It is invalid to use this method if PxActorFlag::eDISABLE_SIMULATION is set. Do not use this method while the simulation is running. Sleeping: Does wake up the actor. True if success
+
+
+ Marks the object to reset interactions and re-run collision filters for specified shapes in the next simulation step. This is a specialization of the resetFiltering(PxActor & actor) method and allows to reset interactions for specific shapes of a PxRigidActor. Do not use this method while the simulation is running. Sleeping: Does wake up the actor.
+
+
+ Gets the pair filtering mode for kinematic-kinematic pairs. Filtering mode for kinematic-kinematic pairs.
+
+
+ Gets the pair filtering mode for static-kinematic pairs. Filtering mode for static-kinematic pairs.
+
+
+ Advances the simulation by an elapsedTime time. Large elapsedTime values can lead to instabilities. In such cases elapsedTime should be subdivided into smaller time intervals and simulate() should be called multiple times for each interval. Calls to simulate() should pair with calls to fetchResults(): Each fetchResults() invocation corresponds to exactly one simulate() invocation; calling simulate() twice without an intervening fetchResults() or fetchResults() twice without an intervening simulate() causes an error condition. scene->simulate(); ...do some processing until physics is computed... scene->fetchResults(); ...now results of run may be retrieved. True if success
+
+
+ Performs dynamics phase of the simulation pipeline. Calls to advance() should follow calls to fetchCollision(). An error message will be issued if this sequence is not followed. True if success
+
+
+ Performs collision detection for the scene over elapsedTime Calls to collide() should be the first method called to simulate a frame. True if success
+
+
+ This checks to see if the simulation run has completed. This does not cause the data available for reading to be updated with the results of the simulation, it is simply a status check. The bool will allow it to either return immediately or block waiting for the condition to be met so that it can return true True if the results are available.
+
+
+ This method must be called after collide() and before advance(). It will wait for the collision phase to finish. If the user makes an illegal simulation call, the SDK will issue an error message.
+
+
+ This is the big brother to checkResults() it basically does the following: True if the results have been fetched.
+
+
+ This call performs the first section of fetchResults, and returns a pointer to the contact streams output by the simulation. It can be used to process contact pairs in parallel, which is often a limiting factor for fetchResults() performance. After calling this function and processing the contact streams, call fetchResultsFinish(). Note that writes to the simulation are not permitted between the start of fetchResultsStart() and the end of fetchResultsFinish(). True if the results have been fetched.
+
+
+ This call processes all event callbacks in parallel. It takes a continuation task, which will be executed once all callbacks have been processed. This is a utility function to make it easier to process callbacks in parallel using the PhysX task system. It can only be used in conjunction with fetchResultsStart(...) and fetchResultsFinish(...)
+
+
+ This call performs the second section of fetchResults. It must be called after fetchResultsStart() returns and contact reports have been processed. Note that once fetchResultsFinish() has been called, the contact streams returned in fetchResultsStart() will be invalid.
+
+
+ This call performs the synchronization of particle system data copies.
+
+
+ Clear internal buffers and free memory. This method can be used to clear buffers and free internal memory without having to destroy the scene. Can be useful if the physics data gets streamed in and a checkpoint with a clean state should be created. It is not allowed to call this method while the simulation is running. The call will fail.
+
+
+ Sets a constant gravity for the entire scene. Do not use this method while the simulation is running. Sleeping: Does NOT wake the actor up automatically.
+
+
+ Retrieves the current gravity setting. The current gravity for the scene.
+
+
+ Set the bounce threshold velocity. Collision speeds below this threshold will not cause a bounce. Do not use this method while the simulation is running.
+
+
+ Return the bounce threshold velocity.
+
+
+ Sets the maximum number of CCD passes Do not use this method while the simulation is running.
+
+
+ Gets the maximum number of CCD passes. The maximum number of CCD passes.
+
+
+ Set the maximum CCD separation. Do not use this method while the simulation is running.
+
+
+ Gets the maximum CCD separation. The maximum CCD separation.
+
+
+ Set the CCD threshold. Do not use this method while the simulation is running.
+
+
+ Gets the CCD threshold. The CCD threshold.
+
+
+ Set the max bias coefficient. Do not use this method while the simulation is running.
+
+
+ Gets the max bias coefficient. The max bias coefficient.
+
+
+ Set the friction offset threshold. Do not use this method while the simulation is running.
+
+
+ Gets the friction offset threshold.
+
+
+ Set the friction correlation distance. Do not use this method while the simulation is running.
+
+
+ Gets the friction correlation distance.
+
+
+ Return the friction model.
+
+
+ Return the solver model.
+
+
+ Function that lets you set debug visualization parameters. Returns false if the value passed is out of range for usage specified by the enum. Do not use this method while the simulation is running. False if the parameter is out of range.
+
+
+ Function that lets you query debug visualization parameters. The value of the parameter.
+
+
+ Defines a box in world space to which visualization geometry will be (conservatively) culled. Use a non-empty culling box to enable the feature, and an empty culling box to disable it. Do not use this method while the simulation is running.
+
+
+ Retrieves the visualization culling box. the box to which the geometry will be culled.
+
+
+ Retrieves the render buffer. This will contain the results of any active visualization for this scene. Do not use this method while the simulation is running. Calls to this method while the simulation is running will result in undefined behaviour. The render buffer.
+
+
+ Call this method to retrieve statistics for the current simulation step. Do not use this method while the simulation is running. Calls to this method while the simulation is running will be ignored.
+
+
+ Returns broad-phase type. Broad-phase type
+
+
+ Gets broad-phase caps. True if success
+
+
+ Returns number of regions currently registered in the broad-phase. Number of regions
+
+
+ Gets broad-phase regions. Number of written out regions
+
+
+ Adds a new broad-phase region. The bounds for the new region must be non-empty, otherwise an error occurs and the call is ignored. Note that by default, objects already existing in the SDK that might touch this region will not be automatically added to the region. In other words the newly created region will be empty, and will only be populated with new objects when they are added to the simulation, or with already existing objects when they are updated. It is nonetheless possible to override this default behavior and let the SDK populate the new region automatically with already existing objects overlapping the incoming region. This has a cost though, and it should only be used when the game can not guarantee that all objects within the new region will be added to the simulation after the region itself. Objects automatically move from one region to another during their lifetime. The system keeps tracks of what regions a given object is in. It is legal for an object to be in an arbitrary number of regions. However if an object leaves all regions, or is created outside of all regions, several things happen: - collisions get disabled for this object - if a PxBroadPhaseCallback object is provided, an \"out-of-bounds\" event is generated via that callback - if a PxBroadPhaseCallback object is not provided, a warning/error message is sent to the error stream If an object goes out-of-bounds and user deletes it during the same frame, neither the out-of-bounds event nor the error message is generated. Handle for newly created region, or 0xffffffff in case of failure.
+
+
+ Removes a new broad-phase region. If the region still contains objects, and if those objects do not overlap any region any more, they are not automatically removed from the simulation. Instead, the PxBroadPhaseCallback::onObjectOutOfBounds notification is used for each object. Users are responsible for removing the objects from the simulation if this is the desired behavior. If the handle is invalid, or if a valid handle is removed twice, an error message is sent to the error stream. True if success
+
+
+ Get the task manager associated with this scene the task manager associated with the scene
+
+
+ Lock the scene for reading from the calling thread. When the PxSceneFlag::eREQUIRE_RW_LOCK flag is enabled lockRead() must be called before any read calls are made on the scene. Multiple threads may read at the same time, no threads may read while a thread is writing. If a call to lockRead() is made while another thread is holding a write lock then the calling thread will be blocked until the writing thread calls unlockWrite(). Lock upgrading is *not* supported, that means it is an error to call lockRead() followed by lockWrite(). Recursive locking is supported but each lockRead() call must be paired with an unlockRead().
+
+
+ Unlock the scene from reading. Each unlockRead() must be paired with a lockRead() from the same thread.
+
+
+ Lock the scene for writing from this thread. When the PxSceneFlag::eREQUIRE_RW_LOCK flag is enabled lockWrite() must be called before any write calls are made on the scene. Only one thread may write at a time and no threads may read while a thread is writing. If a call to lockWrite() is made and there are other threads reading then the calling thread will be blocked until the readers complete. Writers have priority. If a thread is blocked waiting to write then subsequent calls to lockRead() from other threads will be blocked until the writer completes. If multiple threads are waiting to write then the thread that is first granted access depends on OS scheduling. Recursive locking is supported but each lockWrite() call must be paired with an unlockWrite(). If a thread has already locked the scene for writing then it may call lockRead().
+
+
+ Unlock the scene from writing. Each unlockWrite() must be paired with a lockWrite() from the same thread.
+
+
+ set the cache blocks that can be used during simulate(). Each frame the simulation requires memory to store contact, friction, and contact cache data. This memory is used in blocks of 16K. Each frame the blocks used by the previous frame are freed, and may be retrieved by the application using PxScene::flushSimulation() This call will force allocation of cache blocks if the numBlocks parameter is greater than the currently allocated number of blocks, and less than the max16KContactDataBlocks parameter specified at scene creation time. Do not use this method while the simulation is running.
+
+
+ get the number of cache blocks currently used by the scene This function may not be called while the scene is simulating the number of cache blocks currently used by the scene
+
+
+ get the maximum number of cache blocks used by the scene This function may not be called while the scene is simulating the maximum number of cache blocks everused by the scene
+
+
+ Return the value of PxSceneDesc::contactReportStreamBufferSize that was set when creating the scene with PxPhysics::createScene
+
+
+ Sets the number of actors required to spawn a separate rigid body solver thread. Do not use this method while the simulation is running.
+
+
+ Retrieves the number of actors required to spawn a separate rigid body solver thread. Current number of actors required to spawn a separate rigid body solver thread.
+
+
+ Sets the number of articulations required to spawn a separate rigid body solver thread. Do not use this method while the simulation is running.
+
+
+ Retrieves the number of articulations required to spawn a separate rigid body solver thread. Current number of articulations required to spawn a separate rigid body solver thread.
+
+
+ Returns the wake counter reset value. Wake counter reset value
+
+
+ Shift the scene origin by the specified vector. The poses of all objects in the scene and the corresponding data structures will get adjusted to reflect the new origin location (the shift vector will get subtracted from all object positions). It is the user's responsibility to keep track of the summed total origin shift and adjust all input/output to/from PhysX accordingly. Do not use this method while the simulation is running. Calls to this method while the simulation is running will be ignored. Make sure to propagate the origin shift to other dependent modules (for example, the character controller module etc.). This is an expensive operation and we recommend to use it only in the case where distance related precision issues may arise in areas far from the origin.
+
+
+ Returns the Pvd client associated with the scene. the client, NULL if no PVD supported.
+
+
+ Copy GPU articulation data from the internal GPU buffer to a user-provided device buffer.
+
+
+ Apply GPU articulation data from a user-provided device buffer to the internal GPU buffer.
+
+
+ Copy GPU softbody data from the internal GPU buffer to a user-provided device buffer.
+
+
+ Apply user-provided data to the internal softbody system.
+
+
+ Copy contact data from the internal GPU buffer to a user-provided device buffer. The contact data contains pointers to internal state and is only valid until the next call to simulate().
+
+
+ Copy GPU rigid body data from the internal GPU buffer to a user-provided device buffer.
+
+
+ Apply user-provided data to rigid body.
+
+
+ Compute dense Jacobian matrices for specified articulations on the GPU. The size of Jacobians can vary by articulation, since it depends on the number of links, degrees-of-freedom, and whether the base is fixed. The size is determined using these formulas: nCols = (fixedBase ? 0 : 6) + dofCount nRows = (fixedBase ? 0 : 6) + (linkCount - 1) * 6; The user must ensure that adequate space is provided for each Jacobian matrix.
+
+
+ Compute the joint-space inertia matrices that maps joint accelerations to joint forces: forces = M * accelerations on the GPU. The size of matrices can vary by articulation, since it depends on the number of links and degrees-of-freedom. The size is determined using this formula: sizeof(float) * dofCount * dofCount The user must ensure that adequate space is provided for each mass matrix.
+
+
+ Computes the joint DOF forces required to counteract gravitational forces for the given articulation pose. The size of the result can vary by articulation, since it depends on the number of links and degrees-of-freedom. The size is determined using this formula: sizeof(float) * dofCount The user must ensure that adequate space is provided for each articulation.
+
+
+ Computes the joint DOF forces required to counteract coriolis and centrifugal forces for the given articulation pose. The size of the result can vary by articulation, since it depends on the number of links and degrees-of-freedom. The size is determined using this formula: sizeof(float) * dofCount The user must ensure that adequate space is provided for each articulation.
+
+
+ Apply user-provided data to particle buffers. This function should be used if the particle buffer flags are already on the device. Otherwise, use PxParticleBuffer::raiseFlags() from the CPU. This assumes the data has been changed directly in the PxParticleBuffer.
+
+
+ Constructor
+
+
+ Constructor
+
+
+ Creates the controller manager. The character controller is informed by [`PxDeletionListener::onRelease`]() when actors or shapes are released, and updates its internal caches accordingly. If character controller movement or a call to [`PxControllerManager::shiftOrigin`]() may overlap with actor/shape releases, internal data structures must be guarded against concurrent access. Locking guarantees thread safety in such scenarios. locking may result in significant slowdown for release of actors or shapes. By default, locking is disabled.
+
+
+ Raycast returning any blocking hit, not necessarily the closest. Returns whether any rigid actor is hit along the ray. Shooting a ray from within an object leads to different results depending on the shape type. Please check the details in article SceneQuery. User can ignore such objects by using one of the provided filter mechanisms. True if a blocking hit was found.
+
+
+ Raycast returning a single result. Returns the first rigid actor that is hit along the ray. Data for a blocking hit will be returned as specified by the outputFlags field. Touching hits will be ignored. Shooting a ray from within an object leads to different results depending on the shape type. Please check the details in article SceneQuery. User can ignore such objects by using one of the provided filter mechanisms. True if a blocking hit was found.
+
+
+ Raycast returning multiple results. Find all rigid actors that get hit along the ray. Each result contains data as specified by the outputFlags field. Touching hits are not ordered. Shooting a ray from within an object leads to different results depending on the shape type. Please check the details in article SceneQuery. User can ignore such objects by using one of the provided filter mechanisms. Number of hits in the buffer, or -1 if the buffer overflowed.
+
+
+ Sweep returning any blocking hit, not necessarily the closest. Returns whether any rigid actor is hit along the sweep path. If a shape from the scene is already overlapping with the query shape in its starting position, behavior is controlled by the PxSceneQueryFlag::eINITIAL_OVERLAP flag. True if a blocking hit was found.
+
+
+ Sweep returning a single result. Returns the first rigid actor that is hit along the ray. Data for a blocking hit will be returned as specified by the outputFlags field. Touching hits will be ignored. If a shape from the scene is already overlapping with the query shape in its starting position, behavior is controlled by the PxSceneQueryFlag::eINITIAL_OVERLAP flag. True if a blocking hit was found.
+
+
+ Sweep returning multiple results. Find all rigid actors that get hit along the sweep. Each result contains data as specified by the outputFlags field. Touching hits are not ordered. If a shape from the scene is already overlapping with the query shape in its starting position, behavior is controlled by the PxSceneQueryFlag::eINITIAL_OVERLAP flag. Number of hits in the buffer, or -1 if the buffer overflowed.
+
+
+ Test overlap between a geometry and objects in the scene. Filtering: Overlap tests do not distinguish between touching and blocking hit types. Both get written to the hit buffer. PxHitFlag::eMESH_MULTIPLE and PxHitFlag::eMESH_BOTH_SIDES have no effect in this case Number of hits in the buffer, or -1 if the buffer overflowed.
+
+
+ Test returning, for a given geometry, any overlapping object in the scene. Filtering: Overlap tests do not distinguish between touching and blocking hit types. Both trigger a hit. PxHitFlag::eMESH_MULTIPLE and PxHitFlag::eMESH_BOTH_SIDES have no effect in this case True if an overlap was found.
+
+
+ Create a PxBatchQueryExt without the need for pre-allocated result or touch buffers. Returns a PxBatchQueryExt instance. A NULL pointer will be returned if the subsequent allocations fail or if any of the arguments are illegal. In the event that a NULL pointer is returned a corresponding error will be issued to the error stream.
+
+
+ Create a PxBatchQueryExt with user-supplied result and touch buffers. Returns a PxBatchQueryExt instance. A NULL pointer will be returned if the subsequent allocations fail or if any of the arguments are illegal. In the event that a NULL pointer is returned a corresponding error will be issued to the error stream.
+
+
+ Advances the iterator to next set of extra data items. The contact pair extra data stream contains sets of items as requested by the corresponding [`PxPairFlag`] flags [`PxPairFlag::ePRE_SOLVER_VELOCITY`], #PxPairFlag::ePOST_SOLVER_VELOCITY, #PxPairFlag::eCONTACT_EVENT_POSE. A set can contain one item of each plus the PxContactPairIndex item. This method parses the stream and points the iterator member variables to the corresponding items of the current set, if they are available. If CCD is not enabled, you should only get one set of items. If CCD with multiple passes is enabled, you might get more than one item set. Even though contact pair extra data is requested per shape pair, you will not get an item set per shape pair but one per actor pair. If, for example, an actor has two shapes and both collide with another actor, then there will only be one item set (since it applies to both shape pairs). True if there was another set of extra data items in the stream, else false.
+
+
+ Extracts the contact points from the stream and stores them in a convenient format. Number of contact points written to the buffer.
+
+
+ Helper method to clone the contact pair and copy the contact data stream into a user buffer. The contact data stream is only accessible during the contact report callback. This helper function provides copy functionality to buffer the contact stream information such that it can get accessed at a later stage.
+
+
+ Release this object.
+
+
+ Retrieve rigid actors in the pruning structure. You can retrieve the number of rigid actor pointers by calling [`getNbRigidActors`]() Number of rigid actor pointers written to the buffer.
+
+
+ Returns the number of rigid actors in the pruning structure. You can use [`getRigidActors`]() to retrieve the rigid actor pointers. Number of rigid actors in the pruning structure.
+
+
+ Gets the merge data for static actors This is mainly called by the PxSceneQuerySystem::merge() function to merge a PxPruningStructure with the internal data-structures of the scene-query system. Implementation-dependent merge data for static actors.
+
+
+ Gets the merge data for dynamic actors This is mainly called by the PxSceneQuerySystem::merge() function to merge a PxPruningStructure with the internal data-structures of the scene-query system. Implementation-dependent merge data for dynamic actors.
+
+
+ Releases the context.
+
+
+ Retrieves the controller manager associated with this context. The associated controller manager
+
+
+ Adds an obstacle to the context. Handle for newly-added obstacle
+
+
+ Removes an obstacle from the context. True if success
+
+
+ Updates data for an existing obstacle. True if success
+
+
+ Retrieves number of obstacles in the context. Number of obstacles in the context
+
+
+ Retrieves desired obstacle. Desired obstacle
+
+
+ Retrieves desired obstacle by given handle. Desired obstacle
+
+
+ Called when current controller hits a shape. This is called when the CCT moves and hits a shape. This will not be called when a moving shape hits a non-moving CCT.
+
+
+ Called when current controller hits another controller.
+
+
+ Called when current controller hits a user-defined obstacle.
+
+
+ Filtering method for CCT-vs-CCT. true to keep the pair, false to filter it out
+
+
+ returns true if the current settings are valid True if the descriptor is valid.
+
+
+ Returns the character controller type The controllers type.
+
+
+ Return the type of controller
+
+
+ Releases the controller.
+
+
+ Moves the character using a \"collide-and-slide\" algorithm. Collision flags, collection of ::PxControllerCollisionFlags
+
+
+ Sets controller's position. The position controlled by this function is the center of the collision shape. This is a 'teleport' function, it doesn't check for collisions. The character's position must be such that it does not overlap the static geometry. To move the character under normal conditions use the [`move`]() function. Currently always returns true.
+
+
+ Retrieve the raw position of the controller. The position retrieved by this function is the center of the collision shape. To retrieve the bottom position of the shape, a.k.a. the foot position, use the getFootPosition() function. The position is updated by calls to move(). Calling this method without calling move() will return the last position or the initial position of the controller. The controller's center position
+
+
+ Set controller's foot position. The position controlled by this function is the bottom of the collision shape, a.k.a. the foot position. The foot position takes the contact offset into account This is a 'teleport' function, it doesn't check for collisions. To move the character under normal conditions use the [`move`]() function. Currently always returns true.
+
+
+ Retrieve the \"foot\" position of the controller, i.e. the position of the bottom of the CCT's shape. The foot position takes the contact offset into account The controller's foot position
+
+
+ Get the rigid body actor associated with this controller (see PhysX documentation). The behavior upon manually altering this actor is undefined, you should primarily use it for reading const properties. the actor associated with the controller.
+
+
+ The step height.
+
+
+ Retrieve the step height. The step offset for the controller.
+
+
+ Sets the non-walkable mode for the CCT.
+
+
+ Retrieves the non-walkable mode for the CCT. The current non-walkable mode.
+
+
+ Retrieve the contact offset. The contact offset for the controller.
+
+
+ Sets the contact offset.
+
+
+ Retrieve the 'up' direction. The up direction for the controller.
+
+
+ Sets the 'up' direction.
+
+
+ Retrieve the slope limit. The slope limit for the controller.
+
+
+ Sets the slope limit. This feature can not be enabled at runtime, i.e. if the slope limit is zero when creating the CCT (which disables the feature) then changing the slope limit at runtime will not have any effect, and the call will be ignored.
+
+
+ Flushes internal geometry cache. The character controller uses caching in order to speed up collision testing. The cache is automatically flushed when a change to static objects is detected in the scene. For example when a static shape is added, updated, or removed from the scene, the cache is automatically invalidated. However there may be situations that cannot be automatically detected, and those require manual invalidation of the cache. Currently the user must call this when the filtering behavior changes (the PxControllerFilters parameter of the PxController::move call). While the controller in principle could detect a change in these parameters, it cannot detect a change in the behavior of the filtering function.
+
+
+ Retrieve the scene associated with the controller. The physics scene
+
+
+ Returns the user data associated with this controller. The user pointer associated with the controller.
+
+
+ Sets the user data associated with this controller.
+
+
+ Returns information about the controller's internal state.
+
+
+ Returns the controller's internal statistics.
+
+
+ Resizes the controller. This function attempts to resize the controller to a given size, while making sure the bottom position of the controller remains constant. In other words the function modifies both the height and the (center) position of the controller. This is a helper function that can be used to implement a 'crouch' functionality for example.
+
+
+ (re)sets the structure to the default.
+
+
+ returns true if the current settings are valid True if the descriptor is valid.
+
+
+ Gets controller's half height. The half height of the controller.
+
+
+ Gets controller's half side extent. The half side extent of the controller.
+
+
+ Gets controller's half forward extent. The half forward extent of the controller.
+
+
+ Sets controller's half height. this doesn't check for collisions. Currently always true.
+
+
+ Sets controller's half side extent. this doesn't check for collisions. Currently always true.
+
+
+ Sets controller's half forward extent. this doesn't check for collisions. Currently always true.
+
+
+ (re)sets the structure to the default.
+
+
+ returns true if the current settings are valid True if the descriptor is valid.
+
+
+ Gets controller's radius. The radius of the controller.
+
+
+ Sets controller's radius. this doesn't check for collisions. Currently always true.
+
+
+ Gets controller's height. The height of the capsule controller.
+
+
+ Resets controller's height. this doesn't check for collisions. Currently always true.
+
+
+ Gets controller's climbing mode. The capsule controller's climbing mode.
+
+
+ Sets controller's climbing mode.
+
+
+ Retrieve behavior flags for a shape. When the CCT touches a shape, the CCT's behavior w.r.t. this shape can be customized by users. This function retrieves the desired PxControllerBehaviorFlag flags capturing the desired behavior. See comments about deprecated functions at the start of this class Desired behavior flags for the given shape
+
+
+ Retrieve behavior flags for a controller. When the CCT touches a controller, the CCT's behavior w.r.t. this controller can be customized by users. This function retrieves the desired PxControllerBehaviorFlag flags capturing the desired behavior. The flag PxControllerBehaviorFlag::eCCT_CAN_RIDE_ON_OBJECT is not supported. See comments about deprecated functions at the start of this class Desired behavior flags for the given controller
+
+
+ Retrieve behavior flags for an obstacle. When the CCT touches an obstacle, the CCT's behavior w.r.t. this obstacle can be customized by users. This function retrieves the desired PxControllerBehaviorFlag flags capturing the desired behavior. See comments about deprecated functions at the start of this class Desired behavior flags for the given obstacle
+
+
+ Releases the controller manager. This will release all associated controllers and obstacle contexts. This function is required to be called to release foundation usage.
+
+
+ Returns the scene the manager is adding the controllers to. The associated physics scene.
+
+
+ Returns the number of controllers that are being managed. The number of controllers.
+
+
+ Retrieve one of the controllers in the manager. The controller with the specified index.
+
+
+ Creates a new character controller. The new controller
+
+
+ Releases all the controllers that are being managed.
+
+
+ Retrieves debug data. The render buffer filled with debug-render data
+
+
+ Sets debug rendering flags
+
+
+ Returns the number of obstacle contexts that are being managed. The number of obstacle contexts.
+
+
+ Retrieve one of the obstacle contexts in the manager. The obstacle context with the specified index.
+
+
+ Creates an obstacle context. New obstacle context
+
+
+ Computes character-character interactions. This function is an optional helper to properly resolve interactions between characters, in case they overlap (which can happen for gameplay reasons, etc). You should call this once per frame, before your PxController::move() calls. The function will not move the characters directly, but it will compute overlap information for each character that will be used in the next move() call. You need to provide a proper time value here so that interactions are resolved in a way that do not depend on the framerate. If you only have one character in the scene, or if you can guarantee your characters will never overlap, then you do not need to call this function. Releasing the manager will automatically release all the associated obstacle contexts.
+
+
+ Enables or disables runtime tessellation. Large triangles can create accuracy issues in the sweep code, which in turn can lead to characters not sliding smoothly against geometries, or even penetrating them. This feature allows one to reduce those issues by tessellating large triangles at runtime, before performing sweeps against them. The amount of tessellation is controlled by the 'maxEdgeLength' parameter. Any triangle with at least one edge length greater than the maxEdgeLength will get recursively tessellated, until resulting triangles are small enough. This features only applies to triangle meshes, convex meshes, heightfields and boxes.
+
+
+ Enables or disables the overlap recovery module. The overlap recovery module can be used to depenetrate CCTs from static objects when an overlap is detected. This can happen in three main cases: - when the CCT is directly spawned or teleported in another object - when the CCT algorithm fails due to limited FPU accuracy - when the \"up vector\" is modified, making the rotated CCT shape overlap surrounding objects When activated, the CCT module will automatically try to resolve the penetration, and move the CCT to a safe place where it does not overlap other objects anymore. This only concerns static objects, dynamic objects are ignored by the recovery module. When the recovery module is not activated, it is possible for the CCTs to go through static objects. By default, the recovery module is enabled. The recovery module currently works with all geometries except heightfields.
+
+
+ Enables or disables the precise sweeps. Precise sweeps are more accurate, but also potentially slower than regular sweeps. By default, precise sweeps are enabled.
+
+
+ Enables or disables vertical sliding against ceilings. Geometry is seen as \"ceilings\" when the following condition is met: dot product(contact normal, up direction) < 0.0f This flag controls whether characters should slide vertically along the geometry in that case. By default, sliding is allowed.
+
+
+ Shift the origin of the character controllers and obstacle objects by the specified vector. The positions of all character controllers, obstacle objects and the corresponding data structures will get adjusted to reflect the shifted origin location (the shift vector will get subtracted from all character controller and obstacle object positions). It is the user's responsibility to keep track of the summed total origin shift and adjust all input/output to/from PhysXCharacterKinematic accordingly. This call will not automatically shift the PhysX scene and its objects. You need to call PxScene::shiftOrigin() seperately to keep the systems in sync.
+
+
+ Returns true if the descriptor is valid. true if the current settings are valid
+
+
+ (re)sets the structure to the default.
+
+
+ Returns true if the descriptor is valid. True if the current settings are valid
+
+
+ (re)sets the structure to the default.
+
+
+ Returns true if the descriptor is valid. true if the current settings are valid
+
+
+ Desc initialization to default value.
+
+
+ Returns true if the descriptor is valid. true if the current settings are valid.
+
+
+ Returns type of midphase mesh structure. PxMeshMidPhase::Enum
+
+
+ Initialize the midphase mesh structure descriptor
+
+
+ Returns true if the descriptor is valid. true if the current settings are valid.
+
+
+ Initialize the BVH descriptor
+
+
+ Returns true if the descriptor is valid. true if the current settings are valid.
+
+
+ Cooks a bounding volume hierarchy. The results are written to the stream. PxCookBVH() allows a BVH description to be cooked into a binary stream suitable for loading and performing BVH detection at runtime. true on success.
+
+
+ Cooks and creates a bounding volume hierarchy without going through a stream. This method does the same as cookBVH, but the produced BVH is not stored into a stream but is either directly inserted in PxPhysics, or created as a standalone object. Use this method if you are unable to cook offline. PxInsertionCallback can be obtained through PxPhysics::getPhysicsInsertionCallback() or PxCooking::getStandaloneInsertionCallback(). PxBVH pointer on success
+
+
+ Cooks a convex mesh. The results are written to the stream. To create a triangle mesh object it is necessary to first 'cook' the mesh data into a form which allows the SDK to perform efficient collision detection. cookConvexMesh() allows a mesh description to be cooked into a binary stream suitable for loading and performing collision detection at runtime. The number of vertices and the number of convex polygons in a cooked convex mesh is limited to 255. If those limits are exceeded in either the user-provided data or the final cooked mesh, an error is reported. true on success.
+
+
+ Cooks and creates a convex mesh without going through a stream. This method does the same as cookConvexMesh, but the produced mesh is not stored into a stream but is either directly inserted in PxPhysics, or created as a standalone object. Use this method if you are unable to cook offline. PxInsertionCallback can be obtained through PxPhysics::getPhysicsInsertionCallback() or PxCooking::getStandaloneInsertionCallback(). PxConvexMesh pointer on success
+
+
+ Verifies if the convex mesh is valid. Prints an error message for each inconsistency found. The convex mesh descriptor must contain an already created convex mesh - the vertices, indices and polygons must be provided. This function should be used if PxConvexFlag::eDISABLE_MESH_VALIDATION is planned to be used in release builds. true if all the validity conditions hold, false otherwise.
+
+
+ Computed hull polygons from given vertices and triangles. Polygons are needed for PxConvexMeshDesc rather than triangles. Please note that the resulting polygons may have different number of vertices. Some vertices may be removed. The output vertices, indices and polygons must be used to construct a hull. The provided PxAllocatorCallback does allocate the out array's. It is the user responsibility to deallocated those array's. true on success
+
+
+ Verifies if the triangle mesh is valid. Prints an error message for each inconsistency found. The following conditions are true for a valid triangle mesh: 1. There are no duplicate vertices (within specified vertexWeldTolerance. See PxCookingParams::meshWeldTolerance) 2. There are no large triangles (within specified PxTolerancesScale.) true if all the validity conditions hold, false otherwise.
+
+
+ Cooks and creates a triangle mesh without going through a stream. This method does the same as cookTriangleMesh, but the produced mesh is not stored into a stream but is either directly inserted in PxPhysics, or created as a standalone object. Use this method if you are unable to cook offline. PxInsertionCallback can be obtained through PxPhysics::getPhysicsInsertionCallback() or PxCooking::getStandaloneInsertionCallback(). PxTriangleMesh pointer on success.
+
+
+ Cooks a triangle mesh. The results are written to the stream. To create a triangle mesh object it is necessary to first 'cook' the mesh data into a form which allows the SDK to perform efficient collision detection. PxCookTriangleMesh() allows a mesh description to be cooked into a binary stream suitable for loading and performing collision detection at runtime. true on success
+
+
+ Set the actors for this joint. An actor may be NULL to indicate the world frame. At most one of the actors may be NULL.
+
+
+ Get the actors for this joint.
+
+
+ Set the joint local pose for an actor. This is the relative pose which locates the joint frame relative to the actor.
+
+
+ get the joint local pose for an actor. return the local pose for this joint
+
+
+ get the relative pose for this joint This function returns the pose of the joint frame of actor1 relative to actor0
+
+
+ get the relative linear velocity of the joint This function returns the linear velocity of the origin of the constraint frame of actor1, relative to the origin of the constraint frame of actor0. The value is returned in the constraint frame of actor0
+
+
+ get the relative angular velocity of the joint This function returns the angular velocity of actor1 relative to actor0. The value is returned in the constraint frame of actor0
+
+
+ set the break force for this joint. if the constraint force or torque on the joint exceeds the specified values, the joint will break, at which point it will not constrain the two actors and the flag PxConstraintFlag::eBROKEN will be set. The force and torque are measured in the joint frame of the first actor
+
+
+ get the break force for this joint.
+
+
+ set the constraint flags for this joint.
+
+
+ set a constraint flags for this joint to a specified value.
+
+
+ get the constraint flags for this joint. the constraint flags
+
+
+ set the inverse mass scale for actor0.
+
+
+ get the inverse mass scale for actor0. inverse mass scale for actor0
+
+
+ set the inverse inertia scale for actor0.
+
+
+ get the inverse inertia scale for actor0. inverse inertia scale for actor0
+
+
+ set the inverse mass scale for actor1.
+
+
+ get the inverse mass scale for actor1. inverse mass scale for actor1
+
+
+ set the inverse inertia scale for actor1.
+
+
+ get the inverse inertia scale for actor1. inverse inertia scale for actor1
+
+
+ Retrieves the PxConstraint corresponding to this joint. This can be used to determine, among other things, the force applied at the joint. the constraint
+
+
+ Sets a name string for the object that can be retrieved with getName(). This is for debugging and is not used by the SDK. The string is not copied by the SDK, only the pointer is stored.
+
+
+ Retrieves the name string set with setName(). Name string associated with object.
+
+
+ Deletes the joint. This call does not wake up the connected rigid bodies.
+
+
+ Retrieves the scene which this joint belongs to. Owner Scene. NULL if not part of a scene.
+
+
+ Helper function to setup a joint's global frame This replaces the following functions from previous SDK versions: void NxJointDesc::setGlobalAnchor(const NxVec3 & wsAnchor); void NxJointDesc::setGlobalAxis(const NxVec3 & wsAxis); The function sets the joint's localPose using world-space input parameters.
+
+
+ Return the current distance of the joint
+
+
+ Set the allowed minimum distance for the joint. The minimum distance must be no more than the maximum distance Default 0.0f Range [0, PX_MAX_F32)
+
+
+ Get the allowed minimum distance for the joint. the allowed minimum distance
+
+
+ Set the allowed maximum distance for the joint. The maximum distance must be no less than the minimum distance. Default 0.0f Range [0, PX_MAX_F32)
+
+
+ Get the allowed maximum distance for the joint. the allowed maximum distance
+
+
+ Set the error tolerance of the joint.
+
+
+ Get the error tolerance of the joint. the distance beyond the joint's [min, max] range before the joint becomes active. Default 0.25f * PxTolerancesScale::length Range (0, PX_MAX_F32) This value should be used to ensure that if the minimum distance is zero and the spring function is in use, the rest length of the spring is non-zero.
+
+
+ Set the strength of the joint spring. The spring is used if enabled, and the distance exceeds the range [min-error, max+error]. Default 0.0f Range [0, PX_MAX_F32)
+
+
+ Get the strength of the joint spring. stiffness the spring strength of the joint
+
+
+ Set the damping of the joint spring. The spring is used if enabled, and the distance exceeds the range [min-error, max+error]. Default 0.0f Range [0, PX_MAX_F32)
+
+
+ Get the damping of the joint spring. the degree of damping of the joint spring of the joint
+
+
+ Set the contact distance for the min & max distance limits. This is similar to the PxJointLimitParameters::contactDistance parameter for regular limits. The two most common values are 0 and infinite. Infinite means the internal constraints are always created, resulting in the best simulation quality but slower performance. Zero means the internal constraints are only created when the limits are violated, resulting in best performance but worse simulation quality. Default 0.0f Range [0, PX_MAX_F32)
+
+
+ Get the contact distance. the contact distance
+
+
+ Set the flags specific to the Distance Joint. Default PxDistanceJointFlag::eMAX_DISTANCE_ENABLED
+
+
+ Set a single flag specific to a Distance Joint to true or false.
+
+
+ Get the flags specific to the Distance Joint. the joint flags
+
+
+ Returns string name of PxDistanceJoint, used for serialization
+
+
+ Set the current contact of the joint
+
+
+ Set the current contact normal of the joint
+
+
+ Set the current penetration of the joint
+
+
+ Return the current contact of the joint
+
+
+ Return the current contact normal of the joint
+
+
+ Return the current penetration value of the joint
+
+
+ Returns string name of PxContactJoint, used for serialization
+
+
+ Returns string name of PxFixedJoint, used for serialization
+
+
+ Returns true if the current settings are valid. true if the current settings are valid
+
+
+ Returns true if the limit is valid true if the current settings are valid
+
+
+ Returns true if the limit is valid. true if the current settings are valid
+
+
+ Returns true if the limit is valid. true if the current settings are valid
+
+
+ Returns true if the limit is valid. true if the current settings are valid
+
+
+ Returns true if the limit is valid. true if the current settings are valid
+
+
+ returns the displacement of the joint along its axis.
+
+
+ returns the velocity of the joint along its axis
+
+
+ sets the joint limit parameters. The limit range is [-PX_MAX_F32, PX_MAX_F32], but note that the width of the limit (upper-lower) must also be a valid float.
+
+
+ gets the joint limit parameters.
+
+
+ Set the flags specific to the Prismatic Joint. Default PxPrismaticJointFlags(0)
+
+
+ Set a single flag specific to a Prismatic Joint to true or false.
+
+
+ Get the flags specific to the Prismatic Joint. the joint flags
+
+
+ Returns string name of PxPrismaticJoint, used for serialization
+
+
+ return the angle of the joint, in the range (-2*Pi, 2*Pi]
+
+
+ return the velocity of the joint
+
+
+ set the joint limit parameters. The limit is activated using the flag PxRevoluteJointFlag::eLIMIT_ENABLED The limit angle range is (-2*Pi, 2*Pi).
+
+
+ get the joint limit parameters. the joint limit parameters
+
+
+ set the target velocity for the drive model. The motor will only be able to reach this velocity if the maxForce is sufficiently large. If the joint is spinning faster than this velocity, the motor will actually try to brake (see PxRevoluteJointFlag::eDRIVE_FREESPIN.) The sign of this variable determines the rotation direction, with positive values going the same way as positive joint angles. Setting a very large target velocity may cause undesirable results. Range: (-PX_MAX_F32, PX_MAX_F32) Default: 0.0
+
+
+ gets the target velocity for the drive model. the drive target velocity
+
+
+ sets the maximum torque the drive can exert. The value set here may be used either as an impulse limit or a force limit, depending on the flag PxConstraintFlag::eDRIVE_LIMITS_ARE_FORCES Range: [0, PX_MAX_F32) Default: PX_MAX_F32
+
+
+ gets the maximum torque the drive can exert. the torque limit
+
+
+ sets the gear ratio for the drive. When setting up the drive constraint, the velocity of the first actor is scaled by this value, and its response to drive torque is scaled down. So if the drive target velocity is zero, the second actor will be driven to the velocity of the first scaled by the gear ratio Range: [0, PX_MAX_F32) Default: 1.0
+
+
+ gets the gear ratio. the drive gear ratio
+
+
+ sets the flags specific to the Revolute Joint. Default PxRevoluteJointFlags(0)
+
+
+ sets a single flag specific to a Revolute Joint.
+
+
+ gets the flags specific to the Revolute Joint. the joint flags
+
+
+ Returns string name of PxRevoluteJoint, used for serialization
+
+
+ Set the limit cone. If enabled, the limit cone will constrain the angular movement of the joint to lie within an elliptical cone. the limit cone
+
+
+ Get the limit cone.
+
+
+ get the swing angle of the joint from the Y axis
+
+
+ get the swing angle of the joint from the Z axis
+
+
+ Set the flags specific to the Spherical Joint. Default PxSphericalJointFlags(0)
+
+
+ Set a single flag specific to a Spherical Joint to true or false.
+
+
+ Get the flags specific to the Spherical Joint. the joint flags
+
+
+ Returns string name of PxSphericalJoint, used for serialization
+
+
+ returns true if the drive is valid
+
+
+ Set the motion type around the specified axis. Each axis may independently specify that the degree of freedom is locked (blocking relative movement along or around this axis), limited by the corresponding limit, or free. Default: all degrees of freedom are locked
+
+
+ Get the motion type around the specified axis. the motion type around the specified axis
+
+
+ get the twist angle of the joint, in the range (-2*Pi, 2*Pi]
+
+
+ get the swing angle of the joint from the Y axis
+
+
+ get the swing angle of the joint from the Z axis
+
+
+ Set the distance limit for the joint. A single limit constraints all linear limited degrees of freedom, forming a linear, circular or spherical constraint on motion depending on the number of limited degrees. This is similar to a distance limit.
+
+
+ Get the distance limit for the joint. the distance limit structure
+
+
+ Set the linear limit for a given linear axis. This function extends the previous setDistanceLimit call with the following features: - there can be a different limit for each linear axis - each limit is defined by two values, i.e. it can now be asymmetric This can be used to create prismatic joints similar to PxPrismaticJoint, or point-in-quad joints, or point-in-box joints.
+
+
+ Get the linear limit for a given linear axis. the linear limit pair structure from desired axis
+
+
+ Set the twist limit for the joint. The twist limit controls the range of motion around the twist axis. The limit angle range is (-2*Pi, 2*Pi).
+
+
+ Get the twist limit for the joint. the twist limit structure
+
+
+ Set the swing cone limit for the joint. The cone limit is used if either or both swing axes are limited. The extents are symmetrical and measured in the frame of the parent. If only one swing degree of freedom is limited, the corresponding value from the cone limit defines the limit range.
+
+
+ Get the cone limit for the joint. the swing limit structure
+
+
+ Set a pyramidal swing limit for the joint. The pyramid limits will only be used in the following cases: - both swing Y and Z are limited. The limit shape is then a pyramid. - Y is limited and Z is locked, or vice versa. The limit shape is an asymmetric angular section, similar to what is supported for the twist axis. The remaining cases (Y limited and Z is free, or vice versa) are not supported.
+
+
+ Get the pyramidal swing limit for the joint. the swing limit structure
+
+
+ Set the drive parameters for the specified drive type. Default The default drive spring and damping values are zero, the force limit is zero, and no flags are set.
+
+
+ Get the drive parameters for the specified drive type.
+
+
+ Set the drive goal pose The goal is relative to the constraint frame of actor[0] Default the identity transform
+
+
+ Get the drive goal pose.
+
+
+ Set the target goal velocity for drive. The velocity is measured in the constraint frame of actor[0]
+
+
+ Get the target goal velocity for joint drive.
+
+
+ Set the linear tolerance threshold for projection. Projection is enabled if PxConstraintFlag::ePROJECTION is set for the joint. If the joint separates by more than this distance along its locked degrees of freedom, the solver will move the bodies to close the distance. Setting a very small tolerance may result in simulation jitter or other artifacts. Sometimes it is not possible to project (for example when the joints form a cycle). Range: [0, PX_MAX_F32) Default: 1e10f
+
+
+ Get the linear tolerance threshold for projection. the linear tolerance threshold
+
+
+ Set the angular tolerance threshold for projection. Projection is enabled if PxConstraintFlag::ePROJECTION is set for the joint. If the joint deviates by more than this angle around its locked angular degrees of freedom, the solver will move the bodies to close the angle. Setting a very small tolerance may result in simulation jitter or other artifacts. Sometimes it is not possible to project (for example when the joints form a cycle). Range: [0,Pi] Default: Pi Angular projection is implemented only for the case of two or three locked angular degrees of freedom.
+
+
+ Get the angular tolerance threshold for projection. tolerance the angular tolerance threshold in radians
+
+
+ Returns string name of PxD6Joint, used for serialization
+
+
+ Set the hinge/revolute joints connected by the gear joint. The passed joints can be either PxRevoluteJoint, PxD6Joint or PxArticulationJointReducedCoordinate. The joints must define degrees of freedom around the twist axis. They cannot be null. Note that these joints are only used to compute the positional error correction term, used to adjust potential drift between jointed actors. The gear joint can run without calling this function, but in that case some visible overlap may develop over time between the teeth of the gear meshes. Calling this function resets the internal positional error correction term. true if success
+
+
+ Set the desired gear ratio. For two gears with n0 and n1 teeth respectively, the gear ratio is n0/n1. You may need to use a negative gear ratio if the joint frames of involved actors are not oriented in the same direction. Calling this function resets the internal positional error correction term.
+
+
+ Get the gear ratio. Current ratio
+
+
+ Set the hinge & prismatic joints connected by the rack & pinion joint. The passed hinge joint can be either PxRevoluteJoint, PxD6Joint or PxArticulationJointReducedCoordinate. It cannot be null. The passed prismatic joint can be either PxPrismaticJoint or PxD6Joint. It cannot be null. Note that these joints are only used to compute the positional error correction term, used to adjust potential drift between jointed actors. The rack & pinion joint can run without calling this function, but in that case some visible overlap may develop over time between the teeth of the rack & pinion meshes. Calling this function resets the internal positional error correction term. true if success
+
+
+ Set the desired ratio directly. You may need to use a negative gear ratio if the joint frames of involved actors are not oriented in the same direction. Calling this function resets the internal positional error correction term.
+
+
+ Get the ratio. Current ratio
+
+
+ Set the desired ratio indirectly. This is a simple helper function that computes the ratio from passed data: ratio = (PI*2*nbRackTeeth)/(rackLength*nbPinionTeeth) Calling this function resets the internal positional error correction term. true if success
+
+
+ Gets filtering constant K0 and K1. See comments for PxGroupsMask
+
+
+ Setups filtering's K0 and K1 value. See comments for PxGroupsMask
+
+
+ Retrieves filtering operation. See comments for PxGroupsMask
+
+
+ Setups filtering operations. See comments for PxGroupsMask
+
+
+ Translate the center of mass by a given vector and adjust the inertia tensor accordingly.
+
+
+ Sum up individual mass properties. The summed up mass properties.
+
+
+ Find the mesh triangles which touch the specified geometry object. Number of overlaps found. Triangle indices can then be accessed through the [`getResults`]() function.
+
+
+ Find the height field triangles which touch the specified geometry object. Number of overlaps found. Triangle indices can then be accessed through the [`getResults`]() function.
+
+
+ Retrieves array of triangle indices after a findOverlap call. Indices of touched triangles
+
+
+ Retrieves number of triangle indices after a findOverlap call. Number of touched triangles
+
+
+ Deletes the dispatcher. Do not keep a reference to the deleted instance.
+
+
+ Enables profiling at task level. By default enabled only in profiling builds.
+
+
+ Checks if profiling is enabled at task level. True if tasks should be profiled.
+
+
+ Performs a raycast against objects in the scene. Touching hits are not ordered. Shooting a ray from within an object leads to different results depending on the shape type. Please check the details in article SceneQuery. User can ignore such objects by using one of the provided filter mechanisms. This query call writes to a list associated with the query object and is NOT thread safe (for performance reasons there is no lock and overlapping writes from different threads may result in undefined behavior). Returns a PxRaycastBuffer pointer that will store the result of the query after execute() is completed. This will point either to an element of the buffer allocated on construction or to a user buffer passed to the constructor.
+
+
+ Performs a sweep test against objects in the scene. Touching hits are not ordered. If a shape from the scene is already overlapping with the query shape in its starting position, the hit is returned unless eASSUME_NO_INITIAL_OVERLAP was specified. This query call writes to a list associated with the query object and is NOT thread safe (for performance reasons there is no lock and overlapping writes from different threads may result in undefined behavior). Returns a PxSweepBuffer pointer that will store the result of the query after execute() is completed. This will point either to an element of the buffer allocated on construction or to a user buffer passed to the constructor.
+
+
+ Performs an overlap test of a given geometry against objects in the scene. Filtering: returning eBLOCK from user filter for overlap queries will cause a warning (see [`PxQueryHitType`]). eBLOCK should not be returned from user filters for overlap(). Doing so will result in undefined behavior, and a warning will be issued. If the PxQueryFlag::eNO_BLOCK flag is set, the eBLOCK will instead be automatically converted to an eTOUCH and the warning suppressed. This query call writes to a list associated with the query object and is NOT thread safe (for performance reasons there is no lock and overlapping writes from different threads may result in undefined behavior). Returns a PxOverlapBuffer pointer that will store the result of the query after execute() is completed. This will point either to an element of the buffer allocated on construction or to a user buffer passed to the constructor.
+
+
+ Adds a pruner to the system. The internal PhysX scene-query system uses two regular pruners (one for static shapes, one for dynamic shapes) and an optional compound pruner. Our custom scene query system supports an arbitrary number of regular pruners. This can be useful to reduce the load on each pruner, in particular during updates, when internal trees are rebuilt in the background. On the other hand this implementation simply iterates over all created pruners to perform queries, so their cost might increase if a large number of pruners is used. In any case this serves as an example of how the PxSceneQuerySystem API can be used to customize scene queries. A pruner index
+
+
+ Start custom build-steps for all pruners This function is used in combination with customBuildstep() and finishCustomBuildstep() to let users take control of the pruners' build-step & commit calls - basically the pruners' update functions. These functions should be used with the PxSceneQueryUpdateMode::eBUILD_DISABLED_COMMIT_DISABLED update mode, otherwise the build-steps will happen automatically in fetchResults. For N pruners it can be more efficient to use these custom build-step functions to perform the updates in parallel: - call startCustomBuildstep() first (one synchronous call) - for each pruner, call customBuildstep() (asynchronous calls from multiple threads) - once it is done, call finishCustomBuildstep() to finish the update (synchronous call) The multi-threaded update is more efficient here than what it is in PxScene, because the \"flushShapes()\" call is also multi-threaded (while it is not in PxScene). Note that users are responsible for locks here, and these calls should not overlap with other SQ calls. In particular one should not add new objects to the SQ system or perform queries while these calls are happening. The number of pruners in the system.
+
+
+ Perform a custom build-step for a given pruner.
+
+
+ Finish custom build-steps Call this function once after all the customBuildstep() calls are done.
+
+
+ Gets a pruner index for an actor/shape. This user-defined function tells the system in which pruner a given actor/shape should go. The returned index must be valid, i.e. it must have been previously returned to users by PxCustomSceneQuerySystem::addPruner. A pruner index for this actor/shape.
+
+
+ Pruner filtering callback. This will be called for each query to validate whether it should process a given pruner. True to process the pruner, false to skip it entirely
+
+
+ Sets the sampling radius Returns true if the sampling was successful and false if there was a problem. Usually an internal overflow is the problem for very big meshes or very small sampling radii.
+
+
+ Adds new Poisson Samples inside the sphere specified
+
+
+ Adds new Poisson Samples inside the box specified
+
+
+ Checks whether a point is inside the triangle mesh Returns true if the point is inside the triangle mesh
+
+
+ The type this Serializer is meant to operate on.
+
+
+ Convert from a RepX object to a key-value pair hierarchy
+
+
+ Convert from a descriptor to a live object. Must be an object of this Serializer type. The new live object. It can be an invalid object if the instantiation cannot take place.
+
+
+ Connects the SDK to the PhysX Visual Debugger application.
+
+
+ Disconnects the SDK from the PhysX Visual Debugger application. If we are still connected, this will kill the entire debugger connection.
+
+
+ Return if connection to PVD is created.
+
+
+ returns the PVD data transport returns NULL if no transport is present.
+
+
+ Retrieves the PVD flags. See PxPvdInstrumentationFlags.
+
+
+ Releases the pvd instance.
+
+
+ Connects to the Visual Debugger application. return True if success
+
+
+ Disconnects from the Visual Debugger application. If we are still connected, this will kill the entire debugger connection.
+
+
+ Return if connection to PVD is created.
+
+
+ write bytes to the other endpoint of the connection. should lock before witre. If an error occurs this connection will assume to be dead.
+
+
+ send any data and block until we know it is at least on the wire.
+
+
+ Return size of written data.
+
+
+
diff --git a/bin/Debug/net7.0/SpaceNation.Core.Physx.deps.json b/bin/Debug/net7.0/SpaceNation.Core.Physx.deps.json
new file mode 100644
index 0000000..7c7def1
--- /dev/null
+++ b/bin/Debug/net7.0/SpaceNation.Core.Physx.deps.json
@@ -0,0 +1,53 @@
+{
+ "runtimeTarget": {
+ "name": ".NETCoreApp,Version=v7.0",
+ "signature": ""
+ },
+ "compilationOptions": {},
+ "targets": {
+ ".NETCoreApp,Version=v7.0": {
+ "SpaceNation.Core.Physx/1.0.0": {
+ "dependencies": {
+ "MagicPhysX": "1.0.0.0",
+ "MagicPhysX.Toolkit": "1.0.0.0"
+ },
+ "runtime": {
+ "SpaceNation.Core.Physx.dll": {}
+ }
+ },
+ "MagicPhysX/1.0.0.0": {
+ "runtime": {
+ "MagicPhysX.dll": {
+ "assemblyVersion": "1.0.0.0",
+ "fileVersion": "1.0.0.0"
+ }
+ }
+ },
+ "MagicPhysX.Toolkit/1.0.0.0": {
+ "runtime": {
+ "MagicPhysX.Toolkit.dll": {
+ "assemblyVersion": "1.0.0.0",
+ "fileVersion": "1.0.0.0"
+ }
+ }
+ }
+ }
+ },
+ "libraries": {
+ "SpaceNation.Core.Physx/1.0.0": {
+ "type": "project",
+ "serviceable": false,
+ "sha512": ""
+ },
+ "MagicPhysX/1.0.0.0": {
+ "type": "reference",
+ "serviceable": false,
+ "sha512": ""
+ },
+ "MagicPhysX.Toolkit/1.0.0.0": {
+ "type": "reference",
+ "serviceable": false,
+ "sha512": ""
+ }
+ }
+}
\ No newline at end of file
diff --git a/bin/Debug/net7.0/SpaceNation.Core.Physx.dll b/bin/Debug/net7.0/SpaceNation.Core.Physx.dll
new file mode 100644
index 0000000..4494268
Binary files /dev/null and b/bin/Debug/net7.0/SpaceNation.Core.Physx.dll differ
diff --git a/bin/Debug/net7.0/SpaceNation.Core.Physx.pdb b/bin/Debug/net7.0/SpaceNation.Core.Physx.pdb
new file mode 100644
index 0000000..46374c4
Binary files /dev/null and b/bin/Debug/net7.0/SpaceNation.Core.Physx.pdb differ
diff --git a/obj/Debug/net7.0/.NETCoreApp,Version=v7.0.AssemblyAttributes.cs b/obj/Debug/net7.0/.NETCoreApp,Version=v7.0.AssemblyAttributes.cs
new file mode 100644
index 0000000..4257f4b
--- /dev/null
+++ b/obj/Debug/net7.0/.NETCoreApp,Version=v7.0.AssemblyAttributes.cs
@@ -0,0 +1,4 @@
+//
+using System;
+using System.Reflection;
+[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v7.0", FrameworkDisplayName = ".NET 7.0")]
diff --git a/obj/Debug/net7.0/SpaceNation.Core.Physx.AssemblyInfo.cs b/obj/Debug/net7.0/SpaceNation.Core.Physx.AssemblyInfo.cs
new file mode 100644
index 0000000..cfb1e45
--- /dev/null
+++ b/obj/Debug/net7.0/SpaceNation.Core.Physx.AssemblyInfo.cs
@@ -0,0 +1,23 @@
+//------------------------------------------------------------------------------
+//
+// 此代码由工具生成。
+// 运行时版本:4.0.30319.42000
+//
+// 对此文件的更改可能会导致不正确的行为,并且如果
+// 重新生成代码,这些更改将会丢失。
+//
+//------------------------------------------------------------------------------
+
+using System;
+using System.Reflection;
+
+[assembly: System.Reflection.AssemblyCompanyAttribute("SpaceNation.Core.Physx")]
+[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
+[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
+[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
+[assembly: System.Reflection.AssemblyProductAttribute("SpaceNation.Core.Physx")]
+[assembly: System.Reflection.AssemblyTitleAttribute("SpaceNation.Core.Physx")]
+[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
+
+// 由 MSBuild WriteCodeFragment 类生成。
+
diff --git a/obj/Debug/net7.0/SpaceNation.Core.Physx.AssemblyInfoInputs.cache b/obj/Debug/net7.0/SpaceNation.Core.Physx.AssemblyInfoInputs.cache
new file mode 100644
index 0000000..04dbb05
--- /dev/null
+++ b/obj/Debug/net7.0/SpaceNation.Core.Physx.AssemblyInfoInputs.cache
@@ -0,0 +1 @@
+b4496c070bca034b2c458c69a1c2685480b9d851
diff --git a/obj/Debug/net7.0/SpaceNation.Core.Physx.GeneratedMSBuildEditorConfig.editorconfig b/obj/Debug/net7.0/SpaceNation.Core.Physx.GeneratedMSBuildEditorConfig.editorconfig
new file mode 100644
index 0000000..b2c58a1
--- /dev/null
+++ b/obj/Debug/net7.0/SpaceNation.Core.Physx.GeneratedMSBuildEditorConfig.editorconfig
@@ -0,0 +1,11 @@
+is_global = true
+build_property.TargetFramework = net7.0
+build_property.TargetPlatformMinVersion =
+build_property.UsingMicrosoftNETSdkWeb =
+build_property.ProjectTypeGuids =
+build_property.InvariantGlobalization =
+build_property.PlatformNeutralAssembly =
+build_property.EnforceExtendedAnalyzerRules =
+build_property._SupportedPlatformList = Linux,macOS,Windows
+build_property.RootNamespace = SpaceNation.Core.Physx
+build_property.ProjectDir = D:\work\SpaceNation.Core.Physx\
diff --git a/obj/Debug/net7.0/SpaceNation.Core.Physx.GlobalUsings.g.cs b/obj/Debug/net7.0/SpaceNation.Core.Physx.GlobalUsings.g.cs
new file mode 100644
index 0000000..8578f3d
--- /dev/null
+++ b/obj/Debug/net7.0/SpaceNation.Core.Physx.GlobalUsings.g.cs
@@ -0,0 +1,8 @@
+//
+global using global::System;
+global using global::System.Collections.Generic;
+global using global::System.IO;
+global using global::System.Linq;
+global using global::System.Net.Http;
+global using global::System.Threading;
+global using global::System.Threading.Tasks;
diff --git a/obj/Debug/net7.0/SpaceNation.Core.Physx.assets.cache b/obj/Debug/net7.0/SpaceNation.Core.Physx.assets.cache
new file mode 100644
index 0000000..c25a5e4
Binary files /dev/null and b/obj/Debug/net7.0/SpaceNation.Core.Physx.assets.cache differ
diff --git a/obj/Debug/net7.0/SpaceNation.Core.Physx.csproj.AssemblyReference.cache b/obj/Debug/net7.0/SpaceNation.Core.Physx.csproj.AssemblyReference.cache
new file mode 100644
index 0000000..2b93b76
Binary files /dev/null and b/obj/Debug/net7.0/SpaceNation.Core.Physx.csproj.AssemblyReference.cache differ
diff --git a/obj/Debug/net7.0/SpaceNation.Core.Physx.csproj.CopyComplete b/obj/Debug/net7.0/SpaceNation.Core.Physx.csproj.CopyComplete
new file mode 100644
index 0000000..e69de29
diff --git a/obj/Debug/net7.0/SpaceNation.Core.Physx.csproj.CoreCompileInputs.cache b/obj/Debug/net7.0/SpaceNation.Core.Physx.csproj.CoreCompileInputs.cache
new file mode 100644
index 0000000..f0ba693
--- /dev/null
+++ b/obj/Debug/net7.0/SpaceNation.Core.Physx.csproj.CoreCompileInputs.cache
@@ -0,0 +1 @@
+698a744d8518333a9500ff6704cabf7fabbba51d
diff --git a/obj/Debug/net7.0/SpaceNation.Core.Physx.csproj.FileListAbsolute.txt b/obj/Debug/net7.0/SpaceNation.Core.Physx.csproj.FileListAbsolute.txt
new file mode 100644
index 0000000..9b3cc23
--- /dev/null
+++ b/obj/Debug/net7.0/SpaceNation.Core.Physx.csproj.FileListAbsolute.txt
@@ -0,0 +1,22 @@
+D:\project\SpaceNationProject\SpaceNationServerProjects\SpaceNation.Core.Physx\obj\Debug\net7.0\SpaceNation.Core.Physx.csproj.AssemblyReference.cache
+D:\project\SpaceNationProject\SpaceNationServerProjects\SpaceNation.Core.Physx\obj\Debug\net7.0\SpaceNation.Core.Physx.GeneratedMSBuildEditorConfig.editorconfig
+D:\project\SpaceNationProject\SpaceNationServerProjects\SpaceNation.Core.Physx\obj\Debug\net7.0\SpaceNation.Core.Physx.AssemblyInfoInputs.cache
+D:\project\SpaceNationProject\SpaceNationServerProjects\SpaceNation.Core.Physx\obj\Debug\net7.0\SpaceNation.Core.Physx.AssemblyInfo.cs
+D:\project\SpaceNationProject\SpaceNationServerProjects\SpaceNation.Core.Physx\obj\Debug\net7.0\SpaceNation.Core.Physx.csproj.CoreCompileInputs.cache
+D:\project\SpaceNationProject\SpaceNationServerProjects\SpaceNation.Core\SpaceNation.Core.Physx\obj\Debug\net7.0\SpaceNation.Core.Physx.csproj.AssemblyReference.cache
+D:\project\SpaceNationProject\SpaceNationServerProjects\SpaceNation.Core\SpaceNation.Core.Physx\obj\Debug\net7.0\SpaceNation.Core.Physx.GeneratedMSBuildEditorConfig.editorconfig
+D:\project\SpaceNationProject\SpaceNationServerProjects\SpaceNation.Core\SpaceNation.Core.Physx\obj\Debug\net7.0\SpaceNation.Core.Physx.AssemblyInfoInputs.cache
+D:\project\SpaceNationProject\SpaceNationServerProjects\SpaceNation.Core\SpaceNation.Core.Physx\obj\Debug\net7.0\SpaceNation.Core.Physx.AssemblyInfo.cs
+D:\project\SpaceNationProject\SpaceNationServerProjects\SpaceNation.Core\SpaceNation.Core.Physx\obj\Debug\net7.0\SpaceNation.Core.Physx.csproj.CoreCompileInputs.cache
+D:\project\SpaceNationProject\SpaceNationServerProjects\SpaceNation.Core\SpaceNation.Core.Physx\bin\Debug\net7.0\SpaceNation.Core.Physx.deps.json
+D:\project\SpaceNationProject\SpaceNationServerProjects\SpaceNation.Core\SpaceNation.Core.Physx\bin\Debug\net7.0\SpaceNation.Core.Physx.dll
+D:\project\SpaceNationProject\SpaceNationServerProjects\SpaceNation.Core\SpaceNation.Core.Physx\bin\Debug\net7.0\SpaceNation.Core.Physx.pdb
+D:\project\SpaceNationProject\SpaceNationServerProjects\SpaceNation.Core\SpaceNation.Core.Physx\bin\Debug\net7.0\MagicPhysX.dll
+D:\project\SpaceNationProject\SpaceNationServerProjects\SpaceNation.Core\SpaceNation.Core.Physx\bin\Debug\net7.0\MagicPhysX.Toolkit.dll
+D:\project\SpaceNationProject\SpaceNationServerProjects\SpaceNation.Core\SpaceNation.Core.Physx\bin\Debug\net7.0\MagicPhysX.xml
+D:\project\SpaceNationProject\SpaceNationServerProjects\SpaceNation.Core\SpaceNation.Core.Physx\bin\Debug\net7.0\MagicPhysX.Toolkit.xml
+D:\project\SpaceNationProject\SpaceNationServerProjects\SpaceNation.Core\SpaceNation.Core.Physx\obj\Debug\net7.0\SpaceNation.Core.Physx.csproj.CopyComplete
+D:\project\SpaceNationProject\SpaceNationServerProjects\SpaceNation.Core\SpaceNation.Core.Physx\obj\Debug\net7.0\SpaceNation.Core.Physx.dll
+D:\project\SpaceNationProject\SpaceNationServerProjects\SpaceNation.Core\SpaceNation.Core.Physx\obj\Debug\net7.0\refint\SpaceNation.Core.Physx.dll
+D:\project\SpaceNationProject\SpaceNationServerProjects\SpaceNation.Core\SpaceNation.Core.Physx\obj\Debug\net7.0\SpaceNation.Core.Physx.pdb
+D:\project\SpaceNationProject\SpaceNationServerProjects\SpaceNation.Core\SpaceNation.Core.Physx\obj\Debug\net7.0\ref\SpaceNation.Core.Physx.dll
diff --git a/obj/Debug/net7.0/SpaceNation.Core.Physx.dll b/obj/Debug/net7.0/SpaceNation.Core.Physx.dll
new file mode 100644
index 0000000..4494268
Binary files /dev/null and b/obj/Debug/net7.0/SpaceNation.Core.Physx.dll differ
diff --git a/obj/Debug/net7.0/SpaceNation.Core.Physx.pdb b/obj/Debug/net7.0/SpaceNation.Core.Physx.pdb
new file mode 100644
index 0000000..46374c4
Binary files /dev/null and b/obj/Debug/net7.0/SpaceNation.Core.Physx.pdb differ
diff --git a/obj/Debug/net7.0/ref/SpaceNation.Core.Physx.dll b/obj/Debug/net7.0/ref/SpaceNation.Core.Physx.dll
new file mode 100644
index 0000000..b808869
Binary files /dev/null and b/obj/Debug/net7.0/ref/SpaceNation.Core.Physx.dll differ
diff --git a/obj/Debug/net7.0/refint/SpaceNation.Core.Physx.dll b/obj/Debug/net7.0/refint/SpaceNation.Core.Physx.dll
new file mode 100644
index 0000000..b808869
Binary files /dev/null and b/obj/Debug/net7.0/refint/SpaceNation.Core.Physx.dll differ
diff --git a/obj/SpaceNation.Core.Physx.csproj.nuget.dgspec.json b/obj/SpaceNation.Core.Physx.csproj.nuget.dgspec.json
new file mode 100644
index 0000000..5bc95f0
--- /dev/null
+++ b/obj/SpaceNation.Core.Physx.csproj.nuget.dgspec.json
@@ -0,0 +1,67 @@
+{
+ "format": 1,
+ "restore": {
+ "D:\\work\\SpaceNation.Core.Physx\\SpaceNation.Core.Physx.csproj": {}
+ },
+ "projects": {
+ "D:\\work\\SpaceNation.Core.Physx\\SpaceNation.Core.Physx.csproj": {
+ "version": "1.0.0",
+ "restore": {
+ "projectUniqueName": "D:\\work\\SpaceNation.Core.Physx\\SpaceNation.Core.Physx.csproj",
+ "projectName": "SpaceNation.Core.Physx",
+ "projectPath": "D:\\work\\SpaceNation.Core.Physx\\SpaceNation.Core.Physx.csproj",
+ "packagesPath": "C:\\Users\\Win11\\.nuget\\packages\\",
+ "outputPath": "D:\\work\\SpaceNation.Core.Physx\\obj\\",
+ "projectStyle": "PackageReference",
+ "fallbackFolders": [
+ "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
+ ],
+ "configFilePaths": [
+ "C:\\Users\\Win11\\AppData\\Roaming\\NuGet\\NuGet.Config",
+ "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
+ "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
+ ],
+ "originalTargetFrameworks": [
+ "net7.0"
+ ],
+ "sources": {
+ "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
+ "https://api.nuget.org/v3/index.json": {}
+ },
+ "frameworks": {
+ "net7.0": {
+ "targetAlias": "net7.0",
+ "projectReferences": {}
+ }
+ },
+ "warningProperties": {
+ "warnAsError": [
+ "NU1605"
+ ]
+ }
+ },
+ "frameworks": {
+ "net7.0": {
+ "targetAlias": "net7.0",
+ "imports": [
+ "net461",
+ "net462",
+ "net47",
+ "net471",
+ "net472",
+ "net48",
+ "net481"
+ ],
+ "assetTargetFallback": true,
+ "warn": true,
+ "frameworkReferences": {
+ "Microsoft.NETCore.App": {
+ "privateAssets": "all"
+ }
+ },
+ "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.302\\RuntimeIdentifierGraph.json"
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/obj/SpaceNation.Core.Physx.csproj.nuget.g.props b/obj/SpaceNation.Core.Physx.csproj.nuget.g.props
new file mode 100644
index 0000000..aa3965c
--- /dev/null
+++ b/obj/SpaceNation.Core.Physx.csproj.nuget.g.props
@@ -0,0 +1,16 @@
+
+
+
+ True
+ NuGet
+ $(MSBuildThisFileDirectory)project.assets.json
+ $(UserProfile)\.nuget\packages\
+ C:\Users\Win11\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages
+ PackageReference
+ 6.6.0
+
+
+
+
+
+
\ No newline at end of file
diff --git a/obj/SpaceNation.Core.Physx.csproj.nuget.g.targets b/obj/SpaceNation.Core.Physx.csproj.nuget.g.targets
new file mode 100644
index 0000000..3dc06ef
--- /dev/null
+++ b/obj/SpaceNation.Core.Physx.csproj.nuget.g.targets
@@ -0,0 +1,2 @@
+
+
\ No newline at end of file
diff --git a/obj/project.assets.json b/obj/project.assets.json
new file mode 100644
index 0000000..2537c50
--- /dev/null
+++ b/obj/project.assets.json
@@ -0,0 +1,73 @@
+{
+ "version": 3,
+ "targets": {
+ "net7.0": {}
+ },
+ "libraries": {},
+ "projectFileDependencyGroups": {
+ "net7.0": []
+ },
+ "packageFolders": {
+ "C:\\Users\\Win11\\.nuget\\packages\\": {},
+ "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {}
+ },
+ "project": {
+ "version": "1.0.0",
+ "restore": {
+ "projectUniqueName": "D:\\work\\SpaceNation.Core.Physx\\SpaceNation.Core.Physx.csproj",
+ "projectName": "SpaceNation.Core.Physx",
+ "projectPath": "D:\\work\\SpaceNation.Core.Physx\\SpaceNation.Core.Physx.csproj",
+ "packagesPath": "C:\\Users\\Win11\\.nuget\\packages\\",
+ "outputPath": "D:\\work\\SpaceNation.Core.Physx\\obj\\",
+ "projectStyle": "PackageReference",
+ "fallbackFolders": [
+ "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
+ ],
+ "configFilePaths": [
+ "C:\\Users\\Win11\\AppData\\Roaming\\NuGet\\NuGet.Config",
+ "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
+ "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
+ ],
+ "originalTargetFrameworks": [
+ "net7.0"
+ ],
+ "sources": {
+ "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
+ "https://api.nuget.org/v3/index.json": {}
+ },
+ "frameworks": {
+ "net7.0": {
+ "targetAlias": "net7.0",
+ "projectReferences": {}
+ }
+ },
+ "warningProperties": {
+ "warnAsError": [
+ "NU1605"
+ ]
+ }
+ },
+ "frameworks": {
+ "net7.0": {
+ "targetAlias": "net7.0",
+ "imports": [
+ "net461",
+ "net462",
+ "net47",
+ "net471",
+ "net472",
+ "net48",
+ "net481"
+ ],
+ "assetTargetFallback": true,
+ "warn": true,
+ "frameworkReferences": {
+ "Microsoft.NETCore.App": {
+ "privateAssets": "all"
+ }
+ },
+ "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.302\\RuntimeIdentifierGraph.json"
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/obj/project.nuget.cache b/obj/project.nuget.cache
new file mode 100644
index 0000000..04baa9c
--- /dev/null
+++ b/obj/project.nuget.cache
@@ -0,0 +1,8 @@
+{
+ "version": 2,
+ "dgSpecHash": "C6JXgbbqNfUp0SIMenqceedWBdJDLasd3mdsii6YE6Tc+Vq7UNdeiaR8SJY533N+t3YBq/ebvAYDP2AYQZ7/Bw==",
+ "success": true,
+ "projectFilePath": "D:\\work\\SpaceNation.Core.Physx\\SpaceNation.Core.Physx.csproj",
+ "expectedPackageFiles": [],
+ "logs": []
+}
\ No newline at end of file