RavEngine
Loading...
Searching...
No Matches
PxArticulationFlag.h
1// Redistribution and use in source and binary forms, with or without
2// modification, are permitted provided that the following conditions
3// are met:
4// * Redistributions of source code must retain the above copyright
5// notice, this list of conditions and the following disclaimer.
6// * Redistributions in binary form must reproduce the above copyright
7// notice, this list of conditions and the following disclaimer in the
8// documentation and/or other materials provided with the distribution.
9// * Neither the name of NVIDIA CORPORATION nor the names of its
10// contributors may be used to endorse or promote products derived
11// from this software without specific prior written permission.
12//
13// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ''AS IS'' AND ANY
14// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
16// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
17// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
18// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
19// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
20// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
21// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24//
25// Copyright (c) 2008-2022 NVIDIA Corporation. All rights reserved.
26// Copyright (c) 2004-2008 AGEIA Technologies, Inc. All rights reserved.
27// Copyright (c) 2001-2004 NovodeX AG. All rights reserved.
28
29#ifndef PX_ARTICULATION_FLAG_H
30#define PX_ARTICULATION_FLAG_H
31
32#include "PxPhysXConfig.h"
33#include "foundation/PxFlags.h"
34
35#if !PX_DOXYGEN
36namespace physx
37{
38#endif
39
73
74
81 {
82 public:
83 enum Enum
84 {
85 eVELOCITY = (1 << 0),
86 eACCELERATION = (1 << 1),
87 ePOSITION = (1 << 2),
88 eFORCE = (1 << 3),
89 eLINK_VELOCITY = (1 << 4),
90 eLINK_ACCELERATION = (1 << 5),
91 eROOT_TRANSFORM = (1 << 6),
92 eROOT_VELOCITIES = (1 << 7),
93 eSENSOR_FORCES = (1 << 8),
96 };
97 };
98
99 typedef PxFlags<PxArticulationCacheFlag::Enum, PxU32> PxArticulationCacheFlags;
100 PX_FLAGS_OPERATORS(PxArticulationCacheFlag::Enum, PxU32)
101
102#if !PX_DOXYGEN
103}
104#endif
105
106#endif
These flags determine what data is read or written to the internal articulation data via cache.
Definition PxArticulationFlag.h:81
Enum
Definition PxArticulationFlag.h:84
@ eACCELERATION
The joint accelerations, see PxArticulationCache::jointAcceleration.
Definition PxArticulationFlag.h:86
@ eROOT_VELOCITIES
Root link velocities (read/write) and accelerations (read), see PxArticulationCache::rootLinkData.
Definition PxArticulationFlag.h:92
@ eLINK_VELOCITY
The link velocities, see PxArticulationCache::linkVelocity.
Definition PxArticulationFlag.h:89
@ eLINK_ACCELERATION
The link accelerations, see PxArticulationCache::linkAcceleration.
Definition PxArticulationFlag.h:90
@ eJOINT_SOLVER_FORCES
Solver constraint joint forces, see PxArticulationCache::jointSolverForces.
Definition PxArticulationFlag.h:94
@ eVELOCITY
The joint velocities, see PxArticulationCache::jointVelocity.
Definition PxArticulationFlag.h:85
@ eSENSOR_FORCES
The spatial sensor forces, see PxArticulationCache::sensorForces.
Definition PxArticulationFlag.h:93
@ eFORCE
The joint forces, see PxArticulationCache::jointForce.
Definition PxArticulationFlag.h:88
@ eROOT_TRANSFORM
Root link transform, see PxArticulationCache::rootLinkData.
Definition PxArticulationFlag.h:91
@ ePOSITION
The joint positions, see PxArticulationCache::jointPosition.
Definition PxArticulationFlag.h:87
A description of the types of articulation data that may be directly written to and read from the GPU...
Definition PxArticulationFlag.h:49
Enum
Definition PxArticulationFlag.h:52
@ eFIXED_TENDON_JOINT
Fixed tendon joint data, write only, see PxScene::applyArticulationData()
Definition PxArticulationFlag.h:68
@ eSPATIAL_TENDON_ATTACHMENT
Spatial tendon attachment data, write only, see PxScene::applyArticulationData()
Definition PxArticulationFlag.h:70
@ eLINK_TRANSFORM
The link transforms including root link, read only, see PxScene::copyArticulationData()
Definition PxArticulationFlag.h:63
@ eLINK_TORQUE
The torques to apply to links, write only, see PxScene::applyArticulationData()
Definition PxArticulationFlag.h:66
@ eROOT_VELOCITY
The root link velocity, read and write, see PxScene::copyArticulationData(), PxScene::applyArticulati...
Definition PxArticulationFlag.h:62
@ eLINK_VELOCITY
The link velocities including root link, read only, see PxScene::copyArticulationData()
Definition PxArticulationFlag.h:64
@ eROOT_TRANSFORM
The root link transform, read and write, see PxScene::copyArticulationData(), PxScene::applyArticulat...
Definition PxArticulationFlag.h:61
@ eLINK_FORCE
The forces to apply to links, write only, see PxScene::applyArticulationData()
Definition PxArticulationFlag.h:65
@ eJOINT_TARGET_POSITION
The position targets for the joint drives, write only, see PxScene::applyArticulationData()
Definition PxArticulationFlag.h:59
@ eFIXED_TENDON
Fixed tendon data, write only, see PxScene::applyArticulationData()
Definition PxArticulationFlag.h:67
@ eSENSOR_FORCE
The spatial sensor forces, read only, see PxScene::copyArticulationData()
Definition PxArticulationFlag.h:60
@ eJOINT_POSITION
The joint positions, read and write, see PxScene::copyArticulationData(), PxScene::applyArticulationD...
Definition PxArticulationFlag.h:53
@ eJOINT_FORCE
The applied joint forces, write only, see PxScene::applyArticulationData()
Definition PxArticulationFlag.h:56
@ eSPATIAL_TENDON
Spatial tendon data, write only, see PxScene::applyArticulationData()
Definition PxArticulationFlag.h:69
@ eJOINT_VELOCITY
The joint velocities, read and write, see PxScene::copyArticulationData(), PxScene::applyArticulation...
Definition PxArticulationFlag.h:54
@ eJOINT_TARGET_VELOCITY
The velocity targets for the joint drives, write only, see PxScene::applyArticulationData()
Definition PxArticulationFlag.h:58
@ eJOINT_SOLVER_FORCE
The computed joint constraint solver forces, read only, see PxScene::copyArticulationData()()
Definition PxArticulationFlag.h:57
@ eJOINT_ACCELERATION
The joint accelerations, read only, see PxScene::copyArticulationData()
Definition PxArticulationFlag.h:55
Sorts an array of objects in ascending order, assuming that the predicate implements the < operator:
Definition PxBoxController.h:39