Skip to content

Wall / Surface

The surface driver is an infinite wall, defined by its normal vector, its offset and its velocity. No angular velocity is defined for this driver.

Rigid surface

register_surface

Parameter Description
id driver index
state surface state: normal, offset (position along the normal), vel, and surface (area, for compressive motions)
params motion parameters, default { motion_type: STATIONARY }

STATIONARY

1
2
3
4
- register_surface:
   id: 0
   state: {normal: [0, 0, 1], offset: -0.5}
   params: { motion_type: STATIONARY }

LINEAR_MOTION

1
2
3
4
- register_surface:
   id: 4
   state: { normal: [1, 0, 0], offset: 11 }
   params: { motion_type: LINEAR_MOTION, motion_vector: [-1, 0, 0], const_vel: 2.5 }

Example: example/spheres/rigid-surface/rigid_surface_linear_motion.msp.

Note

The motion vector can only be equal to the normal or to its opposite.

Linear motion

LINEAR_COMPRESSIVE_MOTION

1
2
3
4
- register_surface:
   id: 4
   state: { normal: [1, 0, 0], offset: 11, surface: 144 }
   params: { motion_type: LINEAR_COMPRESSIVE_MOTION, motion_vector: [1, 0, 0], sigma: 0.5, damprate: 0.999 }

Note

  • The surface area of the wall must be given in state.
  • The motion vector is set to the normal.
  • When \(\sigma > 0\) and the surface is free of external forces, the wall moves in the direction opposite to its normal.

SHAKER

1
2
3
4
5
6
7
8
9
- register_surface:
   id: 2
   state: {normal: [0, 0, 1], offset: -1}
   params:
      motion_type: SHAKER
      amplitude: 0.5
      omega: 1e1
      motion_start_threshold: 3.0
      motion_end_threshold: 8.0
Shaker surface

PENDULUM_MOTION

1
2
3
4
- register_surface:
   id: 3
   state: { normal: [1, 0, 0], offset: -1 } # ignored
   params: { motion_type: PENDULUM_MOTION, amplitude: 3, omega: 4, pendulum_anchor_point: [-1, 5, -1], pendulum_initial_position: [-1, 5, 11], pendulum_swing_dir: [1, 0, 0] }
Pendulum surface

Example: example/spheres/rigid-surface/rigid_surface_pendulum_motion.msp.