Detect a geom in pos
2 posts • Page 1 of 1
Detect a geom in pos
I've found easy way to detect is there geom in pos:
It returns geomID or 0 if none.
- Code: Select all
scene.my.geomIdByPos = (gpos) => {
probe := scene.addPen({pos:=gpos});
id := (readable(probe)).geom;
scene.removeentity(probe); id
}
It returns geomID or 0 if none.
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
-

Kilinich - [Best bug reporter 2010]
- Posts: 2098
- Joined: Mon Aug 31, 2009 8:27 pm
- Location: South Russia
2 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 6 guests




