glue 2 Objects together oncollide?
4 posts • Page 1 of 1
glue 2 Objects together oncollide?
is it possible to glue 2 Objects together oncollide??
i tried oncollide = (e)=>{
e.other.body = (this.body); and the other way around
e.other.glued = (true);
glued = (true)
}
i tried oncollide = (e)=>{
e.other.body = (this.body); and the other way around
e.other.glued = (true);
glued = (true)
}
- LukasHauden
- Posts: 2
- Joined: Fri Oct 27, 2017 5:03 pm
Re: glue 2 Objects together oncollide?
still no one?
- LukasHauden
- Posts: 2
- Joined: Fri Oct 27, 2017 5:03 pm
Re: glue 2 Objects together oncollide?
There is a bug in Algodoo 2.1 - you can't connect or glue anything to existing geom even if you set correct geomID/body.
So the only way is to re-create objects, it works only for simple geoms and nothing connected.
As workaround, you could set large value of adhesion in script.
So the only way is to re-create objects, it works only for simple geoms and nothing connected.
As workaround, you could set large value of adhesion in 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: glue 2 Objects together oncollide?
There are some rare cases where fixates is working - like in old Robin scene, but Undo mess it up.
Aim with mouse.
Enter - shoot.
A - switch low/high angle.
Aim with mouse.
Enter - shoot.
A - switch low/high angle.
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
4 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 4 guests