Grasshopper Docs

Community documentation for Grasshopper add-ons & plugins

Geometries
Simulate
Utility

Box2D Simulation Solver

Inputs

NameIDDescriptionType
Box2DBodiesBodiesBox2D Rigid BodiesGeneric
WorldBoundryBoundryDefine the boundry of the world .Simulation will still work if bodies reach the end of the world, but it will be slower.Rectangle
GravityGravityDefine the gravity vector.Vector
VelocityIterationsVelIterIn the velocity phase the solver computes the impulses necessary for the bodies to move correctly. Using fewer iterations increases performance but accuracy suffers.Integer
PositionIterationsPosIterIn the position phase the solver adjusts the positions of the bodies to reduce overlap and joint detachment. Using fewer iterations increases performance but accuracy suffers.Integer
TimestepTimestepBy using a larger time step you can improve performance in low frame rate scenarios.But generally you should use a time step no larger than 1/30 seconds.A time step of 1/60 seconds will usually deliver a high quality simulation.Number
FillColorColorFill ColorColour
GrabGrabThis lets you drag dynamic bodies in Rhino viewports. When on, drag dynamic shape in the Rhino viewport with LMBBoolean
ResetResetResetBoolean
RunRunRunBoolean

Site design © Robin Rodricks.   Box2D and associated data © 2020 Mahdiyar Esmail Beigi.  
Rhinoceros and Grasshopper are registered trademarks of Robert McNeel & Associates.  Hosted by GitHub

Report an Issue  |  Terms of Service