| Article | 70000390 |
| Type | Wish |
| Product | WebJS |
| Date Added | 4/14/2015 12:00:00 AM |
| Fixed | (4/20/2015 12:00:00 AM) |
| Submitted by | Youssef El Mahroug |
Summary
Could you tell me how I can set my camera at the position and direction I want
Solution
In version 7004.0.2 a new function was added in the web library, LookAt(eyePosition, TagetPoint, twistAngle). Using this function the user can place the camera on a specific position with a defined direction.
LookAt(eyePosition, TagetPoint, twistAngle)
The function takes the following parameters- eyePosition: A point (as array) in Current User Coordinate System (UCS) representing the position of the camera.
- tagetPoint: A point (as array) in Current User Coordinate System (UCS) representing the target point.
- twistAngle: The twist of the camera in radians.
