Chapter 1 part 3

advertisement
Alice:
A Visual Introduction to Programming
Chapter 1 Part 3
Modifying Objects
Use Mouse Mode Buttons
1-2
Modify Objects
Move Up
and Down Turn Left
and Right
Move Freely
Tumble
Copy
When checked
can modify
subparts
Resize
Turn
Forward and
Backward
1-3
Center of an object

Provides pivot or spin
reference
o
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 arrows
o
o
o
Green points to up from
the objects perspective
Red points to where
object thinks its right is
Blue is forward to the
object
1-5
Scene Editor Viewing Modes

Single View
o

Viewing scene from
World View angle
Scroll
Quad view
o
View scene from four
views




o
Zoom
World View
From top
From right
From front
Allows you to position
one object in relation to
another object
Quad view
1-6
Relational Positioning in Quad View
Notice how
rabbit is
positioned in
relation to
chicken
World view
From the top
Zoom
Scroll view
From the right
From the front
1-7
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
X axis
1-8
Coordinate System
1-9
Homework


Read chapter 1
Do tutorials
o
o



Tutorials 1-4, p. 40
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
Download