C# Класс THREE.Object3D

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
castShadow bool
children THREE.Object3D[]
frustumCulled bool
id string
matrix Matrix4
matrixAutoUpdate bool
matrixWorld Matrix4
matrixWorldNeedsUpdate bool
name string
parent Object3D
position Vector3
quaternion THREE.Quaternion
receiveShadow bool
rotation Euler
rotationAutoUpdate bool
scale Vector3
up Vector3
userData object
uuid string
visible bool

Открытые методы

Метод Описание
Object3D ( ) : System

The constructor takes no arguments.

add ( IEnumerable obj ) : void

Adds object as child of this object. An arbitrary number of objects may be added.

add ( Object3D obj ) : void

Adds object as child of this object. An arbitrary number of objects may be added.

applyMatrix ( Matrix4 m ) : void

matrix - matrix This updates the position, rotation and scale with the matrix.

getChildByName ( string name ) : Object3D

Searches through the object's children and returns the first with a matching name.

getObjectByProperty ( string name, object value ) : object
localToWorld ( Vector3 v ) : Vector3

Updates the vector from local space to world space.

lookAt ( Vector3 point ) : void

Rotates object to face point in space.

raycast ( THREE r, object intersects ) : void

Abstract method to get intersections between a casted ray and this object. Subclasses such as Mesh, Line, and Points implement this method in order to participate in raycasting.

remove ( IEnumerable obj ) : void

Removes object as child of this object. An arbitrary number of objects may be removed.

remove ( Object3D obj ) : void

Removes object as child of this object. An arbitrary number of objects may be removed.

translateX ( double distance ) : void

ranslates object along x axis by distance.

translateY ( double distance ) : void

ranslates object along y axis by distance.

translateZ ( double distance ) : void

ranslates object along z axis by distance.

updateMatrix ( ) : void

Updates local transform.

updateMatrixWorld ( bool force ) : void

Updates global transform of the object and its children.

updateProjectionMatrix ( ) : void
worldToLocal ( Vector3 v ) : Vector3

pdates the vector from world space to local space.

Описание методов

Object3D() публичный Метод

The constructor takes no arguments.
public Object3D ( ) : System
Результат System

add() публичный Метод

Adds object as child of this object. An arbitrary number of objects may be added.
public add ( IEnumerable obj ) : void
obj IEnumerable
Результат void

add() публичный Метод

Adds object as child of this object. An arbitrary number of objects may be added.
public add ( Object3D obj ) : void
obj Object3D
Результат void

applyMatrix() публичный Метод

matrix - matrix This updates the position, rotation and scale with the matrix.
public applyMatrix ( Matrix4 m ) : void
m Matrix4
Результат void

getChildByName() публичный Метод

Searches through the object's children and returns the first with a matching name.
public getChildByName ( string name ) : Object3D
name string
Результат Object3D

getObjectByProperty() публичный Метод

public getObjectByProperty ( string name, object value ) : object
name string
value object
Результат object

localToWorld() публичный Метод

Updates the vector from local space to world space.
public localToWorld ( Vector3 v ) : Vector3
v Vector3
Результат Vector3

lookAt() публичный Метод

Rotates object to face point in space.
public lookAt ( Vector3 point ) : void
point Vector3
Результат void

raycast() публичный Метод

Abstract method to get intersections between a casted ray and this object. Subclasses such as Mesh, Line, and Points implement this method in order to participate in raycasting.
public raycast ( THREE r, object intersects ) : void
r THREE
intersects object
Результат void

remove() публичный Метод

Removes object as child of this object. An arbitrary number of objects may be removed.
public remove ( IEnumerable obj ) : void
obj IEnumerable
Результат void

remove() публичный Метод

Removes object as child of this object. An arbitrary number of objects may be removed.
public remove ( Object3D obj ) : void
obj Object3D
Результат void

translateX() публичный Метод

ranslates object along x axis by distance.
public translateX ( double distance ) : void
distance double
Результат void

translateY() публичный Метод

ranslates object along y axis by distance.
public translateY ( double distance ) : void
distance double
Результат void

translateZ() публичный Метод

ranslates object along z axis by distance.
public translateZ ( double distance ) : void
distance double
Результат void

updateMatrix() публичный Метод

Updates local transform.
public updateMatrix ( ) : void
Результат void

updateMatrixWorld() публичный Метод

Updates global transform of the object and its children.
public updateMatrixWorld ( bool force ) : void
force bool
Результат void

updateProjectionMatrix() публичный Метод

public updateProjectionMatrix ( ) : void
Результат void

worldToLocal() публичный Метод

pdates the vector from world space to local space.
public worldToLocal ( Vector3 v ) : Vector3
v Vector3
Результат Vector3

Описание свойств

castShadow публичное свойство

Gets rendered into shadow map. default – false
public bool castShadow
Результат bool

children публичное свойство

Array with object's children.
public Object3D[],THREE children
Результат THREE.Object3D[]

frustumCulled публичное свойство

When this is set, it checks every frame if the object is in the frustum of the camera. Otherwise the object gets drawn every frame even if it isn't visible. default – true
public bool frustumCulled
Результат bool

id публичное свойство

readonly – Unique number for this object instance.
public string id
Результат string

matrix публичное свойство

Local transform.
public Matrix4,THREE matrix
Результат Matrix4

matrixAutoUpdate публичное свойство

When this is set, it calculates the matrix of position, (rotation or quaternion) and scale every frame and also recalculates the matrixWorld property. default – true
public bool matrixAutoUpdate
Результат bool

matrixWorld публичное свойство

The global transform of the object. If the Object3d has no parent, then it's identical to the local transform.
public Matrix4,THREE matrixWorld
Результат Matrix4

matrixWorldNeedsUpdate публичное свойство

When this is set, it calculates the matrixWorld in that frame and resets this property to false. default – false
public bool matrixWorldNeedsUpdate
Результат bool

name публичное свойство

Optional name of the object (doesn't need to be unique).
public string name
Результат string

parent публичное свойство

Object's parent in the scene graph.
public Object3D,THREE parent
Результат Object3D

position публичное свойство

Object's local position.
public Vector3 position
Результат Vector3

quaternion публичное свойство

Object's local rotation as Quaternion.
public Quaternion,THREE quaternion
Результат THREE.Quaternion

receiveShadow публичное свойство

Material gets baked in shadow receiving. default – false
public bool receiveShadow
Результат bool

rotation публичное свойство

Object's local rotation (Euler angles), in radians.
public Euler,THREE rotation
Результат Euler

rotationAutoUpdate публичное свойство

When this is set, then the rotationMatrix gets calculated every frame. default – true
public bool rotationAutoUpdate
Результат bool

scale публичное свойство

Object's local scale.
public Vector3 scale
Результат Vector3

up публичное свойство

Up direction. Default is THREE.Vector3( 0, 1, 0 ).
public Vector3 up
Результат Vector3

userData публичное свойство

An object that can be used to store custom data about the Object3d. It should not hold references to functions as these will not be cloned.
public object userData
Результат object

uuid публичное свойство

UUID of this object instance. This gets automatically assigned, so this shouldn't be edited.
public string uuid
Результат string

visible публичное свойство

Object gets rendered if true. default – true
public bool visible
Результат bool