From GeoMod
- File names are saved with .py
- Clicking with the right mouse button and dragging on an object will rotate it; but clicking with both mouse buttons and dragging will zoom in and out
- Start every program you with < from visual import * >
- You can include remarks anywhere in your program but always after the number symbol (#)
- < scene.autoscale = 0 > takes out the auto zoom in the preview picture
- To enter a shape:
- choose what you want that shape to be called (ball) or (floor)
- pick the shape (ball = sphere) or (floor = box)
- give it dimensions (length, height, width, radius, etc.)
- Shapes have default dimensions but if you would like to change them you need to state the dimension and assign a numerical value; this can be done in vector form
For example: floor = box (length= 5, width= 5, height= 1)
- Vectors can also be used with different parameters
For example: ball.pos = vector(0,10,0)
- Any parameter that you would like to change about the object comes after the variable name and a period
For example: ball.velocity or ball.pos or ball.color
# ball.color = color.red
# or ball.color = color (1,0,0) {red, green, blue}