obi-advanced Rope Simulation Rope Plugin Learning document
Plugin sharing:
Links: Https://pan.baidu.com/s/1eTwZOrg
Password: P8wa
Plugin Import error generated, comment The error code line out
First, the Rope Solution Class script Control
1.Max particles: maximum number of particles
2.Max Diffuse particles:// Maximum propagation default number of particles
3.Simulate when Invisible: (if the rope is outside the camera's field of view) still simulates the rope effect
4.Collider Group: collision sets involved in physical collisions of ropes
5. Parameter settings:
1) Mode: Model type (3D,2D)
2) Interpolation: There is no difference (no, there is)
3) Gravity: Gravity (set XYZ Three-axis upward gravity value)
4) Damping: Damping coefficient (0-1)// control rope Softness
5) advection radius: Flat-Flow radius
6) Sleep Threshold: The sleeping threshold // Control rope flexibility, the movement between the rear and the front section of the connection amplitude intensity, the smaller the value the more flexible the rope, the greater the value of the rope harder
6.Distance Constraint Parameters: Distance constraint parameter
1) enabled: whether to enable
2) Evaluation order: Execution instruction (sequential: Sequential Parallel: parallel)
3) Iterations: Iteration algebra
4) SOR Factor: Record voucher Factor index // control rope Execution speed for constraints
7.Bending Constraint Parameters: Bend constraint parameters (sub-list above)
8.Particle collision Constraint Parameters: Particle collision constraint parameter (IBID.)
9.Collision Constraint Parameters: Collision constraint parameter (IBID.)
10.Skin Constraint Parameters: Skin binding parameters (Ibid.)
11.Volume Constraint Parameters: Volume constraint parameters (IBID.)
12.Tether Constraint Parameters: Tether constraint parameter (IBID.)
13.Pin Constraint Parameters: Pin constraint parameter (IBID.)
14.Density Constraint Parameters: Density constraint parameter (IBID.)
15.Chain Constraint Parameters: Chain constraint parameters (IBID.)
Second, the collision body set
3D or 2D Collision Detection based on project
Add a collision body to a game object in the scene that has a physical effect between the ropes and drag it into the set above for collision detection recognition.
Iii. script Management for rope formation (attached to the rope)
corresponds to all data settings in the Rope Solver script
- OBJ rope/thickness: Thickness // control of the weight of the rope
- OBJ rope/cap Sections: Cap part // control the smoothness of the end of the rope
Iv. Control The starting position of the rope
by clicking the Add Point / Delete point, the line of the scene in the form of the formation of the point of the custom placed, after the completion of the script on the rope to find the corresponding button to create a new rope.
V. reserved control positions at both ends of the rope
For example, two game objects, respectively, control the ends of the rope for the user to operate.
Coordinate and rotate axis locking (to prevent jitter) of both ends with steel body as required
obi-advanced Rope Simulation plug-in resolution for achieving rope physical effects in Unity