[Thread Prev] [Thread Next]
Hello,
Try
t2, make "grav power (distance "t3) 2
I guess you are aware that :grav will be a quite large number...
or better yet
ask "t2 [make "grav power (distance "t3) 2]
that way, you will not change the "current turtle".
t2, makes t2 the current turtle
ask "t2 doesn't
Alain
-----Original Message-----
From: mwforum-admin@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
[mailto:mwforum-admin@xxxxxxxxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Burke,
Bridget - CKJH
Sent: October 10, 2007 4:00 PM
To: mwforum@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Subject: RE: MIA, Ask an Expert:using powers
We are trying to make a gravity program.
We are running into problems with power.
To fall
Make "grav (t2, power distance "t3 2)
End
We would like the value for "grav to be the distance between two turtles
squared.
How can we do this?
Previous by thread:
RE: MIA, Ask an Expert:using powers
Next by thread:
RE: MIA, Ask an Expert:using powers
To save an attachment to your computer, PC users should right-click (Mac users, click and hold the mouse button) on the link and then choose 'save target as' from the pop-up menu. A window will then pop up in which you can choose a location for the file.
|