musikai
(musikai)
September 17, 2022, 7:40pm
4
Wind direction is z-axis of wind object.
Gyro can sail. (wind force acts on gyro orientation)
(edit: instead of my ugly hack in version3 to compensate the loose hinge now this makes spring constraints stiffer:
bge.constraints.setNumTimeSubSteps(5)
Lot to learn from here:
If it’s too floppy and you specify the angle with no motion, then the solution is to increase the physics substeps. This can be done either from the world panel or with the python:
import bge
bge.constraints.setNumTimeSubSteps(5)
I generally find five is enough for any 1-2 joint structures. The highest I’ve done is 15 for a 30-40 joint chain.
If you want more control over a contraint you have to create it yourself:
id1 = obj1.getPhysicsId()
id2 = obj2.getPhysicsId()
'''bge.…
Gyro4.blend (1.3 MB)
2 Likes