You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-17 14:11:06 +00:00
Little Bits
-=-=-=-=-=- -Fixed small bugs all around -Added ability to show/hide entire sections of the spatial (3D) tree -WIP new vehicle (not ready yet) based on Bullet
This commit is contained in:
@@ -47,6 +47,10 @@ void CollisionObject2D::_notification(int p_what) {
|
||||
|
||||
case NOTIFICATION_ENTER_SCENE: {
|
||||
|
||||
if (area)
|
||||
Physics2DServer::get_singleton()->area_set_transform(rid,get_global_transform());
|
||||
else
|
||||
Physics2DServer::get_singleton()->body_set_state(rid,Physics2DServer::BODY_STATE_TRANSFORM,get_global_transform());
|
||||
|
||||
RID space = get_world_2d()->get_space();
|
||||
if (area) {
|
||||
|
||||
@@ -129,6 +129,9 @@ void TouchScreenButton::_input(const InputEvent& p_event) {
|
||||
if (!get_scene())
|
||||
return;
|
||||
|
||||
if (p_event.device != 0)
|
||||
return;
|
||||
|
||||
if (passby_press) {
|
||||
|
||||
if (p_event.type==InputEvent::SCREEN_TOUCH && !p_event.screen_touch.pressed && finger_pressed==p_event.screen_touch.index) {
|
||||
|
||||
Reference in New Issue
Block a user