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: 285

Views: 1069

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: K-NGne thruster phunlet
Rating: 7
Filesize: 15.31 kB
Downloads: 692
Comments: 11
Ratings: 6
Date added: 2009/11/04 12:38:43
Made with: Algodoo Phunlet
Rating: rated 7
download
Title: TextureMatrix Tool
Rating: 6.1111
Filesize: 397.6 kB
Downloads: 125
Comments: 4
Ratings: 3
Date added: 2019/06/25 10:05:16
Made with: Algodoo v2.1.0
Rating: rated 6.1
download
Title: TextureMatrix is on Evolution!
Rating: 5.5
Filesize: 99.16 kB
Downloads: 1029
Comments: 2
Ratings: 2
Date added: 2014/01/10 15:42:46
Made with: Algodoo before v1.8.5
Rating: rated 5.5
download
Title: Animated Explosion Texture
Rating: 6.9231
Filesize: 172.78 kB
Downloads: 1235
Comments: 14
Ratings: 7
Date added: 2011/02/17 09:54:33
Made with: Phun
Rating: rated 6.9
download
Title: [Animation] "Majestic"
Rating: 5
Filesize: 0.64 MB
Downloads: 245
Comments: 3
Ratings: 1
Date added: 2015/07/24 16:19:56
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Artificial Horizon Demo
Rating: 6.4546
Filesize: 142.81 kB
Downloads: 4403
Comments: 6
Ratings: 5
Date added: 2012/03/09 13:47:41
Made with: Algodoo v2.0.2 Edu
Rating: rated 6.5
download
...english?