Diorama

Made for a big screen.

This site is one 3D scene, built for a computer: a wide window and a mouse. Open dioramajs.dev on a desktop or a laptop to see it.This site is one 3D scene, built for a wide window. Make this one wider, or open dioramajs.dev on a larger screen.

GitHub

DioramaDocs

flipPose function

Rotation of the flip part at `t` 0..1 of a turn from face `from` (0 front, 1 back): a flip turns about the vertical, a toss tumbles about the horizontal while it rolls half a turn, so it lands as the flip does, the other face upright.

View as Markdown
import { flipPose } from '@dioramajs/model/coin'

. Returns [x, y, z, lift in diameters].

function flipPose(
  motion: Motion,
  from: number,
  t: number,
): [number, number, number, number]

Parameters

NameTypeDescription
motionMotion
fromnumber
tnumber

Defined in packages/model/src/coin.ts.