Momentum Scripting v1
Loading...
Searching...
No Matches
AngularSpring.h
1/*
2Copyright 2007-2025. 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 without having a written signed agreement with Algoryx Simulation AB.
9
10Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
11from using this software, unless otherwise stated in written agreements with
12Algoryx Simulation AB.
13*/
14
15#ifndef MOMENTUM_ANGULARSPRING_H
16#define MOMENTUM_ANGULARSPRING_H
17
18#include "momentum_namespace.h"
19#include "momentum_export.h"
20
21#include "AngularSecondaryJoint.h"
22
23#ifndef SWIG
25namespace agx
26{
27 class LockController;
28}
30#endif
31
32namespace MOMENTUM_NAMESPACE
33{
37 class MOMENTUM_EXPORT AngularSpring : public AngularSecondaryJoint
38 {
39 public:
40#ifndef SWIG
42
45 AngularSpring(agx::LockController* constraint);
47
48#endif
49
55 double getTargetAngle() const;
56
57#ifndef AGX_MOMENTUM_ANALYSIS_API
65 void setTargetAngle(double angle);
66#endif
67
69 std::string __str__() const;
71
72 protected:
76
77 private:
78#ifndef SWIG
80 agx::LockController* getLock() const;
82#endif
83 };
84} // namespace momentum
85
86
87#endif
An angular secondary joint operates on the free rotational DOF of angular joints such as HingeJoint a...
Definition: AngularSecondaryJoint.h:38
An angular spring will lock the rotation to a specific angle using the min/max torques.
Definition: AngularSpring.h:38
double getTargetAngle() const
Get the equilibrium angle for the AngularSpring In radians.
void setTargetAngle(double angle)
Set the target equilibrium angle In radians.
Namespace for Momentum Scripting API.
Definition: AffineMatrix4x4.h:29