Browse Search Popular Register Upload Rules User list Login:
Search:
surfaces property not working correctly

Image:
screenshot of the scene

Author: AverageCoder

Group: Default

Filesize: 15.64 kB

Date added: 2023-07-04

Rating: 5

Downloads: 1221

Views: 414

Comments: 4

Ratings: 1

Times favored: 0

Made with: Algodoo v2.1.3

Tags:

Scene tag

So I am working on polygons that can dent on collison, the way this is supposed work is that
on the collide event, find which vertice is closest to the collision and then deform it with the ones around it, but since the surfaces are acting funny that wont work as the surfaces are stuck at [[[0, 0], [1, 0], [1, 1], [0, 1]]] and wont change while the actual geometry is changing
please help
Please log in to rate this scene
edit
Similar scenes
Title: Polygon "Distortion"
Rating: 5
Filesize: 9.66 kB
Downloads: 686
Comments: 6
Ratings: 1
Date added: 2014/02/17 16:18:53
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Steam engine Prototype
Rating: 7.0834
Filesize: 310.14 kB
Downloads: 2458
Comments: 6
Ratings: 6
Date added: 2011/03/29 19:55:30
Made with: Algodoo before v1.8.5
Rating: rated 7.1
download
Title: A new kind of pump working on "adhesion"
Rating: 5
Filesize: 65.53 kB
Downloads: 1023
Comments: 2
Ratings: 1
Date added: 2024/09/18 18:43:52
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Help needed, bug fix
Rating: 5
Filesize: 50.98 kB
Downloads: 261
Comments: 0
Ratings: 1
Date added: 2010/10/16 13:46:56
Made with: Algodoo before v1.8.5
Rating: rated 5
download
Title: CaterpillarWalkCar
Rating: 7.6875
Filesize: 146.76 kB
Downloads: 667
Comments: 4
Ratings: 16
Date added: 2008/09/07 13:57:55
Made with: Phun
Rating: rated 7.7
download
Title: Uh lasers broken
Rating: 5
Filesize: 5.6 kB
Downloads: 274
Comments: 1
Ratings: 1
Date added: 2024/09/25 04:55:46
Made with: Algodoo v2.2.0b
Rating: rated 5
download
Take a look at a scene that I recently posted: Melting Polygons

It shows how to make polygons appear to change shape over time, but in actuality what's happening is the polygons are being redrawn very rapidly over and over again. So, what you see is similar to an animation. As far as I know, this is the only way you can make a polygon appear to change shape. It must be modified and redrawn (or re-spawned).
I've posted a few other polygon generator scenes over the years that might interest you. Search on the word "polygon" with my username to find them. You are welcome to use any of my code. I stole..... um, I mean borrowed most of it from other talented users.
Last edited at 2023/07/05 00:43:55 by Xray
I looked at your code and I only needed to use (readable(owner)).surfaces instead of just surfaces. Thanks!