-
-
Notifications
You must be signed in to change notification settings - Fork 21.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scaled RigidBody should show a node warning in the scene tree as it's something that should not be done #7615
Comments
likely you scaled a rigidbody instead of the mesh. rigidbodies can't be
scaled
…On Mon, Jan 23, 2017 at 9:39 AM, ghur ***@***.***> wrote:
**Operating system or device - Godot version:**v2.1.2
*Issue description:*
The player model enlarges a lot of times when I run the program than in
the edit mode,anyone knows how to solve it?
I have uploaded the screencasts which reflect the problem here:
In the edit mode:
[image: cast]
<https://cloud.githubusercontent.com/assets/25295784/22201272/d97d55dc-e19d-11e6-9a3b-aa2b1dae116c.gif>
When I run the program:
[image: cast1]
<https://cloud.githubusercontent.com/assets/25295784/22201511/e67da09c-e19e-11e6-8e0c-f122fe68a540.gif>
And the tscn file here(Level1.tscn/Spatial/Player_1 in the zip file):
question_asked.zip
<https://github.com/godotengine/godot/files/723497/question_asked.zip>
*Steps to reproduce:*
just create a new project,unzip the file and open Level1.tscn
*Link to minimal example project:*
:
question_asked.zip
<https://github.com/godotengine/godot/files/723497/question_asked.zip>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#7615>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AF-Z2x8ZBT76gJgeuXrpAy0VelVqlOiWks5rVJ9sgaJpZM4Lq_n7>
.
|
@reduz Solved,thanks. |
we should add one of those node warnings when the rigid body is scaled
…On Mon, Jan 23, 2017 at 10:15 AM, ghur ***@***.***> wrote:
Closed #7615 <#7615>.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#7615 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AF-Z2xElfVDsXTyPDVeDISePDn9YqBpVks5rVKfcgaJpZM4Lq_n7>
.
|
Kind of duplicate of #5734, but repurposing this issue for adding warnings for scaled RigidBody's (while the other one is about making it possible to actually scale them). |
What about disabling rigid body scaling in the inspector?
|
@eon-s What if you scale the parent of the rigidbody? The lock-down would get way too expensive if we have to check all children. |
@bojidar-bg that affects even the the simple warning, but the rigid itself should have the option locked, like the pivot as I mentioned. |
Heya. Felt compelled to add my novice experience to this discussion. When I first bumped into this, took me a while to figure it out. It wasn't intuitive or consistent with the rest of the Godot node design. Since RigidBody extend other nodes, they imply that it will accept transformations in the same hierarchical manner as everything else. I understand now that it's not sensible for the physics body to scale, but it would be nice if the transforms were at least coherently forwarded to the collision shapes and child nodes. IE - Scaling up the meshes, sprites, collision shapes, etc. There would be some value in having games objects that are made from physics bodies that could grow and shrink using the existing node semantics. As it is currently, it seems to be scaling the child nodes in editor, and then you're in for surprises when you run it. They certainly have an awkwardness because of their unclear exceptions. |
yes, to avoid this problem, a warning sign will appear in the RigidBody to
let you know it will not work the moment you scale it.
…On Mon, Jan 23, 2017 at 10:27 PM, avencherus ***@***.***> wrote:
Heya. Felt compelled to add my novice experience to this discussion.
When I first bumped into this, took me a while to figure it out. It wasn't
intuitive or consistent with the rest of the Godot node design. Since
RigidBody extend other nodes, they imply that it will accept
transformations in the same hierarchical manner as everything else.
I understand now that it's not sensible for the physics body to scale, but
it would be nice if the transforms were at least coherently forwarded to
the collision shapes and child nodes. IE - Scaling up the meshes, sprites,
collision shapes, etc. There would be some value in having games objects
that are made from physics bodies that could grow and shrink using the
existing node semantics.
As it is currently, it seems to be scaling the child nodes in editor, and
then you're in for surprises when you run it. They certainly have an
awkwardness because of their unclear exceptions.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#7615 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AF-Z2yRnSflAsYX5Ap5nng-aCiLB8eztks5rVVOEgaJpZM4Lq_n7>
.
|
@reduz should RigidBody2D also display a warning ? |
yeah, I guess so
…On Tue, Jan 24, 2017 at 3:13 AM, Wilhem Barbier ***@***.***> wrote:
@reduz <https://github.com/reduz> should RigidBody2D also display a
warning ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#7615 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AF-Z24SuHQIyGCcbCgIYeIQK-lvDiBRkks5rVZajgaJpZM4Lq_n7>
.
|
I think all types of CollisionShapes should also issue such a warning when |
CollisionShapes are fine to be resized, I think the problem is some of them
(sphere or capsule) do not work well if the scale is non uniform
…On Tue, Jan 24, 2017 at 6:19 AM, Rémi Verschelde ***@***.***> wrote:
I think all types of CollisionShapes should also issue such a warning when
resized.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#7615 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AF-Z25ya0H-wUUwXQeq-XRGw0ItkFVYoks5rVcIzgaJpZM4Lq_n7>
.
|
Hm, in my experience scaling a CollisionShape (even uniformly) would cause weird issues in the physics engine. I've always seen people advising not to scale them, but to instead change their size properties. Edit: Right I wrote "resized" above, I meant "scaled". |
I reopened this issue, please don't close it. |
Is the common agreement here that we need an Editor Warning on all the collider objects if the scale != (1, 1)? Or is it at the RigidBody-level? Is this being worked on BTW? |
collider objects should work, the problem is the body itself |
Bugsquad edit: Repurposed the original issue to handle the suggestion in #7615 (comment)
Operating system or device - Godot version:
v2.1.2
Issue description:
The player model enlarges a lot of times when I run the program than in the edit mode,anyone knows how to solve it?
I have uploaded the screencasts which reflect the problem here:
In the edit mode:
When I run the program:
And the tscn file here(Level1.tscn/Spatial/Player_1 in the zip file):
question_asked.zip
Steps to reproduce:
just create a new project,unzip the file and open Level1.tscn
Link to minimal example project:
:question_asked.zip
The text was updated successfully, but these errors were encountered: