This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
prpl:docs:setbondmovementparams [2015/03/04 15:57] – external edit 127.0.0.1 | prpl:docs:setbondmovementparams [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | <- [[pf: | ||
- | ===== SetBondMovementParams | ||
- | |||
- | ^Arguments^Result^Notation^ | ||
- | |Bond UID, type, min distance, max distance, period, phase | None | '' | ||
- | |||
- | === Description === | ||
- | Determines the behaviour of a bond. The possible values for " | ||
- | ^Type^Description^ | ||
- | |0|Rigid. Always maintains a fixed distance between the particles. The min and max arguments seem to be ignored.| | ||
- | |1|Sinusoidal. The distance oscillates between min and max.| | ||
- | |2|Toggle. The distance switches between min and max, causing the particles to move instantly.| | ||
- | |||
- | The argument " | ||
- | |||
- | === How to use === | ||
- | |||
- | | Standard CRPL | bond type d1 d2 period phase SetBondMovementParams | | ||
- | | Warp notation | SetBondMovementParams(bond type d1 d2 period) | | ||
- | |||
- | === Examples === | ||
- | Create two particles whose separation oscillate between 20 and 40. The period is 30 frames = 1 second. | ||
- | < | ||
- | CreateParticle(CurrentPixelCoords 20 add 0 20 1 1) ->p1 | ||
- | CreateParticle(CurrentPixelCoords 20 sub 0 20 1 1) ->p2 | ||
- | CreateBond(< | ||
- | SetBondMovementParams(< | ||
- | </ | ||
- | |||