Hello Yosenabe_funy, This question is about Algodoo. I want to make a script for an object that collides with rectangles and polygons and causes them to change size by a percentage of their original size when they are struck. I've watched your videos with rectangles but I do not see that kind of script. For rectangles, I assume it involves [x,y] but for polygons, it may need an array. The idea is for it to be like this: e.other.size = e.other.size * 0.9 So that if it collides enough times it will become too small to notice. If the script for polygons is very complicated then a script for only rectangles will be helpful. This might be a good thing to make a video about because I can't find this information anywhere. Thanks for any help. Yosenabe_funy さん、こんにちは。 Algodoo についての質問です。 長方形や多角形と衝突し、衝突したときに元のサイズのパーセンテージでサイズを変更させるオブジェクトのスクリプトを作成したいと考えています。 四角形を使用したビデオを見ましたが、そのようなスクリプトは見当たりません。 長方形の場合は [x,y] が必要だと思いますが、多角形の場合は配列が必要になる場合があります。 アイデアは次のようになります: e.other.size = e.other.size * 0.9 何度も衝突すると、小さくなりすぎて気付かなくなるほどです。 多角形のスクリプトが非常に複雑な場合は、長方形のみのスクリプトが役立ちます。 この情報はどこにも見つからないので、ビデオを作成すると良いかもしれません。 助けていただきありがとうございます。
Hello Yosenabe_funy,
This question is about Algodoo.
I want to make a script for an object that collides with rectangles and polygons and causes them to change size by a percentage of their original size when they are struck.
I've watched your videos with rectangles but I do not see that kind of script.
For rectangles, I assume it involves [x,y] but for polygons, it may need an array.
The idea is for it to be like this: e.other.size = e.other.size * 0.9
So that if it collides enough times it will become too small to notice.
If the script for polygons is very complicated then a script for only rectangles will be helpful.
This might be a good thing to make a video about because I can't find this information anywhere.
Thanks for any help.
Yosenabe_funy さん、こんにちは。
Algodoo についての質問です。
長方形や多角形と衝突し、衝突したときに元のサイズのパーセンテージでサイズを変更させるオブジェクトのスクリプトを作成したいと考えています。
四角形を使用したビデオを見ましたが、そのようなスクリプトは見当たりません。
長方形の場合は [x,y] が必要だと思いますが、多角形の場合は配列が必要になる場合があります。
アイデアは次のようになります: e.other.size = e.other.size * 0.9
何度も衝突すると、小さくなりすぎて気付かなくなるほどです。
多角形のスクリプトが非常に複雑な場合は、長方形のみのスクリプトが役立ちます。
この情報はどこにも見つからないので、ビデオを作成すると良いかもしれません。
助けていただきありがとうございます。
ruclips.net/video/BEeKcj-yHtA/видео.html
I made this.
@@yosenabe_funy Yes! That is what I meant. It is very helpful. Thank you!
はい! それが私が言いたかったことです。 とても助かります。 ありがとう!