1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
|
<html>
<head>
<title>NVIDIA(R) PhysX(R) SDK 3.4 API Reference: PxRigidBodyFlag Struct Reference</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<LINK HREF="NVIDIA.css" REL="stylesheet" TYPE="text/css">
</head>
<body bgcolor="#FFFFFF">
<div id="header">
<hr class="first">
<img alt="" src="images/PhysXlogo.png" align="middle"> <br>
<center>
<a class="qindex" href="main.html">Main Page</a>
<a class="qindex" href="hierarchy.html">Class Hierarchy</a>
<a class="qindex" href="annotated.html">Compound List</a>
<a class="qindex" href="functions.html">Compound Members</a>
</center>
<hr class="second">
</div>
<!-- Generated by Doxygen 1.5.8 -->
<div class="contents">
<h1>PxRigidBodyFlag Struct Reference<br>
<small>
[<a class="el" href="group__physics.html">Physics</a>]</small>
</h1><!-- doxytag: class="PxRigidBodyFlag" -->Collection of flags describing the behavior of a rigid body.
<a href="#_details">More...</a>
<p>
<code>#include <<a class="el" href="PxRigidBody_8h-source.html">PxRigidBody.h</a>></code>
<p>
<p>
<a href="structPxRigidBodyFlag-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Types</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum </td><td class="memItemRight" valign="bottom"><a class="el" href="structPxRigidBodyFlag.html#5fd4878ae66a98c030a9d976e8ba8596">Enum</a> { <br>
<a class="el" href="structPxRigidBodyFlag.html#5fd4878ae66a98c030a9d976e8ba8596bd76e6985e9db78efb7a66148ea4c212">eKINEMATIC</a> = (1<<0),
<br>
<a class="el" href="structPxRigidBodyFlag.html#5fd4878ae66a98c030a9d976e8ba8596983c62745e575428d8b0aadefc23e8bc">eUSE_KINEMATIC_TARGET_FOR_SCENE_QUERIES</a> = (1<<1),
<br>
<a class="el" href="structPxRigidBodyFlag.html#5fd4878ae66a98c030a9d976e8ba8596686cdd889652a435c19d8c663d809d9e">eENABLE_CCD</a> = (1<<2),
<br>
<a class="el" href="structPxRigidBodyFlag.html#5fd4878ae66a98c030a9d976e8ba859637775d7c189d9f499fdfda010f73fb95">eENABLE_CCD_FRICTION</a> = (1<<3),
<br>
<a class="el" href="structPxRigidBodyFlag.html#5fd4878ae66a98c030a9d976e8ba8596c89b33b0290d667f6f2ae69298631d01">eENABLE_POSE_INTEGRATION_PREVIEW</a> = (1 << 4),
<br>
<a class="el" href="structPxRigidBodyFlag.html#5fd4878ae66a98c030a9d976e8ba8596f13d6aa80b364fe2cef81a0039e37d45">eENABLE_SPECULATIVE_CCD</a> = (1 << 5),
<br>
<a class="el" href="structPxRigidBodyFlag.html#5fd4878ae66a98c030a9d976e8ba8596b2bb4cc4246807076a2103d72bd69e00">eENABLE_CCD_MAX_CONTACT_IMPULSE</a> = (1 << 6)
<br>
}</td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Collection of flags describing the behavior of a rigid body.
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classPxRigidBody.html#9b23b890404b1010bf0b67a225bd22e7" title="Raises or clears a particular rigid body flag.">PxRigidBody.setRigidBodyFlag()</a>, <a class="el" href="classPxRigidBody.html#2ef3c66318db72f2dd2c1b0d20513f18" title="Reads the PxRigidBody flags.">PxRigidBody.getRigidBodyFlags()</a> </dd></dl>
<hr><h2>Member Enumeration Documentation</h2>
<a class="anchor" name="5fd4878ae66a98c030a9d976e8ba8596"></a><!-- doxytag: member="PxRigidBodyFlag::Enum" ref="5fd4878ae66a98c030a9d976e8ba8596" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="structPxRigidBodyFlag.html#5fd4878ae66a98c030a9d976e8ba8596">PxRigidBodyFlag::Enum</a> </td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
<dl compact><dt><b>Enumerator: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" name="5fd4878ae66a98c030a9d976e8ba8596bd76e6985e9db78efb7a66148ea4c212"></a><!-- doxytag: member="eKINEMATIC" ref="5fd4878ae66a98c030a9d976e8ba8596bd76e6985e9db78efb7a66148ea4c212" args="" -->eKINEMATIC</em> </td><td>
Enables kinematic mode for the actor.
<p>
Kinematic actors are special dynamic actors that are not influenced by forces (such as gravity), and have no momentum. They are considered to have infinite mass and can be moved around the world using the setKinematicTarget() method. They will push regular dynamic actors out of the way. Kinematics will not collide with static or other kinematic objects.<p>
Kinematic actors are great for moving platforms or characters, where direct motion control is desired.<p>
You can not connect Reduced joints to kinematic actors. Lagrange joints work ok if the platform is moving with a relatively low, uniform velocity.<p>
<b>Sleeping:</b> <ul>
<li>Setting this flag on a dynamic actor will put the actor to sleep and set the velocities to 0. </li>
<li>If this flag gets cleared, the current sleep state of the actor will be kept.</li>
</ul>
<dl class="note" compact><dt><b>Note:</b></dt><dd>kinematic actors are incompatible with CCD so raising this flag will automatically clear eENABLE_CCD</dd></dl>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classPxRigidDynamic.html#4464d188e7a1e94582c9cf35da9bbc93" title="Moves kinematically controlled dynamic actors through the game world.">PxRigidDynamic.setKinematicTarget()</a> Enable kinematic mode for the body. </dd></dl>
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="5fd4878ae66a98c030a9d976e8ba8596983c62745e575428d8b0aadefc23e8bc"></a><!-- doxytag: member="eUSE_KINEMATIC_TARGET_FOR_SCENE_QUERIES" ref="5fd4878ae66a98c030a9d976e8ba8596983c62745e575428d8b0aadefc23e8bc" args="" -->eUSE_KINEMATIC_TARGET_FOR_SCENE_QUERIES</em> </td><td>
Use the kinematic target transform for scene queries.
<p>
If this flag is raised, then scene queries will treat the kinematic target transform as the current pose of the body (instead of using the actual pose). Without this flag, the kinematic target will only take effect with respect to scene queries after a simulation step.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classPxRigidDynamic.html#4464d188e7a1e94582c9cf35da9bbc93" title="Moves kinematically controlled dynamic actors through the game world.">PxRigidDynamic.setKinematicTarget()</a> </dd></dl>
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="5fd4878ae66a98c030a9d976e8ba8596686cdd889652a435c19d8c663d809d9e"></a><!-- doxytag: member="eENABLE_CCD" ref="5fd4878ae66a98c030a9d976e8ba8596686cdd889652a435c19d8c663d809d9e" args="" -->eENABLE_CCD</em> </td><td>
Enables swept integration for the actor.
<p>
If this flag is raised and CCD is enabled on the scene, then this body will be simulated by the CCD system to ensure that collisions are not missed due to high-speed motion. Note individual shape pairs still need to enable <a class="el" href="structPxPairFlag.html#60e71a2948b030140f840766a3f7ac2fc41a9f8b9326480403c023ad20cdc2f1" title="This flag is used to indicate whether this pair generates CCD contacts.">PxPairFlag::eDETECT_CCD_CONTACT</a> in the collision filtering to enable the CCD to respond to individual interactions.<p>
<dl class="note" compact><dt><b>Note:</b></dt><dd>kinematic actors are incompatible with CCD so this flag will be cleared automatically when raised on a kinematic actor Enable CCD for the body. </dd></dl>
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="5fd4878ae66a98c030a9d976e8ba859637775d7c189d9f499fdfda010f73fb95"></a><!-- doxytag: member="eENABLE_CCD_FRICTION" ref="5fd4878ae66a98c030a9d976e8ba859637775d7c189d9f499fdfda010f73fb95" args="" -->eENABLE_CCD_FRICTION</em> </td><td>
Enabled CCD in swept integration for the actor.
<p>
If this flag is raised and CCD is enabled, CCD interactions will simulate friction. By default, friction is disabled in CCD interactions because CCD friction has been observed to introduce some simulation artifacts. CCD friction was enabled in previous versions of the SDK. Raising this flag will result in behavior that is a closer match for previous versions of the SDK.<p>
<dl class="note" compact><dt><b>Note:</b></dt><dd>This flag requires <a class="el" href="structPxRigidBodyFlag.html#5fd4878ae66a98c030a9d976e8ba8596686cdd889652a435c19d8c663d809d9e" title="Enables swept integration for the actor.">PxRigidBodyFlag::eENABLE_CCD</a> to be raised to have any effect. </dd></dl>
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="5fd4878ae66a98c030a9d976e8ba8596c89b33b0290d667f6f2ae69298631d01"></a><!-- doxytag: member="eENABLE_POSE_INTEGRATION_PREVIEW" ref="5fd4878ae66a98c030a9d976e8ba8596c89b33b0290d667f6f2ae69298631d01" args="" -->eENABLE_POSE_INTEGRATION_PREVIEW</em> </td><td>
Register a rigid body for reporting pose changes by the simulation at an early stage.
<p>
Sometimes it might be advantageous to get access to the new pose of a rigid body as early as possible and not wait until the call to fetchResults() returns. Setting this flag will schedule the rigid body to get reported in <a class="el" href="classPxSimulationEventCallback.html#86cd9bd80e504054d075fda24498756b" title="Provides early access to the new pose of moving rigid bodies.">PxSimulationEventCallback::onAdvance()</a>. Please refer to the documentation of that callback to understand the behavior and limitations of this functionality.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classPxSimulationEventCallback.html#86cd9bd80e504054d075fda24498756b" title="Provides early access to the new pose of moving rigid bodies.">PxSimulationEventCallback::onAdvance()</a> </dd></dl>
</td></tr>
<tr><td valign="top"><em><a class="anchor" name="5fd4878ae66a98c030a9d976e8ba8596f13d6aa80b364fe2cef81a0039e37d45"></a><!-- doxytag: member="eENABLE_SPECULATIVE_CCD" ref="5fd4878ae66a98c030a9d976e8ba8596f13d6aa80b364fe2cef81a0039e37d45" args="" -->eENABLE_SPECULATIVE_CCD</em> </td><td>
Register a rigid body to dynamicly adjust contact offset based on velocity. This can be used to achieve a CCD effect. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="5fd4878ae66a98c030a9d976e8ba8596b2bb4cc4246807076a2103d72bd69e00"></a><!-- doxytag: member="eENABLE_CCD_MAX_CONTACT_IMPULSE" ref="5fd4878ae66a98c030a9d976e8ba8596b2bb4cc4246807076a2103d72bd69e00" args="" -->eENABLE_CCD_MAX_CONTACT_IMPULSE</em> </td><td>
Permit CCD to limit maxContactImpulse. This is useful for use-cases like a destruction system but can cause visual artefacts so is not enabled by default. </td></tr>
</table>
</dl>
</div>
</div><p>
<hr>The documentation for this struct was generated from the following file:<ul>
<li><a class="el" href="PxRigidBody_8h-source.html">PxRigidBody.h</a></ul>
</div>
<hr style="width: 100%; height: 2px;"><br>
Copyright © 2008-2018 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved. <a href="http://www.nvidia.com ">www.nvidia.com</a>
</body>
</html>
|