C# 클래스 world3D.Object3D

Represents a visible three dimensional object, such as a box, sphere, vehicle, NPC, ... Abstracts from the representation (like voxels) and encapsulates common operations on 3D objects like transformations.
파일 보기 프로젝트 열기: denniskb/asvo

공개 프로퍼티들

프로퍼티 타입 설명
frame int

보호된 프로퍼티들

프로퍼티 타입 설명
_representation BFSOctree

공개 메소드들

메소드 설명
Object3D ( BFSOctree representation, bool rightHandedCoordinateSystem )

Creates a new 3D object consiting of the provided octree. After creation, its transformation matrices reflect its position and orientation in the world space coordinate system.

getData ( ) : BFSOctree

Returns the raw 3d data that represents this object.

getRotation ( ) : Matrix

Returns the rotation matrix of this model only. Suitable for transforming normals.

getTransformation ( ) : Matrix

Returns the transformations of this object. Rotation is always applied before translation.

rotate ( Vector3 axis, float angle ) : void

Rotates the object around axis by angle.

translate ( Vector3 offset ) : void

Translates this object by offset.

비공개 메소드들

메소드 설명
updateTransformation ( ) : void

Caches the transformations of this model after each modification of its position / orientation.

메소드 상세

Object3D() 공개 메소드

Creates a new 3D object consiting of the provided octree. After creation, its transformation matrices reflect its position and orientation in the world space coordinate system.
public Object3D ( BFSOctree representation, bool rightHandedCoordinateSystem )
representation BFSOctree The raw 3d data which represents the object in form of a BFSOctree.
rightHandedCoordinateSystem bool Indicates whether the calling /// framework uses a right-handed coordinate system and if therefore the /// object needs to be translated into this system, if false nothing happens as /// octree data is always provided in a left-handed manner.

getData() 공개 메소드

Returns the raw 3d data that represents this object.
public getData ( ) : BFSOctree
리턴 BFSOctree

getRotation() 공개 메소드

Returns the rotation matrix of this model only. Suitable for transforming normals.
public getRotation ( ) : Matrix
리턴 Matrix

getTransformation() 공개 메소드

Returns the transformations of this object. Rotation is always applied before translation.
public getTransformation ( ) : Matrix
리턴 Matrix

rotate() 공개 메소드

Rotates the object around axis by angle.
public rotate ( Vector3 axis, float angle ) : void
axis Vector3 The axis to rotate this object around.
angle float The angle to rotate this object by.
리턴 void

translate() 공개 메소드

Translates this object by offset.
public translate ( Vector3 offset ) : void
offset Vector3 The offset to translate this object by.
리턴 void

프로퍼티 상세

_representation 보호되어 있는 프로퍼티

protected BFSOctree _representation
리턴 BFSOctree

frame 공개적으로 프로퍼티

public int frame
리턴 int