|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttoxi.geom.Spline3D
toxi.physics.ParticlePath
public class ParticlePath
This class is used as a builder to dynamically construct a
ParticleString
following a given spline path, sampled at a fixed
frequency/step distance. This functionality is needed especially when working
with various obstacles/mechanic constraints which the string should flow/wrap
around.
Field Summary |
---|
Fields inherited from class toxi.geom.Spline3D |
---|
bernstein, bi, coeffA, DEFAULT_RES, DEFAULT_TIGHTNESS, delta, pointList, vertices |
Constructor Summary | |
---|---|
ParticlePath()
|
|
ParticlePath(java.util.List<toxi.geom.Vec3D> points)
|
Method Summary | |
---|---|
java.util.List<VerletParticle> |
createParticles(VerletPhysics physics,
int subDiv,
float step,
float mass)
Creates particles along the spline at the fixed interval given. |
Methods inherited from class toxi.geom.Spline3D |
---|
add, add, computeVertices, getDecimatedVertices, getDecimatedVertices, getEstimatedArcLength, getNumPoints, getPointList, getTightness, setPointList, setTightness, updateCoefficients |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ParticlePath()
public ParticlePath(java.util.List<toxi.geom.Vec3D> points)
Method Detail |
---|
public java.util.List<VerletParticle> createParticles(VerletPhysics physics, int subDiv, float step, float mass)
physics
- physics instancesubDiv
- number spline segment subdivisionsstep
- desired rest length between particlesmass
- desired particle mass
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |