POV-Ray : Newsgroups : povray.unofficial.patches : Mechsim collisions: with what? : Re: Mechsim collisions: with what? Server Time
12 Jun 2024 20:22:00 EDT (-0400)
  Re: Mechsim collisions: with what?  
From: Christoph Hormann
Date: 19 Oct 2004 04:35:02
Message: <cl2jhe$280$1@chho.imagico.de>
Greg M. Johnson wrote:
> What classes of objects may interact with (serve as the environment for) a
> collision which can happen with mechsim?

The docs clearly tell you that you can use either a function or an 
object for this purpose:

http://megapov.inetart.net/manual-1.1/global_settings.html#mechsim_env_definition

So either:

global_settings {
   ...
   mechsim {
     ...
     environment {
       function { ... }
     }
   }
}

or

global_settings {
   ...
   mechsim {
     ...
     environment {
       object { ... }
     }
   }
}

Note that both types of environment are handled internally in different 
ways.  Some collision situation can only be handled quite poorly with 
object based environments while function based environments always work 
perfectly when the function represents linear distance from the 
environment surface.

Christoph

-- 
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 23 Sep. 2004 _____./\/^>_*_<^\/\.______


Post a reply to this message

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