alice: a visual introduction to programming chapter 1 part 3

11
Alice: A Visual Introduction to Programming Chapter 1 Part 3

Upload: norman-johns

Post on 18-Dec-2015

219 views

Category:

Documents


0 download

TRANSCRIPT

Alice: A Visual Introduction to Programming

Chapter 1 Part 3

Modifying Objects

1-2

Use Mouse Mode Buttons

Modify Objects

1-3

Move Freely

Move Up and Down Turn Left

and Right Tumble

Copy

ResizeTurn Forward and Backward

When checked can modify subparts

Center of an object Provides pivot or spin

referenceo Object spins around center

At the center of mass Where it stands on the

ground

Where it is held

Orientation When you click on

an object and rotate it you will notice arrowso Green points to up

from the objects perspective

o Red points to where object thinks its right is

o Blue is forward to the object

1-5

Scene Editor Viewing Modes

Single Viewo Viewing scene from

World View angle Quad view

o View scene from four views

World View From top From right From front

o Allows you to position one object in relation to another object

1-6

Zoom

Scroll

Quad view

Relational Positioning in Quad ViewNotice how rabbit is positioned in relation to chicken

1-7

From the right From the front

From the topWorld view

Scroll view

Zoom

Using Coordinates Axes are measured in meters Point (0,0,0) is at center of the world Usually when an object is added to world by clicking

on class then clicking on add instance the object is placed at (0,0,0)

Can see position of an object in pointOfView property

1-8

X axis

Coordinate System

1-9

Homework Read chapter 1 Do tutorials

o Tutorials 1-4, p. 40o Tutorials 1-5, p. 43

Answer questions in handout Do lab assignments after handing in

answered questions Due one week after assigned with 1 week

grace

1-10

Lab Lab exercises require you to demonstrate your

program to the professor When you write code you must explain to

professor what each line of code does and why. Professor will sign lab sheet after you do that You only get full credit for lab exercise if professor

signs lab sheet If you hand in lab without explaining code then

you will lose half credit