Browse Search Popular Register Upload Rules User list Login:
Search:
The Swing-by motor car with sensor box

Image:
screenshot of the scene

Author: mori-d

Group: Default

Filesize: 46.96 kB

Date added: 2010-05-22

Rating: 5

Downloads: 667

Views: 1483

Comments: 7

Ratings: 1

Times favored: 0

Made with: Phun

Tags:

Scene tag

The "swing-by" motor car, with the sensor box.

left or right arrow key: start cell motor
down arrow key: brake

The sensor box shows below:
position(x,y) [m]
normal vector(x,y)
velocity vector(x,y) [m/s]
speed [km/h] (m/s)
angular velocity [rad/s]
heading angle [deg]
moving direction [deg]
drift angle [deg] ( 'moving direction' - 'heading angle' )

*** last updated Mon May 24 01:18:34 JST 2010

The sensor box is improved.
It is more accurate and lightweight (low CPU cost) than old version.


[The below is written in Japanese]

センサーボックス付き、スイングバイ・モーター車です。

←/→キー: セルモーター始動
↓キー: ブレーキ

センサーボックスには以下が表示されます:
位置(x,y) [m]
法線ベクトル(x,y)
速度ベクトル(x,y) [m/s]
速度 [km/h] (m/s)
角速度 [rad/s]
機首方位 [deg]
進行方向 [deg]
偏流角 [deg] (「進行方向」 - 「機首方位」)

*** last updated Mon May 24 01:18:34 JST 2010

センサーボックスを改良しました。
旧バージョンより高精度かつ軽量(CPU負荷を低減)になってます。
Last edited at 2010/05/23 17:47:43 by mori-d
Please log in to rate this scene
edit
Similar scenes
Title: Laser Triangulation Sensor
Rating: 5.625
Filesize: 12.58 kB
Downloads: 699
Comments: 1
Ratings: 2
Date added: 2012/03/03 15:21:45
Made with: Algodoo v1.8.5
Rating: rated 5.6
download
Title: Landing Sensor
Rating: 4.8889
Filesize: 71.16 kB
Downloads: 1069
Comments: 0
Ratings: 3
Date added: 2011/02/09 16:54:19
Made with: Algodoo before v1.8.5
Rating: rated 4.9
download
Title: BOY ON A SWING (tech demo)
Rating: 5
Filesize: 42.81 kB
Downloads: 893
Comments: 4
Ratings: 1
Date added: 2013/05/20 08:18:31
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Position Sensor A II
Rating: 5
Filesize: 135.56 kB
Downloads: 1015
Comments: 3
Ratings: 1
Date added: 2014/04/13 14:00:56
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Pill Bottle Microphone
Rating: 5
Filesize: 292.38 kB
Downloads: 2139
Comments: 4
Ratings: 1
Date added: 2013/12/04 00:38:11
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Sensor Tutorial
Rating: 5
Filesize: 64.6 kB
Downloads: 788
Comments: 5
Ratings: 1
Date added: 2015/04/05 07:16:31
Made with: Algodoo v2.1.0
Rating: rated 5
download
Responses to this scene
show list
Title: The sensor sample
Rating: 6
Filesize: 29.76 kB
Downloads: 631
Comments: 5
Ratings: 3
Date added: 2010/06/04 17:26:27
Made with: Phun
Rating: rated 6
download
did you see k-probe before?
To: Kilinich

I had not used 'k-probe', though I know.
Because I want to make the sensor with no 'scene.my.*'.
And because this is my exercise.:)
what's the point of sensor without 'scene.my.*' ;)
To: Kilinich

My sensor box is ...

- Easy to use.
put it on an object, that's all.
No Thyme programming is needed.
so anybody can use soon.

- Easy to duplicate.
you may use two or more sensors in same scene.

- Easy to customize.
If you are Thyme programmer, adding some function is not so difficult.
To get latest values from sensor, read textureMatrix of its box.
(hit the box with an object, and read e.other.textureMatrix in its onCollide)

last updated time = controllerAcc
e.pos = textureMatrix[ 0, 1 ] m
e.normal = textureMatrix[ 2, 3 ]
velocity = textureMatrix[ 4, 5 ] m/s
angvel = textureMatrix( 6 ) rad/s
heading = textureMatrix( 7 ) deg
drift = textureMatrix( 8 ) deg
so I need to collide with your sensor for reading variables? are you sure it's better than scene.my... ?
btw - what is max capable rpm ?
can you calculate acceleration ?
To: Kilinich

My answer for your 1st question is YES, but also NO.
If you need 'scene.my.*', type something like the below in the box's onCollide:

(e)=>{ Scene.my.vars = textureMatrix }

It's simple.:)

I think phunlet developer should not use 'Scene.my.*' if possible.
Because ...
- A phunlet user may want to use 'Scene.my.*'
- A phunlet user may not be a Thyme programmer.
- A phunlet user may want to use many phunlets.
- A phunlet user may want to duplicate phunlets.


About RPM: MAX 60 rpm. Hmm... I'll challenge to improve it.
About acceleration: I don't know. Do you challenge?:)
rpm - up to 1500 http://www.algodoo.com/algobox/details.php?id=23868
acceleration implemented in k-probe laser edition.