POV-Ray : Newsgroups : povray.unofficial.patches : Mechsim messing things up : Mechsim messing things up Server Time: 23 Mar 2019 06:26:21 GMT
  Mechsim messing things up  
From: macgorilla
Date: 20 Apr 2012 10:25:00
I am trying to build a simulation with mechsim (on MegaPOV) and things seem to
be totally wrong. So I stripped lots of code trying to pin down the problem and
I ended with this:

global_settings {
 mechsim {
  gravity -9.81*y
  method 1
  step_count 10000
  time_step 1/24/10000
  topology {
   MechSim_Generate_Block(
    <0,0,0>,.02,.03,10e3,10e1,false,<-.06,.02,-.98>,<.06,.14,.98>,<2,2,2>,
    transform {rotate x*80 translate y*1.5*3},4
   )
  }
 }
}

(some values are random and just due to experimentation)

In this form, the box generated by MechSim_Generate_Block is deformed into a
trapezoid (!)
If I change <-.06,.02,-.98>,<.06,.14,.98> to <-.1,-.1,1>,<.1,.1,1> everything
works fine.
Also removing gravity everything works fine.
I can't get my head around it. It seems like a serious bug in the mechsim patch
but it should have been noticed before, right? Every help is appreciated!


Post a reply to this message

Copyright 2003-2008 Persistence of Vision Raytracer Pty. Ltd.