154 void store(
agxStream::OutputArchive& out ) const;
159 void restore(
agxStream::InputArchive& in );
166 agx::Bool getAndResetSplitRelatedDataDirtyFlag();
170 enum StateEnum :
agx::UInt32
172 MERGE_ENABLE = 1 << 0,
173 CONTACT_REDUCTION_LEVEL_AGGRESSIVE = 1 << 1,
174 CONTACT_REDUCTION_LEVEL_MODERATE = 1 << 2,
175 CONTACT_REDICTION_LEVEL_MINIMAL = 1 << 3,
176 LOCK_TO_REACH_MERGE_CONDITION = 1 << 4,
177 SPLIT_RELATED_DATA_DIRTY = 1 << 5
179 using State = agx::BitState<StateEnum, agx::UInt32>;
184 agx::Real m_lockToReachMergeConditionCompliance;
185 agx::Real m_lockToReachMergeConditionDamping;
#define AGXVEHICLE_EXPORT
Properties and thresholds for internal merging of nodes in agxVehicle::Track.
void setNumNodesPerMergeSegment(agx::UInt numNodesPerMergeSegment)
Assign number of nodes in a row that may merge together.
void setMaxAngleMergeCondition(agx::Real maxAngleToMerge)
Assign maximum angle > 0 to trigger merge between nodes.
void setLockToReachMergeConditionCompliance(agx::Real compliance)
Assign compliance of the hinge lock used to reach merge condition.
agx::Bool getEnableMerge() const
void setEnableMerge(agx::Bool enable)
Enable/disable merge of nodes to segments in the track.
void resetToDefault()
Resets all values to default (see default constructor).
ContactReduction getContactReduction() const
agx::Bool getEnableContactReduction() const
agx::UInt getContactReductionBinResolution() const
ContactReduction
Contact reduction of merged nodes in contact with other objects such as ground.
@ NONE
Contact reduction disabled.
@ MODERATE
Contact reduction enabled with bin resolution = 2.
@ MINIMAL
Contact reduction enabled with bin resolution = 3.
agx::Bool getEnableLockToReachMergeCondition() const
void setEnableLockToReachMergeCondition(agx::Bool enable)
Enable/disable the usage of hinge lock to reach merge condition (angle close to zero).
agx::Real getLockToReachMergeConditionDamping() const
agx::UInt getNumNodesPerMergeSegment() const
void setContactReduction(ContactReduction contactReductionLevel)
Set contact reduction level of merged nodes against other objects.
void setLockToReachMergeConditionDamping(agx::Real damping)
Assign damping of the hinge lock used to reach merge condition.
agx::Real getLockToReachMergeConditionCompliance() const
agx::Real getMaxAngleMergeCondition() const
TrackInternalMergeProperties()
Default constructor: merge enabled = false number of nodes per merge segment = 3 contact reduction = ...
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
This namespace contain classes for streaming classes into archives, ASCII, binary for storage (serial...
This namespace contains classes related to vehicles dynamics.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.