How? element under element. Like NEUT, PHOT

  • Benassi
    8th May 2011 Member 0 Permalink
    Hi I'm a little bit stuck at the moment. Ive made an element the requires it to create an element underneath it. NEUT and PHOT allow this but Ive searched high and low through the code with no success. I know its not in the elements .c file. As Ive made this work by replacing the code in the phot.c with my own and it worked perfectly. so it must be elsewhere? Ive also seen a section in powder.c that looked like it might do this but it failed to work, unless i have to add to a number of sections, i do not know? If you can point me in the right direction it would be great.
  • vanquish349
    8th May 2011 Member 0 Permalink
    @Benassi (View Post)
    do you mean make it stackable
  • Benassi
    8th May 2011 Member 0 Permalink
    I guess in a way, for example if i create a pixel of PHOT and then create a pixel of DMND at the same position, when i unpause it the PHOT moves away and the DMND remains.
  • vanquish349
    8th May 2011 Member 0 Permalink
    yeah it is more commonerly known as stackable
  • Benassi
    8th May 2011 Member 0 Permalink
    Making the element stackable didnt help =(, ill keep trying.
  • KIRILL
    8th May 2011 Member 0 Permalink
    I not understand. You mean that elements consist of pHoton and Neutron o_0
    If you want to know: quarks gathering particles(pRotons, neutrons), that make an atoms, which make molecules then gathering matter.
    Also pHoton smaller that Electron)))

  • Simon
    8th May 2011 Administrator 0 Permalink
    It's in powder.h, there's a property called TYPE_ENERGY, use it instead of TYPE_POWDER or whatever.