Skip to content

Gfx3Transformable

jay19240 edited this page Dec 11, 2024 · 2 revisions

Gfx3Transformable

A transformable object with position, rotation, scale and more.

  • parent of: Gfx3Drawable, Gfx3Camera, Gfx3MeshLight

Constructors

  • new Gfx3Transformable(): Gfx3Transformable

Methods

  • getAxies()
  • getAxis(axis: Axis): vec3
    • axis
  • getPosition(): vec3
  • getPositionX(): number
  • getPositionY(): number
  • getPositionZ(): number
  • getQuaternion(): Quaternion
  • getRotation(): vec3
  • getRotationX(): number
  • getRotationY(): number
  • getRotationZ(): number
  • getScale(): vec3
  • getScaleX(): number
  • getScaleY(): number
  • getScaleZ(): number
  • getTransformMatrix(): mat4
  • lookAt(x: number, y: number, z: number, up: vec3): void
    • x: The x-coordinate of the target position that the transformable should look at.
    • y: The y-coordinate of the target position that the transformable should look at.
    • z: The z-coordinate of the target position that the transformable should look at.
    • up
  • rotate(x: number, y: number, z: number): void
    • x: The rotation angle on x-axis in radians.
    • y: The rotation angle on y-axis in radians.
    • z: The rotation angle on z-axis in radians.
  • setPosition(x: number, y: number, z: number): void
    • x: The X coordinate of the position.
    • y: The Y coordinate of the position.
    • z: The Z coordinate of the position.
  • setQuaternion(quaternion: Quaternion): void
    • quaternion: The quaternion.
  • setRotation(x: number, y: number, z: number): void
    • x: The rotation angle on x-axis in radians.
    • y: The rotation angle on y-axis in radians.
    • z: The rotation angle on z-axis in radians.
  • setScale(x: number, y: number, z: number): void
    • x: The x factor in the x-axis direction.
    • y: The y factor in the y-axis direction.
    • z: The z factor in the z-axis direction.
  • translate(x: number, y: number, z: number): void
    • x: The amount of translation in the x-axis direction.
    • y: The amount of translation in the y-axis direction.
    • z: The amount of translation in the z-axis direction.
  • zoom(x: number, y: number, z: number): void
    • x: The x factor in the x-axis direction.
    • y: The y factor in the y-axis direction.
    • z: The z factor in the z-axis direction.
Clone this wiki locally