PhysX SDK 3.2 API Reference: PxContactSet Class Reference

PhysX SDK 3.2 API

PxContactSet Class Reference
[Physics]

An array of contact points, as passed to contact modification. More...

#include <PxContactModifyCallback.h>

Collaboration diagram for PxContactSet:

List of all members.


Public Member Functions

PX_FORCE_INLINE const PxVec3getPoint (PxU32 i) const
PX_FORCE_INLINE void setPoint (PxU32 i, const PxVec3 &p)
PX_FORCE_INLINE const PxVec3getNormal (PxU32 i) const
PX_FORCE_INLINE void setNormal (PxU32 i, const PxVec3 &n)
PX_FORCE_INLINE PxReal getSeparation (PxU32 i) const
PX_FORCE_INLINE void setSeparation (PxU32 i, PxReal s)
PX_FORCE_INLINE const PxVec3getTargetVelocity (PxU32 i) const
PX_FORCE_INLINE void setTargetVelocity (PxU32 i, const PxVec3 &v)
PX_FORCE_INLINE PxU32 getInternalFaceIndex0 (PxU32 i)
PX_FORCE_INLINE PxU32 getInternalFaceIndex1 (PxU32 i)
PX_FORCE_INLINE PxReal getMaxImpulse (PxU32 i) const
PX_FORCE_INLINE void setMaxImpulse (PxU32 i, PxReal s)
PX_FORCE_INLINE void ignore (PxU32 i)
PX_FORCE_INLINE PxU32 size () const

Protected Attributes

PxU32 mCount
PxContactPointmContacts
PxContactPointAuxmAux

Detailed Description

An array of contact points, as passed to contact modification.

The word 'set' in the name does not imply that duplicates are filtered in any way. This initial set of contacts does potentially get reduced to a smaller set before being passed to the solver.

You can use the accessors to read and write contact properties. The number of contacts is immutable, other than being able to disable contacts using ignore().

See also:
PxContactModifyCallback, PxContactPoint, PxContactPointAux

Member Function Documentation

PX_FORCE_INLINE PxU32 PxContactSet::getInternalFaceIndex0 ( PxU32  i  )  [inline]

PX_FORCE_INLINE PxU32 PxContactSet::getInternalFaceIndex1 ( PxU32  i  )  [inline]

PX_FORCE_INLINE PxReal PxContactSet::getMaxImpulse ( PxU32  i  )  const [inline]

PX_FORCE_INLINE const PxVec3& PxContactSet::getNormal ( PxU32  i  )  const [inline]

PX_FORCE_INLINE const PxVec3& PxContactSet::getPoint ( PxU32  i  )  const [inline]

PX_FORCE_INLINE PxReal PxContactSet::getSeparation ( PxU32  i  )  const [inline]

PX_FORCE_INLINE const PxVec3& PxContactSet::getTargetVelocity ( PxU32  i  )  const [inline]

PX_FORCE_INLINE void PxContactSet::ignore ( PxU32  i  )  [inline]

PX_FORCE_INLINE void PxContactSet::setMaxImpulse ( PxU32  i,
PxReal  s 
) [inline]

PX_FORCE_INLINE void PxContactSet::setNormal ( PxU32  i,
const PxVec3 n 
) [inline]

PX_FORCE_INLINE void PxContactSet::setPoint ( PxU32  i,
const PxVec3 p 
) [inline]

PX_FORCE_INLINE void PxContactSet::setSeparation ( PxU32  i,
PxReal  s 
) [inline]

PX_FORCE_INLINE void PxContactSet::setTargetVelocity ( PxU32  i,
const PxVec3 v 
) [inline]

PX_FORCE_INLINE PxU32 PxContactSet::size (  )  const [inline]


Member Data Documentation


The documentation for this class was generated from the following file:



Copyright © 2008-2012 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved. www.nvidia.com