Function RigidBody.setAxisLock

Locks the specified linear or rotational axis.

void setAxisLock (
  const(long) axis,
  const(bool) lock
) nothrow @nogc;