Fandom

SketchyPhysicsWiki

Camera (Lazyscript)

103pages on
this wiki
Add New Page
Talk0 Share

One of the scripts in the LazyScript Plugin

Internal cameraEdit

Sets the camera onto object. When the simulation plays, the SketchUp camera will center inside the object, viewing out towards its Z axis.

The Z axis is the upper side of your object, so remember to point the object's top side in the direction you want to look.

internalCamera(id)

id - camera identification, if you want to set up more then one camera

Example:

internalCamera(nil) #standard use
internalCamera() #it should also be usable like this


Follow cameraEdit

Camera will follow an object from behind; this is very useful for vehicles.

followCamera(id, settings)

id - camera identification, if you want to set up more then one camera, by default just use 'nil'.

settings - an array for the camera's various settings, including its position, and the way it behaves.

Example:

followCamera(nil) #standard use, uses preset settings
followCamera() #another standard use

settings=[]
settings[0]=followPosBack #camera backwards distance from object(default 100)
settings[1]=followPosUp #camera upward distance from object(default 20)
settings[2]=followSpring #camera mitigation(default 10)
settings[3]=followAimUp #(default -0.1)
followCamera(nil,settings) #standard use with new settings



NotesEdit

This is an unfinished feature. Multiple, switchable cameras will be easily possible once completed.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.