POV-Ray : Newsgroups : povray.advanced-users : MegaPov Mech Sim help request : Re: MegaPov Mech Sim help request Server Time
28 Jul 2024 22:31:17 EDT (-0400)
  Re: MegaPov Mech Sim help request  
From: Christoph Hormann
Date: 6 Oct 2003 11:32:02
Message: <4ae851-kj5.ln1@triton.schunter.etc.tu-bs.de>
Tim McMurdo wrote:
>>My request is for an example code showing the location of a specific mass
>>being assigned to a variable.
> 
> 
> Never mind...I poked around inside of mechsimn.inc and found an example.
> 
> Here is and example.....
> 
> sphere {
>   mechsim:mass(39):position,
>   mechsim:mass(39):radius
>   pigment{Blue}
> }
> 
> 

Note that you usually don't need to litarally give the 39 but you can 
store 'mechsim:mass_count' in a variable in the 'topology' block and use 
this index to access the same mass later.  The sample scenes coming with 
MegaPOV also include examples for this.

Christoph

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


Post a reply to this message

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