Class T3DTransform

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type T3DTransform = class(T3DCustomTransform)

Description

Transform (move, rotate, scale) other T3D objects. Descends from T3DList, transforming all it's children. Defines simple properties like Translation.

Hierarchy

Overview

Methods

Public constructor Create(AOwner: TComponent); override;
Public procedure Translate(const T: TVector3Single); override;

Properties

Public property Center: TVector3Single read FCenter write SetCenter;
Public property Rotation: TVector4Single read FRotation write SetRotation;
Public property Scale: TVector3Single read FScale write SetScale;
Public property ScaleOrientation: TVector4Single read FScaleOrientation write SetScaleOrientation;
Public property Translation: TVector3Single read FTranslation write SetTranslation;

Description

Methods

Public constructor Create(AOwner: TComponent); override;
 
Public procedure Translate(const T: TVector3Single); override;
 

Properties

Public property Center: TVector3Single read FCenter write SetCenter;

Transformation is a combined Translation, and Rotation around Center point, and Scale around Center and with orientation given by ScaleOrientation. For precise order of these operations, see X3D Transform node.

Default values of these fields indicate no transformation. So everything is zero, except Scale which is (1,1,1). Scale must always have all components > 0 (some operations depend that scale here is invertible and doesn't flip sides). Non-uniform scale (e.g. when you scale along X coordinate 2 times, but you scale along Y coordinate 3 times) works... to some extent, that is collisions with spheres (including camera radius) are not perfect in this case. For perfect results, keep your scale uniform.

Public property Rotation: TVector4Single read FRotation write SetRotation;
 
Public property Scale: TVector3Single read FScale write SetScale;
 
Public property ScaleOrientation: TVector4Single read FScaleOrientation write SetScaleOrientation;
 
Public property Translation: TVector3Single read FTranslation write SetTranslation;
 

Generated by PasDoc 0.12.1 on 2013-02-04 20:26:49