Mirroring a geometry
5 posts • Page 1 of 1
Mirroring a geometry
Hello! I haven't messed with Algodoo for a while, so I was wondering if there is a thyme command that will mirror a geometry?
eg. onCollide = (e)=>{mirror} or something like that.
eg. onCollide = (e)=>{mirror} or something like that.
.
-
icrls984 - Posts: 80
- Joined: Thu Jun 13, 2013 6:33 am
Re: Mirroring a geometry
I don't know, but:
Why would you wanted that?
- Code: Select all
e.this.angle = e.this.angle + math.pi
Why would you wanted that?
When your computer has multiple cores but uses programs that only supports single core....
That's Algodoo!
That's Algodoo!
-
Anbang11 - Posts: 72
- Joined: Sat May 09, 2015 7:46 am
- Location: Earth.
Re: Mirroring a geometry
nope. only re-creation with script
Dream of Algodoo as game development engine...
-
Kilinich - [Best bug reporter 2010]
- Posts: 2098
- Joined: Mon Aug 31, 2009 8:27 pm
- Location: South Russia
Re: Mirroring a geometry
I know how to rotate an object, its not what I wanted, thanks anyway...
So to mirror an object I would have to completely re-create (spawn) it? I guess it isn't too hard, but I will have to make my script much longer I guess
So to mirror an object I would have to completely re-create (spawn) it? I guess it isn't too hard, but I will have to make my script much longer I guess
.
-
icrls984 - Posts: 80
- Joined: Thu Jun 13, 2013 6:33 am
Re: Mirroring a geometry
I guess all you could do is inverting the points(as you are probably using polygons) of the shape into their negative counterparth in relation to the center. How exactly this works is out of my range of wisdom.
- FRA32
- Posts: 229
- Joined: Wed Dec 03, 2014 9:51 pm
5 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 17 guests