MAXScript Extensions > MAXScript Extensions for Reactor >

# L_Dashpot : Helper

    L_Dashpot - superclass: Helper; super-superclass:Node - classID: #(186413646, 1710298770)

The Reactor dynamics system has been retired and REMOVED from 3ds Max 2012.

Value > MAXWrapper > Node > Helper > reactor > L_Dashpot

Description:

The Linear Dashpot Constraint allows you to constrain two rigid bodies together in the simulation, or to constrain one body to a position in world space. It behaves very similarly to a heavily damped spring. You can specify the dashpot’s strength and damping, and whether collisions between the attached bodies are disabled. You can specify a dashpot attachment point in each body's local space. During the simulation, the dashpot exerts impulses on the attached bodies in an attempt to make these points match up in world space, thus keeping the bodies in the same positions relative to each other. The bodies are still free to rotate around the attachment point.

Constructors:

    L_Dashpot ... rctLinearDashpot ...

Properties:

    .childBody(Child_Body) : node

Get/Set the Child Body.

    .hasParent(Has_Parent) : boolean

When set to true , the Parent Body will be used in the simulation.

    .parentBody(Parent_Body) : node

Get/Set the Parent Body.

    .strength: float

Get/Set the strength value which governs the size of the impulse the dashpot will apply to each attached body, taking into account the distance between the attachment points. The strength value is mass dependent.

    .damping: float

Get/Set the samping value which affects how quickly the oscillation of the linear dashpot settles down. It governs the impulse applied to the connected bodies due to the relative velocities of their dashpot connection points

    .allowInterpenetration(Allow_Interpenetration) : boolean

When set to true , collisions are disabled between the dashpot’s objects - during the simulation, they will be able to pass through each other. Defaults to false .

    .disabled: boolean

When set to true , the dashpot is not added to the simulation

    .lockSpaces(Lock_Spaces) : boolean

When set to true , the relative transform between the child and parent constraint spaces is locked - if you move the child space in the viewport, the parent space will move with it, and vice versa.

### Interfaces

    Interface:rctLinearDashpotInterface

Properties:

    .parentBody: node : Read|Write

Get/Set the Parent Body.

    .childBody: node : Read|Write

Get/Set the Child Body.

When set to true , the Parent Body will be used in the simulation.

    .parentTransform: matrix3 by value : Read|Write

Get/Set the Parent Body's transformation matrix.

    .childTransform: matrix3 by value : Read|Write

Get/Set the Child Body's transformation matrix.

    .lockSpaces: boolean : Read|Write

When set to true , the relative transform between the child and parent constraint spaces is locked - if you move the child space in the viewport, the parent space will move with it, and vice versa.

    .strength: float : Read|Write

Get/Set the strength value which governs the size of the impulse the dashpot will apply to each attached body, taking into account the distance between the attachment points. The strength value is mass dependent.

    .damping: float : Read|Write

Get/Set the samping value which affects how quickly the oscillation of the linear dashpot settles down. It governs the impulse applied to the connected bodies due to the relative velocities of their dashpot connection points

    .allowInterpenetration: boolean : Read|Write

When set to true , collisions are disabled between the dashpot’s objects - during the simulation, they will be able to pass through each other. Defaults to false .

    .isDisabled: boolean : Read|Write

When set to true , the dashpot is not added to the simulation

Methods:

    <void>alignToParentBody()

Aligns the Constraint to the Parent Body.

    <void>alignToChildBody()

Aligns the Constraint to the Child Body.

    <void>alignToParentSpace()

Aligns the Constraint to parent space.

    <void>alignToChildSpace()

Aligns the Constraint to child space.

    <void>alignToEachBody()

Aligns the Constraint to both bodies.

    <boolean>isValid()

Returns true if the Constraint is valid, false otherwise. A valid Constraint has the correct number of rigid bodies attached and is included in a valid constraint solver.

#### See Also

- MAXScript Extensions forReactor