*v | Pointer to view structure |
*p | Amount of movement along the X, Y, and Z axes (absolute amount) |
The following moves the view located at (0, 0, 0) with orientation (0, 0, -1) (screen rear) by 100 along the X axis, 200 along the Y axis, and 300 along the Z axis. NJS_VIEW v; NJS_POINT3 p; p.x = 100.f; p.y = 200.f; p.z = 300.f; njInitView(&v); njSetView(&v); njTranslateView(&v, &p); njClearMatrix();
** Important **
This function is not deleted to keep compatible with Ninja program before SDK Ver. 0.15. When programs are written newly, do not use this function as it may be eliminated in the future.