Browse Search Popular Register Upload Rules User list Login:
Search:
Velocity-Reading phunlet

Image:
screenshot of the scene

Author: TC42

Group: Default

Filesize: 6.13 kB

Date added: 2011-04-14

Rating: 5

Downloads: 640

Views: 1206

Comments: 3

Ratings: 1

Times favored: 0

Made with: Algodoo Phunlet

Tags:
velocity,
reading,
phunlet,
speed,
measuring

Scene tag

A useful velocity phunlet. The velocity [X m/s, Y m/s] is stored in the "vel" property of the circle, and the speed (m/s) in the "speed" property. The circle has -inf inertia multiplier as it is not meant to be rotated (rotation would skew the velocity).

EDIT: You must run the sim for a little bit before you use the phunlet. The phunlet creates variables inside the circle, so the sim must be run to let it create those variables. If the variables are not created, the phunlet will not work.

Please report any bugs to me so that I can fix them right away.
Last edited at 2011/04/15 02:28:33 by TC42
Please log in to rate this scene
edit
Similar scenes
Title: [Phun only] K-Probe2 phunlet
Rating: 7.8125
Filesize: 13.68 kB
Downloads: 1583
Comments: 13
Ratings: 10
Date added: 2009/06/12 08:46:19
Made with: Phun
Rating: rated 7.8
download
Title: Velocity Measurer 2
Rating: 5
Filesize: 9.51 kB
Downloads: 585
Comments: 1
Ratings: 1
Date added: 2011/05/07 00:03:47
Made with: Algodoo before v1.8.5
Rating: rated 5
download
Title: X-probe Phunlet
Rating: 5.1111
Filesize: 4.86 kB
Downloads: 941
Comments: 5
Ratings: 3
Date added: 2009/08/25 18:45:12
Made with: Phun
Rating: rated 5.1
download
Title: V8 Spawn Block phunlet save
Rating: 5
Filesize: 341.21 kB
Downloads: 447
Comments: 0
Ratings: 1
Date added: 2011/08/16 01:24:02
Made with: Algodoo v1.9.8b
Rating: rated 5
download
Title: Super-sweet scripted gun (Phunlet-safe!)
Rating: 8
Filesize: 100.09 kB
Downloads: 3773
Comments: 9
Ratings: 13
Date added: 2009/05/09 08:06:13
Made with: Phun
Rating: rated 8
download
Title: Speedometer
Rating: 5.375
Filesize: 21.98 kB
Downloads: 876
Comments: 0
Ratings: 2
Date added: 2010/02/28 05:21:43
Made with: Phun
Rating: rated 5.4
download
WOW. How did you get all of those extra boxes in the script menu? And is there a way to convert the speed of the circle into box text? _o_
Glad you like it!

I got the extra boxes by simply adding things like e.geom.variablename=variablevalue into the laser's onlaserhit menu. That way, the attributes are loaded into the object's script menu as soon as the laser hits the object. This also means that you must run the sim for a little bit to get the phunlet to work and the values to appear. I'm not sure how to get the speed into a box text other than replacing the circle with a box and using text = {"" + speed} or replace e.geom.speed with a scene.my variable.

Is there any way to check the accuracy of this? Because it appears to be more accurate than the velocities menu, but I have no absolute reference...
Last edited at 2011/04/15 02:27:00 by TC42
It depends on what value (m/s, km/h etc.) your velocity reader is displaying in. If it's m/s, then simply compare speed of your velocity reader to Geom > Context menu > Information > Velocity. If speeds are the same, your velocity reader is 100% accurate.