This control is developed by:
Avatarptp

Roll Pitch Yaw

Control Thumbnail

How To Download and Use This Control

  1. Make sure you have the latest version of EZ-Builder installed.
  2. Select the Install button below to download the file.
  3. Double click the downloaded file to open installer.
  4. The installer will add this control to EZ-Builder.

Two instances different camera angles:
User-inserted image


Top Menus:
Configuration - configuration form

Scroll Bars:
Rotate Camera - When selected the top, bottom, right scroll bars controls the camera rotation (roll, pitch, yaw)

Position Camera - When selected the top, bottom, right scroll bars controls the camera distance from the object (x,y,z)

Rotate Object - When selected the top, bottom, right scroll bars controls the object (cube) rotation (roll, pitch, yaw)

Reset - sets 0,0,0 for the selected scroll bars

Show Camera Settings - Displays the camera position & rotation values

The Camera settings (excluding the object rotation) are saved to the project .

Configurations:

User-inserted image


User-inserted image


Controlling Variable - If specified an EZ-Script 3 position array variable is created to store the roll, pitch, yaw angles.
The value is updated when the scroll bars are controlling the object and the user changes the values.

Monitoring Variable - If specified the plugin instance will monitor a 3 position array variable (roll, pitch, yaw) and use the values to rotate the cube.

Simple Test:
Start a new Project
Add the RollPitchYaw plugin
Specify a monitoring variable: $rotation1
add the following script:

Code:


DefineArray($rotation1,3)

Repeat( $ax, 0, 2, 1)
$rotation1[0] = 0
$rotation1[1] = 0
$rotation1[2] = 0

$angle = 0
REPEATWHILE ($angle<=360)
$rotation1[$ax] = $angle
$angle = $angle + 1
Sleep(50)
EndRepeatWhile

EndRepeat


Hit Script Run!

Visualize the 360 degrees rotation over the 3 axis (Roll, Pitch, Yaw)