Skip to the content

Uchusen Rockets宇宙船

Rockets drawn from sourced sizes: line drawings and painted 3D views you drop into a page, take apart and turn round, and a typed model that checks whether a rocket really goes together.

Uchusen is the Japanese word 宇宙船 for spaceship. About the name

Contents

Reference · Rockets, variants, parts and the fit check

rolledUpfunction

The camera's up axis after a roll about the direction it looks along. Zero roll is straight up. The direction is a unit vector from the subject towards the camera.

Import it

import { rolledUp } from "@johnmorrisdotca/uchusen-rockets";

Definition

function rolledUp(direction: Vec3, roll: number): Vec3

Parameters

NameTypeDescription
directionVec3

Where the camera stands, as a unit vector.

rollnumber

Degrees about that direction. Positive rolls the camera's right side down.

Returns

Vec3

The up axis.

Examples

import { rolledUp } from "@johnmorrisdotca/uchusen-rockets";

console.log(rolledUp([0, 0, 1], 0));
[ 0, 1, 0 ]

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/uchusen-rockets 0.14.0.