<<<<<<<<<<<<<<<<<

person(oscar) Animation person(oscar)

NAME

person - an actor with orientation

DESCRIPTION

A person is a subclass of an actor. It provides alternative interface for controlling actor's orientation in 3D space. Extra convenience in controlling person's orientation is due to the presens of two fixed relative to person orientation orthogonal vectors front and up. The visual appearance of geometry on the screen depends on the geometry model orientation in local coordinate space.

SUPERCLASS

actor

INSTANCE VARIABLES

axis is the axis in 3D space around which person can be rotated (in addition to rotate_x:, rotate_y:, rotate_z: ), default value is (0, 0, 1). It is used by method rotate_wxyz:.

front is the 3D vector, default is (0, 0, 1).

up is the 3D vector, default is (0, 1, 0).

properties is a name of associated properties object that is used by GERT (General Electric Ray Tracer).

MESSAGES

axis=(+) argument sets (adds) argument to the instance variable axis. Argument can be arbitrary 3D vector.

axis? returns the value of instance variable axis.

front=(+) argument sets (adds) the front vector of an instance. Adjusts up of an instance keeping them orthogonal. New up is lying in the same plane as old up and new front.

front? returns the value of an instance variable front.

matrix? returns the transformation matrix (4x4) of an instance.

inverse_matrix? returns the inverse transformation matrix (4x4) of an instance.

rotate_wxyz: angle rotates person clockwise by angle degrees around

axis.

up= argument sets (adds) the up vector of an instance. Adjusts front of an instance keeping them orthogonal. New front is lying in the same plane as old front and new up.

up? returns the value of an instance variable up.

EXAMPLE

/* create a box */ person new: box;

SEE ALSO

actor modeller renderer property transform properties


Please send comments and suggestions to
consult@rpi.edu