Activities/Turtle Art/Plugins: Difference between revisions
| Line 273: | Line 273: | ||
Use these blocks to create objects that are added to the bodylist and jointlist of a Box2d database used by the Physics Activity. Objects are positioned by the turtle x,y and colored based on the current pen attributes. From left to right: | Use these blocks to create objects that are added to the bodylist and jointlist of a Box2d database used by the Physics Activity. Objects are positioned by the turtle x,y and colored based on the current pen attributes. From left to right: | ||
* density: set the object density (0 is light; 1 is heavy) | |||
* friction: set the object friction (0 is slippery; 1 is sticky) | |||
* bounciness: set the object restitution (0 is rigid; 1 is bouncy) | |||
* start polygon: use the current turtle x,y position to specify the first vertex of a polygon | * start polygon: use the current turtle x,y position to specify the first vertex of a polygon | ||
* add point: use the current turtle x,y position to add a vertex to a polygon | * add point: use the current turtle x,y position to add a vertex to a polygon | ||
| Line 283: | Line 286: | ||
* gear: add a gear object at the current turtle x,y position with the number of teeth as the argument | * gear: add a gear object at the current turtle x,y position with the number of teeth as the argument | ||
* motor: add a motor at the current turtle x,y position (attached to the object at this position) | * motor: add a motor at the current turtle x,y position (attached to the object at this position) | ||
* pin: add a pin at the current turtle x,y position (attached to the object at this position) | * pin: add a pin at the current turtle x,y position (attached to the object at this position) to prevent movement | ||
* pen: add a pen at the current turtle x,y position (attached to the object at this position) to trace motion | |||
* joint: add a joint between the object at the current turtle x,y position and the object at x, y | * joint: add a joint between the object at the current turtle x,y position and the object at x, y | ||
* save as Physics project: save the current bodylist and jointlist as a Physics project in the Journal | * save as Physics project: save the current bodylist and jointlist as a Physics project in the Journal | ||
'''Note:''' The current model is cleared whenever the Erase button is pressed or a Clean block is run. | '''Note:''' The current model is cleared whenever the Erase button is pressed or a Clean block is run. | ||