C# 클래스 THREE.Object3D

파일 보기 프로젝트 열기: guidovanhilst/SharpThreejs 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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