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

screenshot of the scene

Author: TC42

Group: Default

Filesize: 6.13 kB

Date added: 2011-04-14

Rating: 5

Downloads: 312

Views: 871

Comments: 3

Ratings: 1

Times favored: 0

Made with: Algodoo Phunlet


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
Similar scenes
Title: Velocity measuring Phunlet (Read description)
Rating: 5
Filesize: 14.13 kB
Downloads: 240
Comments: 0
Ratings: 1
Date added: 2011/05/06 16:20:32
Made with: Algodoo Phunlet
Rating: rated 5
Title: Velocity Measurer 2
Rating: 5
Filesize: 9.51 kB
Downloads: 342
Comments: 1
Ratings: 1
Date added: 2011/05/07 00:03:47
Made with: Algodoo before v1.8.5
Rating: rated 5
Title: X-probe Phunlet
Rating: 5.1111
Filesize: 4.86 kB
Downloads: 636
Comments: 5
Ratings: 3
Date added: 2009/08/25 18:45:12
Made with: Phun
Rating: rated 5.1
Title: Velocity and Acceleration Reading Car
Rating: 5.8889
Filesize: 10.9 kB
Downloads: 364
Comments: 3
Ratings: 3
Date added: 2009/08/07 06:21:08
Made with: Phun
Rating: rated 5.9
Title: Speedometer
Rating: 5.375
Filesize: 21.98 kB
Downloads: 507
Comments: 0
Ratings: 2
Date added: 2010/02/28 05:21:43
Made with: Phun
Rating: rated 5.4
Title: Benchmark_v0.2.phz (Phunlet)
Rating: 5.625
Filesize: 23.45 kB
Downloads: 309
Comments: 15
Ratings: 2
Date added: 2010/12/17 14:06:26
Made with: Phunlet
Rating: rated 5.6
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 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.