AGX Dynamics 2.38.0.2
Loading...
Searching...
No Matches
AngularLockJoint.h
Go to the documentation of this file.
1/*
2Copyright 2007-2024. Algoryx Simulation AB.
3
4All AGX source code, intellectual property, documentation, sample code,
5tutorials, scene files and technical white papers, are copyrighted, proprietary
6and confidential material of Algoryx Simulation AB. You may not download, read,
7store, distribute, publish, copy or otherwise disseminate, use or expose this
8material unless having a written signed agreement with Algoryx Simulation AB, or having been
9advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10valid commercial license from Algoryx Simulation AB.
11
12Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13from using this software, unless otherwise stated in written agreements with
14Algoryx Simulation AB.
15*/
16
17#ifndef AGX_ANGULARLOCKJOINT_H
18#define AGX_ANGULARLOCKJOINT_H
19
20#include <agx/Constraint.h>
21
22namespace agx
23{
24
30 {
31 public:
38
47 AngularLockJoint( RigidBody* rb1, Frame* rb1AttachmentFrame, RigidBody* rb2 = nullptr, Frame* rb2AttachmentFrame = nullptr );
48
53 enum DOF
54 {
55 ALL_DOF=-1,
56 ROTATIONAL_1=0,
57 ROTATIONAL_2=1,
58 ROTATIONAL_3=2,
59 NUM_DOF=3
60 };
61
65 virtual int getNumDOF() const override
66 {
67 return NUM_DOF;
68 }
69
71
72 virtual void render(class agxRender::RenderManager *, float /*scale = 1.0f*/ ) const override
73 {}
74
75 protected:
78
79 private:
80 class AngularLockJointImplementation *m_implementation;
81 };
82
84}
85
86#endif
87
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
#define AGXPHYSICS_EXPORT
Class for managing the rendering of geometries, shapes, rigid bodies, constraints etc.
Constraint that removes 3 DOF (rotational degrees of freedom) between two bodies, or one body and the...
AngularLockJoint(RigidBody *rb1, Frame *rb1AttachmentFrame, RigidBody *rb2=nullptr, Frame *rb2AttachmentFrame=nullptr)
Create Angular lock joint given one or two rigid bodies with corresponding attachment frames.
AngularLockJoint(RigidBody *rb1, RigidBody *rb2=0)
Create Angular lock joint given one or two rigid bodies.
virtual int getNumDOF() const override
DOF
Enum used for specifying which Degree of Freedom (DOF) that should be accessed in calls to for exampl...
virtual void render(class agxRender::RenderManager *, float) const override
Inherited method of how to render this constraint into DebugRenderer.
virtual ~AngularLockJoint()
The base class for a constraint.
Definition Constraint.h:89
The object defining a frame of reference and providing transformations operations.
Definition agx/Frame.h:68
The rigid body class, combining a geometric model and a frame of reference.
Definition RigidBody.h:52
Smart pointer for handling referenced counted objects.
Definition ref_ptr.h:30
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
ref_ptr< AngularLockJoint > AngularLockJointRef