AGX Dynamics 2.38.0.2
Loading...
Searching...
No Matches
PlaneJoint.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_PLANEJOINT_H
18#define AGX_PLANEJOINT_H
19
20#include <agx/Constraint.h>
21
22namespace agx
23{
25 {
26 public:
35 PlaneJoint( agx::RigidBody* rb1, agx::Frame* rb1AttachmentFrame, agx::RigidBody* rb2 = nullptr, agx::Frame* rb2AttachmentFrame = nullptr );
36
37 enum DOF
38 {
39 ALL_DOF = -1,
40 TRANSLATIONAL_1 = 0,
41 NUM_DOF = 1
42 };
43
44 virtual int getNumDOF() const override
45 {
46 return NUM_DOF;
47 }
48
50
51 virtual void render(class agxRender::RenderManager *, float /*scale = 1.0f*/ ) const override
52 {}
53
54
55 protected:
57 virtual ~PlaneJoint();
58
59 private:
60 class PlaneJointImplementation* m_implementation;
61 };
62
64} //namespace agx
65
66#endif
#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.
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
PlaneJoint(agx::RigidBody *rb1, agx::Frame *rb1AttachmentFrame, agx::RigidBody *rb2=nullptr, agx::Frame *rb2AttachmentFrame=nullptr)
Create a plane joint between one body and world or between two bodies.
virtual ~PlaneJoint()
virtual void render(class agxRender::RenderManager *, float) const override
Inherited method of how to render this constraint into DebugRenderer.
Definition PlaneJoint.h:51
virtual int getNumDOF() const override
Definition PlaneJoint.h:44
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.
agx::ref_ptr< agx::PlaneJoint > PlaneJointRef
Definition PlaneJoint.h:63