@migenius/realityserver-extras v1.0.8
realityserver-extras
Classes to assist in the manipulation of RealityServer scene elements in the RealityServer Client
Introduction
This extras package adds additional classes to the RealityServer Client to assist in common operations
Transform
- Allows matricies to be manipulated in a more familiar way.Transform_target
- ATransform
variant that supports a 'look at' model where the -Z axis is always looking at a given point.Camera
- A camera abstraction class that simplifies camera modelling and navigation.Euler
- Represents Euler rotations.Quaternion
- Represents Quaternion rotations.
Usage
Download the minified library and include it directly in your HTML, or install via npm install @migenius/realityserver-extras
and use as a module in Node.js directly or via your favorite bundler (EG: rollup.js Webpack Broswerify). In the browser the classes will be added to the RS
namespace or can be imported from the realityserver-extras
module.
API Documentation
The RealityServer Extras API documentation can be found here.
Release Notes
1.0.7
Reduce size of built library
Rotations around an axis in Camera/Transform/Transform_target are now performed around the normalized axis.
1.0.6
Added RS.Camera.project_point and RS.Camera.project_point_to_pixel to project world points to screen space.
Fix bug in RS.Camera.set_from_object where transform
property was not assigned correctly. transform
can now be an actual RS.Target_transform
or a matrix. The matrix
property is not also supported.
Added RS.Camera.transform_point_to_world and RS.Camera.look_at_target_point.
Made RS.Transform_target.look_at_target_point a public function.
Updated to depend on realityserver-client 1.0.9.