Salta ai contenuti
Seleziona lingua:Italiano
Questa pagina è disponibile solo in inglese.

AuRea 1.0.2

open class AuBasicObject(mesh: AuMesh, texture: AuTexture, color: UInt, trans: Mat4f) : AuObject

Represents an object in the 3D scene rendered as basic material.

Parameters

mesh

The mesh of the object.

texture

The texture of the object.

color

The color of the object.

trans

The transformation matrix of the object.

Constructors

constructor(mesh: AuMesh, texture: AuTexture, color: UInt, trans: Mat4f)

Inherited properties

The handle to the native resource.

var transformation: Mat4f

The transformation matrix of the entity.

Whether or not this entity is visible.

Functions

fun setColor(color: UInt)

Sets the color of the object.

Inherited functions

fun add(animation: AuAnimation)

Adds the specified animation to this entity.

open override fun close()

Release the native resources.

Disables hit detection for this entity.

fun enableHit(id: Long, bounds: FloatArray)

Enables hit detection for this entity.

fun remove(animation: AuAnimation)

Removes the specified animation from this entity.

Removes all animations currently attached to this entity.

Removes the most recently added animation from this entity.

fun setMesh(mesh: AuMesh)

Sets a new mesh for the object.

fun setOcclusion(value: Boolean)

Sets if this object is occluded by real object.