Hi dima,<br><br>Well, the good news is that bullet does already have mutli-ray casting.  It's just a matter of exposing the calls.  It also has callback functions for the raycast (pre and post) but that might be more tricky exposing.<br>
<br>I'm not sure about the division between BGE and modeling as far as exposure goes.  I'll have to ask around.<br><br>kesten<br><br><div class="gmail_quote">On Mon, Dec 19, 2011 at 3:24 PM, Dima Glibitsky <span dir="ltr"><<a href="mailto:dima.glib@gmail.com">dima.glib@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Kesten,<br>
thanks for the initiative and very sorry for the late answer 0:-)<br>
<br>
I am planning to use raycasting to scanfill meshes / to determine how<br>
volumes defined by mesh surface are related to each other (I want to<br>
prototype some geometric algorithms). Stepping forward is undesirable,<br>
since it can lead to wrong results in specific cases (e.g. when<br>
overlapping faces lie in the same plane -- proper method will return<br>
two or more intersections, but stepping will return only one).<br>
<br>
I have taken a look at Blender's source. When not in GameEngine mode,<br>
Blender uses its own BVH structure to do raycasting and nearest point<br>
determination. It would be nice to have same set of features available<br>
both to modeling scripts and game engine scripts, though I'm currently<br>
working only with the modeling stage.<br>
<br>
Bullet has a good range of proximity/intersection queries (e.g.<br>
contact tests, sweep tests, etc.), so raycasting a cylinder of some<br>
radius should be already possible in GameEngine. I had no experience<br>
with BGE, however, so I'm just guessing =)<br>
BTW, is it possible to make Bullet methods available to non-BGE<br>
scripts (e.g. as a collision detection library)?<br>
<br>
Earlier you suggested to write a request at<br>
<a href="http://wiki.blender.org/index.php/Dev:Ref/Requests" target="_blank">http://wiki.blender.org/index.php/Dev:Ref/Requests</a>. That can be a good<br>
starting point, but I'm somewhat unsure under which category to put it<br>
-- the topic comprises GameEngine as well as non-GE, at both C level<br>
and Python API level.<br>
<br>
As for writing test scripts, I can try my hand at this after December<br>
(though I can't predict how much time it will take U_U).<br>
<br>
Hope I'll be able to help you somehow ^_^ Happy Christmas/New Year!<br>
<span class="HOEnZb"><font color="#888888"><br>
Dima<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
Bf-python mailing list<br>
<a href="mailto:Bf-python@blender.org">Bf-python@blender.org</a><br>
<a href="http://lists.blender.org/mailman/listinfo/bf-python" target="_blank">http://lists.blender.org/mailman/listinfo/bf-python</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><br>Kesten Broughton<br>President and Technology Director, <br>Solar Mobile Trailers<br><a href="http://www.sunfarmkitchens.ca" target="_blank">kesten@solarmobiletrailers.com<br>
www.sunfarmkitchens.ca</a><br>512 701 4209<br><div style="display:inline"></div><br>