All Classes Files Functions Variables Pages
physxCharacterControllerAPI.h
Go to the documentation of this file.
1 //
2 // Copyright 2016 Pixar
3 //
4 // Licensed under the Apache License, Version 2.0 (the "Apache License")
5 // with the following modification; you may not use this file except in
6 // compliance with the Apache License and the following modification to it:
7 // Section 6. Trademarks. is deleted and replaced with:
8 //
9 // 6. Trademarks. This License does not grant permission to use the trade
10 // names, trademarks, service marks, or product names of the Licensor
11 // and its affiliates, except as required to comply with Section 4(c) of
12 // the License and to reproduce the content of the NOTICE file.
13 //
14 // You may obtain a copy of the Apache License at
15 //
16 // http://www.apache.org/licenses/LICENSE-2.0
17 //
18 // Unless required by applicable law or agreed to in writing, software
19 // distributed under the Apache License with the above modification is
20 // distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
21 // KIND, either express or implied. See the Apache License for the specific
22 // language governing permissions and limitations under the Apache License.
23 //
24 #ifndef PHYSXSCHEMA_GENERATED_PHYSXCHARACTERCONTROLLERAPI_H
25 #define PHYSXSCHEMA_GENERATED_PHYSXCHARACTERCONTROLLERAPI_H
26 
28 
29 #include "pxr/pxr.h"
30 #include ".//api.h"
31 #include "pxr/usd/usd/apiSchemaBase.h"
32 #include "pxr/usd/usd/prim.h"
33 #include "pxr/usd/usd/stage.h"
34 #include ".//tokens.h"
35 
36 #include "pxr/base/vt/value.h"
37 
38 #include "pxr/base/gf/vec3d.h"
39 #include "pxr/base/gf/vec3f.h"
40 #include "pxr/base/gf/matrix4d.h"
41 
42 #include "pxr/base/tf/token.h"
43 #include "pxr/base/tf/type.h"
44 
45 PXR_NAMESPACE_OPEN_SCOPE
46 
47 class SdfAssetPath;
48 
49 // -------------------------------------------------------------------------- //
50 // PHYSXCHARACTERCONTROLLERAPI //
51 // -------------------------------------------------------------------------- //
52 
62 class PhysxSchemaPhysxCharacterControllerAPI : public UsdAPISchemaBase
63 {
64 public:
68  static const UsdSchemaType schemaType = UsdSchemaType::SingleApplyAPI;
69 
74  explicit PhysxSchemaPhysxCharacterControllerAPI(const UsdPrim& prim=UsdPrim())
75  : UsdAPISchemaBase(prim)
76  {
77  }
78 
82  explicit PhysxSchemaPhysxCharacterControllerAPI(const UsdSchemaBase& schemaObj)
83  : UsdAPISchemaBase(schemaObj)
84  {
85  }
86 
88  PHYSXSCHEMA_API
90 
94  PHYSXSCHEMA_API
95  static const TfTokenVector &
96  GetSchemaAttributeNames(bool includeInherited=true);
97 
107  PHYSXSCHEMA_API
109  Get(const UsdStagePtr &stage, const SdfPath &path);
110 
111 
126  PHYSXSCHEMA_API
128  Apply(const UsdPrim &prim);
129 
130 protected:
134  PHYSXSCHEMA_API
135  UsdSchemaType _GetSchemaType() const override;
136 
137 private:
138  // needs to invoke _GetStaticTfType.
139  friend class UsdSchemaRegistry;
140  PHYSXSCHEMA_API
141  static const TfType &_GetStaticTfType();
142 
143  static bool _IsTypedSchema();
144 
145  // override SchemaBase virtuals.
146  PHYSXSCHEMA_API
147  const TfType &_GetTfType() const override;
148 
149 public:
150  // --------------------------------------------------------------------- //
151  // SLOPELIMIT
152  // --------------------------------------------------------------------- //
161  PHYSXSCHEMA_API
162  UsdAttribute GetSlopeLimitAttr() const;
163 
169  PHYSXSCHEMA_API
170  UsdAttribute CreateSlopeLimitAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
171 
172 public:
173  // --------------------------------------------------------------------- //
174  // MOVETARGET
175  // --------------------------------------------------------------------- //
183  PHYSXSCHEMA_API
184  UsdAttribute GetMoveTargetAttr() const;
185 
191  PHYSXSCHEMA_API
192  UsdAttribute CreateMoveTargetAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
193 
194 public:
195  // --------------------------------------------------------------------- //
196  // UPAXIS
197  // --------------------------------------------------------------------- //
207  PHYSXSCHEMA_API
208  UsdAttribute GetUpAxisAttr() const;
209 
215  PHYSXSCHEMA_API
216  UsdAttribute CreateUpAxisAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
217 
218 public:
219  // --------------------------------------------------------------------- //
220  // NONWALKABLEMODE
221  // --------------------------------------------------------------------- //
231  PHYSXSCHEMA_API
232  UsdAttribute GetNonWalkableModeAttr() const;
233 
239  PHYSXSCHEMA_API
240  UsdAttribute CreateNonWalkableModeAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
241 
242 public:
243  // --------------------------------------------------------------------- //
244  // CLIMBINGMODE
245  // --------------------------------------------------------------------- //
255  PHYSXSCHEMA_API
256  UsdAttribute GetClimbingModeAttr() const;
257 
263  PHYSXSCHEMA_API
264  UsdAttribute CreateClimbingModeAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
265 
266 public:
267  // --------------------------------------------------------------------- //
268  // INVISIBLEWALLHEIGHT
269  // --------------------------------------------------------------------- //
279  PHYSXSCHEMA_API
280  UsdAttribute GetInvisibleWallHeightAttr() const;
281 
287  PHYSXSCHEMA_API
288  UsdAttribute CreateInvisibleWallHeightAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
289 
290 public:
291  // --------------------------------------------------------------------- //
292  // MAXJUMPHEIGHT
293  // --------------------------------------------------------------------- //
303  PHYSXSCHEMA_API
304  UsdAttribute GetMaxJumpHeightAttr() const;
305 
311  PHYSXSCHEMA_API
312  UsdAttribute CreateMaxJumpHeightAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
313 
314 public:
315  // --------------------------------------------------------------------- //
316  // CONTACTOFFSET
317  // --------------------------------------------------------------------- //
327  PHYSXSCHEMA_API
328  UsdAttribute GetContactOffsetAttr() const;
329 
335  PHYSXSCHEMA_API
336  UsdAttribute CreateContactOffsetAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
337 
338 public:
339  // --------------------------------------------------------------------- //
340  // STEPOFFSET
341  // --------------------------------------------------------------------- //
351  PHYSXSCHEMA_API
352  UsdAttribute GetStepOffsetAttr() const;
353 
359  PHYSXSCHEMA_API
360  UsdAttribute CreateStepOffsetAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
361 
362 public:
363  // --------------------------------------------------------------------- //
364  // SCALECOEFF
365  // --------------------------------------------------------------------- //
375  PHYSXSCHEMA_API
376  UsdAttribute GetScaleCoeffAttr() const;
377 
383  PHYSXSCHEMA_API
384  UsdAttribute CreateScaleCoeffAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
385 
386 public:
387  // --------------------------------------------------------------------- //
388  // VOLUMEGROWTH
389  // --------------------------------------------------------------------- //
399  PHYSXSCHEMA_API
400  UsdAttribute GetVolumeGrowthAttr() const;
401 
407  PHYSXSCHEMA_API
408  UsdAttribute CreateVolumeGrowthAttr(VtValue const &defaultValue = VtValue(), bool writeSparsely=false) const;
409 
410 public:
411  // --------------------------------------------------------------------- //
412  // SIMULATIONOWNER
413  // --------------------------------------------------------------------- //
417  PHYSXSCHEMA_API
418  UsdRelationship GetSimulationOwnerRel() const;
419 
422  PHYSXSCHEMA_API
423  UsdRelationship CreateSimulationOwnerRel() const;
424 
425 public:
426  // ===================================================================== //
427  // Feel free to add custom code below this line, it will be preserved by
428  // the code generator.
429  //
430  // Just remember to:
431  // - Close the class declaration with };
432  // - Close the namespace with PXR_NAMESPACE_CLOSE_SCOPE
433  // - Close the include guard with #endif
434  // ===================================================================== //
435  // --(BEGIN CUSTOM CODE)--
436 };
437 
438 PXR_NAMESPACE_CLOSE_SCOPE
439 
440 #endif
PhysxSchemaPhysxCharacterControllerAPI(const UsdSchemaBase &schemaObj)
Construct a PhysxSchemaPhysxCharacterControllerAPI on the prim held by schemaObj .
PhysxCharacterControllerAPI can be applied to a capsuleGeom.
PhysxSchemaPhysxCharacterControllerAPI(const UsdPrim &prim=UsdPrim())
Construct a PhysxSchemaPhysxCharacterControllerAPI on UsdPrim prim .
static const UsdSchemaType schemaType
Compile time constant representing what kind of schema this class is.
PHYSXSCHEMA_API UsdAttribute GetVolumeGrowthAttr() const
Cached volume growth.
PHYSXSCHEMA_API UsdAttribute CreateNonWalkableModeAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetNonWalkableModeAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...
PHYSXSCHEMA_API UsdAttribute GetInvisibleWallHeightAttr() const
Height of invisible walls created around non-walkable triangles.
PHYSXSCHEMA_API UsdAttribute GetContactOffsetAttr() const
The contact offset used by the controller.
PHYSXSCHEMA_API UsdAttribute GetSlopeLimitAttr() const
Slope limit which the CCT can climb.
PHYSXSCHEMA_API UsdAttribute CreateStepOffsetAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetStepOffsetAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...
PHYSXSCHEMA_API UsdAttribute GetStepOffsetAttr() const
Defines the maximum height of an obstacle which the character can climb.
PHYSXSCHEMA_API UsdAttribute CreateContactOffsetAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetContactOffsetAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...
PHYSXSCHEMA_API UsdAttribute GetClimbingModeAttr() const
The climbing mode.
static PHYSXSCHEMA_API const TfTokenVector & GetSchemaAttributeNames(bool includeInherited=true)
Return a vector of names of all pre-declared attributes for this schema class and all its ancestor cl...
PHYSXSCHEMA_API UsdAttribute CreateMoveTargetAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetMoveTargetAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...
PHYSXSCHEMA_API UsdAttribute GetMoveTargetAttr() const
Desired target position that CCT should try to reach.
PHYSXSCHEMA_API UsdSchemaType _GetSchemaType() const override
Returns the type of schema this class belongs to.
PHYSXSCHEMA_API UsdAttribute GetNonWalkableModeAttr() const
The non-walkable mode controls if a character controller slides or not on a non-walkable part...
PHYSXSCHEMA_API UsdAttribute CreateInvisibleWallHeightAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetInvisibleWallHeightAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...
PHYSXSCHEMA_API UsdRelationship CreateSimulationOwnerRel() const
See GetSimulationOwnerRel(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...
PHYSXSCHEMA_API UsdAttribute CreateScaleCoeffAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetScaleCoeffAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...
PHYSXSCHEMA_API UsdAttribute CreateSlopeLimitAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetSlopeLimitAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...
PHYSXSCHEMA_API UsdRelationship GetSimulationOwnerRel() const
Single PhysicsScene that simulates this character controller.
virtual PHYSXSCHEMA_API ~PhysxSchemaPhysxCharacterControllerAPI()
Destructor.
PHYSXSCHEMA_API UsdAttribute GetScaleCoeffAttr() const
Scale coefficient for underlying kinematic actor.
PHYSXSCHEMA_API UsdAttribute CreateVolumeGrowthAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetVolumeGrowthAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...
PHYSXSCHEMA_API UsdAttribute GetUpAxisAttr() const
Up axis for stepping functionality.
PHYSXSCHEMA_API UsdAttribute CreateClimbingModeAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetClimbingModeAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...
static PHYSXSCHEMA_API PhysxSchemaPhysxCharacterControllerAPI Get(const UsdStagePtr &stage, const SdfPath &path)
Return a PhysxSchemaPhysxCharacterControllerAPI holding the prim adhering to this schema at path on s...
PHYSXSCHEMA_API UsdAttribute GetMaxJumpHeightAttr() const
Maximum height a jumping character can reach.
PHYSXSCHEMA_API UsdAttribute CreateUpAxisAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetUpAxisAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create.
static PHYSXSCHEMA_API PhysxSchemaPhysxCharacterControllerAPI Apply(const UsdPrim &prim)
Applies this single-apply API schema to the given prim.
PHYSXSCHEMA_API UsdAttribute CreateMaxJumpHeightAttr(VtValue const &defaultValue=VtValue(), bool writeSparsely=false) const
See GetMaxJumpHeightAttr(), and also Usd_Create_Or_Get_Property for when to use Get vs Create...