User Tools

Site Tools


prpl:createbond

<- PRPL reference <- Particles

CreateBond

ArgumentsResultNotation
pid1 pid2 show? distance bid [ int int bool float - int ]

Description

Creates a bond between 2 particles with the specified distance in pixels. If show is set to 0, the bond will be invisible. Returns the created Bond ID.

Examples

	f1 = GetFloatFromStack(); //Bond distance 
	i3 = GetIntFromStack(); //Show 
	i2 = GetIntFromStack(); //Particle 2 UID 
	i1 = GetIntFromStack(); //Particle 1 UID 
			stack.Push(new Data(b.UID)); 
			stack.Push(new Data(-1)); 
 
prpl/createbond.txt · Last modified: 2018/06/17 14:45 by kajacx