You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
-improved physics ccd
-html5 exporter works again -disable repeat on image loader by default -can change shape offset en tileset, texture offset was broken
This commit is contained in:
@@ -90,7 +90,7 @@ protected:
|
||||
PhysicsServer * ps = PhysicsServer::get_singleton();
|
||||
|
||||
RID mesh_instance = vs->instance_create2(type_mesh_map[p_shape],scenario);
|
||||
RID body = ps->body_create(p_body,!p_active_default);
|
||||
RID body = ps->body_create(p_body,!p_active_default);
|
||||
ps->body_set_space(body,space);
|
||||
ps->body_set_param(body,PhysicsServer::BODY_PARAM_BOUNCE,0.5);
|
||||
//todo set space
|
||||
|
||||
@@ -270,6 +270,7 @@ protected:
|
||||
RID body = ps->body_create();
|
||||
ps->body_add_shape(body,body_shape_data[p_shape].shape);
|
||||
ps->body_set_space(body,space);
|
||||
ps->body_set_continuous_collision_detection_mode(body,Physics2DServer::CCD_MODE_CAST_SHAPE);
|
||||
ps->body_set_state(body,Physics2DServer::BODY_STATE_TRANSFORM,p_xform);
|
||||
|
||||
// print_line("add body with xform: "+p_xform);
|
||||
|
||||
Reference in New Issue
Block a user