All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ch.viseon.threejs.declarations.objects.Sprite.kt Maven / Gradle / Ivy

Go to download

Kotlin binding for ThreeJs, javascript library for 3d rendering

There is a newer version: 104.0.0
Show newest version
//Generated date 23.11.2018
@file:JsModule("three")
package ch.viseon.threejs.declarations.objects

	/**
	* A sprite is a plane that always faces towards the camera, generally with a partially transparent texture applied. Sprites do not cast shadows, setting castShadow = true will have no effect.
	*/
open external class Sprite(material: ch.viseon.threejs.declarations.materials.Material = definedExternally): ch.viseon.threejs.declarations.core.Object3D{

	/**
	* Used to check whether this or derived classes are sprites. Default is **true**. You should not change this, as it used internally for optimisation.
	*/
	open var isSprite: Boolean  = definedExternally


	/**
	* An instance of [page:SpriteMaterial], defining the object's appearance. Default is a white [page:SpriteMaterial].
	*/
	open var material: ch.viseon.threejs.declarations.materials.SpriteMaterial  = definedExternally


	/**
	* The sprite's anchor point, and the point around which the sprite rotates. A value of (0.5, 0.5) corresponds to the midpoint of the sprite. A value of (0, 0) corresponds to the lower left corner of the sprite. The default is (0.5, 0.5).
	*/
	open var center: ch.viseon.threejs.declarations.math.Vector2  = definedExternally


	/**
	* Returns a clone of this Sprite object and any descendants.
	*/
	open fun clone() : ch.viseon.threejs.declarations.objects.Sprite


	/**
	* Copies the properties of the passed sprite to this one.
	*/
	open fun copy(sprite: ch.viseon.threejs.declarations.objects.Sprite = definedExternally) : ch.viseon.threejs.declarations.objects.Sprite


	/**
	* Get intersections between a casted ray and this sprite. [page:Raycaster.intersectObject] will call this method.
	*/
	override fun raycast(raycaster: ch.viseon.threejs.declarations.core.Raycaster, intersects: Array/*Array*/) : dynamic/*null*/
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy