Skip to content

Strike Connection

Description

A connection where one access strikes another.

(make-connection 'strike ... )

Syntax and Default Values

The 'strike connection can be created using the following Lisp syntax:

(make-connection 'strike acc_ref1 init_pos1 acc_ref2  init_pos2 weight)
or ('unilateral' strike connection):

(make-connection 'strike acc_ref1 init_pos1 weight)

Parameters

The 'strike connection takes five arguments (or just three to create a unilateral connection):

  • acc_ref1: access on striking object.
  • init_pos1: initial position of the striking object's access. (numerical value, not a controller)
  • acc_ref2: access on object to be struck.
  • init_pos2: initial position of the struck object's access. (numerical value, not a controller)
  • weight: (optional) controller weighing the interaction.

The two positions must be numerical values, not controllers. The weight controller is optional. If not provided, it defaults to 1.

To create a unilateral strike connection, the second access and its position are not provided.

Discussion

As with the pluck connection, strike accesses must be given an initial location and then moved in order to produce an interaction. (To move the accesses, it is necessary to use another controller: either 'position, 'force, or 'speed.) Note that the strike connection is identical to the pluck connection, except that there is no “release” when the “plectrum” (“hammer”) pushes too far.

Options

Unilateral Strike Connection

In the case of 'unilateral' contact, you provide only one access. In that situtation, contact will be made with an infinitely rigid “ground surface” situated at zero. See the Tampura example for an application.

Retro-Compatibility

In older versions of Modalys, the arguments were provided in a slightly different order:

(make-connection 'strike acc_ref1 acc_ref2 init_pos1 init_pos2)

See Also

You may need to update this connection to the new syntax if you come across any very old Modalys files.

★     ★