Momentum Scripting v1
Loading...
Searching...
No Matches
LinearSecondaryJoint.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_LINEARSECONDARYJOINT_H
16#define MOMENTUM_LINEARSECONDARYJOINT_H
17
18#include "momentum_namespace.h"
19#include "momentum_export.h"
20
21#include "SecondaryJoint.h"
22
23#ifndef SWIG
25namespace agx
26{
27 class BasicControllerConstraint;
28}
30#endif
31
32namespace MOMENTUM_NAMESPACE
33{
37 class MOMENTUM_EXPORT LinearSecondaryJoint : public SecondaryJoint
38 {
39 public:
40#ifndef SWIG
42
45 LinearSecondaryJoint(agx::BasicControllerConstraint* constraint);
46
52#endif
53
59 std::pair<double, double> getForceLimit() const;
60
61#ifndef AGX_MOMENTUM_ANALYSIS_API
74 bool setForceLimit(std::pair<double, double> limit);
75
88 bool setForceLimit(double lower, double upper);
89
90#endif
91
96 double getCurrentForce() const;
97
99 std::string __str__() const;
101
102 };
103} // namespace momentum
104
105
106#endif
A base class for motors, springs and ranges on linear constraints.
Definition: LinearSecondaryJoint.h:38
double getCurrentForce() const
Get the force that the secondary constraint is applying to the object at the moment.
bool setForceLimit(std::pair< double, double > limit)
Set the lower and upper force of the secondary constraint.
std::pair< double, double > getForceLimit() const
Get the lower and upper force of the secondary constraint.
bool setForceLimit(double lower, double upper)
Set the lower and upper force of the secondary constraint.
A Base class for a joint which operates on the free DOF specifies by ordinary joints such as HingeJoi...
Definition: SecondaryJoint.h:38
Namespace for Momentum Scripting API.
Definition: AffineMatrix4x4.h:29