渲染出风场域
PhysicalWind wind;
int init ()
{
engine.physics.setGravity(vec3(0.0f,0.0f,-9.8f * 2.0f));
engine.physics.setFrozenLinearVelocity(0.1f);
engine.physics.setFrozenAngularVelocity(0.1f);
wind = addToEditor(new PhysicalWind(vec3(100.0f)));
wind.setLinearDamping(1.0f);
wind.setAngularDamping(1.0f);
}
int update()
{
engine.console.run("show_visualizer 1");
wind.renderVisualizer()
}