Kree Documentation
  • Welcome to Kree Java
  • Changelog
  • Getting Started
    • Installing Kree
    • Installing Kree using CLI
    • Get Help on Discord
  • Core Components
    • Game
    • Window
    • SceneManager
    • Input
    • Debug
    • Sprite
    • GameObject
    • Transform
    • Vector2
    • SpriteSheet
    • Animation
    • Audio
    • Random
  • GameObject components
    • Animator
    • BoxCollider
    • LookAtObject
    • Mesh Renderer
    • ParticleSystem
    • RigidBody
    • SpriteRenderer
    • PlayerMovement
    • Prefs
  • Kree User Interface
    • Text
    • TextInput
    • ProgressBar
    • Button
    • Panel
  • Code Snippets
    • Launcher
    • Creating Scene
    • Follow Mouse On Click
    • Animating GameObject
    • Implementing Particle System
    • Creating Custom Components
    • Playing Audio
  • Game Tutorials
  • Avoid the Enemy!
  • High score
Powered by GitBook
On this page

Was this helpful?

  1. Core Components

Transform

This component handles the position, scale, and rotation of GameObject and User Interfaces

PreviousGameObjectNextVector2

Last updated 5 years ago

Was this helpful?

Component Author: Release Date: April 11, 2020

new Transform();
translate(Vector2 by); // Move the position by the given Vector2

getPosition(); // Returns Vector2

getScale(); // Returns Vector2

getRotation(); // Returns float

setScale(Vector2 scale); // Change the scale

setPosition(Vector2 position); // Change the position

Jabo