I am certain that its just OpenSim issues, ODE is more than capable of doing this, and Aurora Project has demonstrated that some of these fixes are possible I believe I recall seeing some Youtube videos showing roller coasters and such, you might want to talk to Ubit on IRC if you can track him down, he can probably point you in the direction and help you get started on fixing some of these things.<br>
<br><div class="gmail_quote">On Wed, Jun 6, 2012 at 10:10 AM, James Hughes <span dir="ltr"><<a href="mailto:jamesh@bluewallgroup.com" target="_blank">jamesh@bluewallgroup.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I have been experimenting with trains in SL and would like to make a physical one that works in OpenSim. Hopefully these cases aren't some limitation of the physics engines and can have a proper fix.<br>
<br>
-BlueWall<div class="im"><br>
<br>
On 06/05/2012 07:46 PM, Mike Higgins wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
I was talking to Justin Clark-Casey at the OpenSim developers meeting<br>
this morning, and he suggested that the mailing lists would be the<br>
easiest way to have a conversation about vehicle physics on OpenSim.<br>
Justin you there? Is this where you meant? Anyone else want to talk<br>
about vehicle scripting in OpenSim?<br>
<br>
I am in the process of testing the OpenSim vehicle scripting calls and<br>
trying to find out what works and what can be worked around. I am<br>
submitting mantis reports when I think I see a true bug, issue numbers<br></div>
0006039 <<a href="http://opensimulator.org/mantis/view.php?id=6039" target="_blank">http://opensimulator.org/<u></u>mantis/view.php?id=6039</a>> and 0006040<br>
<<a href="http://opensimulator.org/mantis/view.php?id=6040" target="_blank">http://opensimulator.org/<u></u>mantis/view.php?id=6040</a>> for starters. Instead<div class="im"><br>
of submitting 1000 line vehicle scripts that do not work, I am writing<br>
small 10-line scripts that demonstrate a particular problem.<br>
<br></div>
Issue 0006040 <<a href="http://opensimulator.org/mantis/view.php?id=6040" target="_blank">http://opensimulator.org/<u></u>mantis/view.php?id=6040</a>> is<div><div class="h5"><br>
particularly interesting because if my hypothesis is correct, the linear<br>
motor direction is being actively projected onto the global XY plane. I<br>
cannot get an airplane to glide up, or a balloon to rise using the<br>
linear motor. (Hover height works with balloons, but not the linear<br>
motor even with hover height disabled). The interesting thing about this<br>
is that my hypothesis suggests that there is extra code doing this<br>
projection onto the XY plane. I checked the vehicle flags and there<br>
isn't one that should force this extra projection into the calculations.<br>
Vehicle type balloon is supposed to have all the flags removed, but just<br>
to be sure I used the remove call to clear them all. The linear motor<br>
still cannot go up. Can someone familiar with the code look at the<br>
linear motor and tell me why this is happening and if there is a way to<br>
disable it? (I tried turning flags like VEHICLE_FLAG_NO_DEFLECTION_UP on<br>
to see if this flag was inverted, and if it applied to the motor instead<br>
of deflection, but no luck).<br>
<br>
The fun thing is that I can write one kind of vehicle that works well --<br>
assuming this bug is there. I built a vehicle that has the linear motor<br>
set to <0,0,20>, pointing straight up. When the vehicle is perfectly<br>
horizontal, the projection of this motor onto XY is <0,0,0> and the<br>
vehicle does nothing. But then when you tilt the vehicle in any<br>
direction, the projection of the linear motor on XY becomes non-zero and<br>
causes it to start moving in the direction of tilt. This feels a lot<br>
like an RL helicopter, so I used the control keys to pitch down/up to<br>
move forward/backwards, added yaw left and right, and used page-up/down<br>
to increase/decrease the hover height. I put it in a hacked together<br>
helicopter build and it is a lot of fun!<br>
<br>
I'm looking for work-arounds for the current vehicle routine behaviors.<br>
One work-around for an airplane is to turn on hover height, check the<br>
airplane speed and pitch once a second in timer(), calculate what<br>
altitude the plane should get to in the next second, and set hover<br>
height to that altitude. The things we do to get stuff working!<br>
<br>
<br>
<br>
<br>
<br></div></div><div class="im">
______________________________<u></u>_________________<br>
Opensim-dev mailing list<br>
<a href="mailto:Opensim-dev@lists.berlios.de" target="_blank">Opensim-dev@lists.berlios.de</a><br>
<a href="https://lists.berlios.de/mailman/listinfo/opensim-dev" target="_blank">https://lists.berlios.de/<u></u>mailman/listinfo/opensim-dev</a><br>
</div></blockquote><div class="HOEnZb"><div class="h5">
<br>
______________________________<u></u>_________________<br>
Opensim-dev mailing list<br>
<a href="mailto:Opensim-dev@lists.berlios.de" target="_blank">Opensim-dev@lists.berlios.de</a><br>
<a href="https://lists.berlios.de/mailman/listinfo/opensim-dev" target="_blank">https://lists.berlios.de/<u></u>mailman/listinfo/opensim-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Michael Emory Cerquoni - Nebadon Izumi @ <a href="http://osgrid.org">http://osgrid.org</a><br>