Skip to content

@fibbojs / 3d / FTransform

Class: FTransform

3D Transforms for a component.

Constructors

new FTransform()

new FTransform(options?): FTransform

Create a new FTransform.

Parameters

options?: FTransformOptions

The options for the collider.

Returns

FTransform

Example

ts
const collider = new FTransform({
  position: { x: 0, y: 0, z: 0 },
  scale: { x: 1, y: 1, z: 1 },
  rotation: { x: 0, y: 0, z: 0 },
})

Defined in

3d/src/core/FTransform.ts:44

Properties

position

position: Vector3

The position of the component.

Defined in

3d/src/core/FTransform.ts:18


rotation

rotation: Vector3

The rotation of the component.

Defined in

3d/src/core/FTransform.ts:26


scale

scale: Vector3

The scale of the component.

Defined in

3d/src/core/FTransform.ts:22