Browse Search Popular Register Upload Rules User list Login:
Search:
textureMatrix

Image:
screenshot of the scene

Author: tatt61880

Group: Japanese

Filesize: 15.78 kB

Date added: 2010-05-22

Rating: 5

Downloads: 276

Views: 1038

Comments: 2

Ratings: 1

Times favored: 1

Made with: Phun

Tags:

Scene tag

このシーンでは、密度などの値を変更したときに、画像の表示が変わるようになっています。

密度(density) : X方向の倍率 (デフォルトは1.0)
摩擦(friction) : Y方向の倍率 (デフォルトは1.0)
反発の度合(restitution) : 画像の中心のX座標 (デフォルトは0.5)
引力(attraction) : 画像の中心のY座標 (デフォルトは0.5)
コントローラーの加速度(controller acc.) : 画像の角度 (デフォルトは0)


参考:
onCollide := (e)=>{
Scene.my.scaleX = e.this.density;
Scene.my.scaleY = e.this.friction;
Scene.my.centerX = e.this.restitution;
Scene.my.centerY = e.this.attraction;
Scene.my.angle = e.this.controllerAcc
};

textureMatrix := {[math.cos(Scene.my.angle) / Scene.my.scaleX, math.sin(Scene.my.angle) / Scene.my.scaleX, Scene.my.centerX,
- math.sin(Scene.my.angle) / Scene.my.scaleY, math.cos(Scene.my.angle) / Scene.my.scaleY, Scene.my.centerY,
0.0, 0.0, 1.0]};

textureMatrixの内容は、
[cosθ / 横倍率 , sinθ / 横倍率, 画像中心のX座標,
-sinθ / 縦倍率 , cosθ / 縦倍率, 画像中心のY座標,
0, 0, 1]

(θは画像の角度。単位:ラジアン)
の意味です。
Last edited at 2010/05/23 02:16:37 by tatt61880
Please log in to rate this scene
edit
Similar scenes
Title: textureMatrix Demo II
Rating: 5
Filesize: 0.82 MB
Downloads: 88
Comments: 0
Ratings: 1
Date added: 2017/03/19 21:32:08
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: TextureMatrix Tool
Rating: 6.1111
Filesize: 397.6 kB
Downloads: 105
Comments: 4
Ratings: 3
Date added: 2019/06/25 10:05:16
Made with: Algodoo v2.1.0
Rating: rated 6.1
download
Title: simple 3D effect.
Rating: 5.25
Filesize: 60.72 kB
Downloads: 286
Comments: 0
Ratings: 2
Date added: 2013/02/14 01:39:50
Made with: Algodoo v2.0.2
Rating: rated 5.3
download
Title: TextureMatrix is on Evolution! 2
Rating: 6
Filesize: 58.14 kB
Downloads: 1141
Comments: 3
Ratings: 3
Date added: 2014/01/12 15:40:02
Made with: Algodoo v2.1.0
Rating: rated 6
download
Title: Color Sensor
Rating: 5
Filesize: 21.18 kB
Downloads: 317
Comments: 2
Ratings: 1
Date added: 2010/11/09 19:10:26
Made with: Algodoo demo Phunlet
Rating: rated 5
download
Title: Earth (textureMatrix demo)
Rating: 9.0038
Filesize: 1.44 MB
Downloads: 11650
Comments: 21
Ratings: 41
Date added: 2009/04/03 17:09:48
Made with: Phun
Rating: rated 9
download
...english?