Skip to content

Conversation

CedricGuillemet
Copy link
Contributor

@CedricGuillemet CedricGuillemet commented Jun 24, 2025

  • Motion type
  • Prestep type
  • Mass
  • Linear/angular damping edit
  • Linear/angular velocity value

This PR contains basic support for physics body properties (from a TransformNode.physicsBody). If there is no physicsBody, right now it just uses a placeholder line component. Later, we are thinking we can provide some info and maybe a link to docs.

I (@ryantrem) also included some additional changes/fixes in this PR:

  • "Flatten" AccordionPane. There is really no reason at this layer to have an array of content, since the original purpose of that in the context of PropertiesPane was to make it so the delegate doesn't have to be duplicated, but at this layer there is no delegate.
  • Update useProperty to return undefined if target is undefined, which is more consistent with getting undefined when the property does not exist.
  • Update DropdownProps.options to be a readonly array (otherwise there is a compile error if you try to pass in a readonly array because it thinks the Dropdown needs to be able to mutate the array).
  • Update Dropdown to use useMemo instead of useState so it updates with props changes.

@bjsplat
Copy link
Collaborator

bjsplat commented Jun 24, 2025

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

@bjsplat
Copy link
Collaborator

bjsplat commented Jun 24, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Jun 24, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Jun 24, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Jun 24, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Jun 24, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Jun 25, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Jun 25, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Jul 3, 2025

Reviewer - this PR has made changes to one or more package.json files.

@bjsplat
Copy link
Collaborator

bjsplat commented Jul 3, 2025

Building or testing the playground has failed.

If the tests failed, results can be found here:
https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/PLAYGROUND/refs/pull/16800/merge/testResults/

@bjsplat
Copy link
Collaborator

bjsplat commented Jul 3, 2025

You have changed file(s) that made possible changes to the sandbox.
You can test the sandbox snapshot here:

https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/SANDBOX/refs/pull/16800/merge/

@bjsplat
Copy link
Collaborator

bjsplat commented Jul 3, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Jul 3, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Jul 8, 2025

Reviewer - this PR has made changes to one or more package.json files.

@ryantrem ryantrem marked this pull request as ready for review July 8, 2025 17:38
@bjsplat
Copy link
Collaborator

bjsplat commented Jul 8, 2025

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

@bjsplat
Copy link
Collaborator

bjsplat commented Jul 8, 2025

Reviewer - this PR has made changes to one or more package.json files.

@sebavan sebavan requested a review from ryantrem July 8, 2025 17:46
Copy link
Member

@sebavan sebavan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Loving it, lets wait on @ryantrem and @georginahalpern for final approval

@sebavan
Copy link
Member

sebavan commented Jul 8, 2025

ahah just noticed @ryantrem finalized this one so letting @georginahalpern to review :-)

@bjsplat
Copy link
Collaborator

bjsplat commented Jul 8, 2025

Copy link
Contributor

@georginahalpern georginahalpern left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still reviewing

@bjsplat
Copy link
Collaborator

bjsplat commented Jul 8, 2025

You have made possible changes to the playground.
You can test the snapshot here:

https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/PLAYGROUND/refs/pull/16800/merge/

The snapshot playground with the CDN snapshot (only when available):

https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/PLAYGROUND/refs/pull/16800/merge/?snapshot=refs/pull/16800/merge

Note that neither Babylon scenes nor textures are uploaded to the snapshot directory, so some playgrounds won't work correctly.

@bjsplat
Copy link
Collaborator

bjsplat commented Jul 8, 2025

You have changed file(s) that made possible changes to the sandbox.
You can test the sandbox snapshot here:

https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/SANDBOX/refs/pull/16800/merge/

@bjsplat
Copy link
Collaborator

bjsplat commented Jul 8, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Jul 8, 2025

@ryantrem ryantrem requested a review from georginahalpern July 8, 2025 19:06
@sebavan sebavan enabled auto-merge (squash) July 8, 2025 19:42
@sebavan sebavan merged commit cc1d4a0 into BabylonJS:master Jul 8, 2025
20 checks passed
VicenteCartas pushed a commit to VicenteCartas/Babylon.js that referenced this pull request Aug 7, 2025
- [x] Motion type
- [x] Prestep type
- [x] Mass
- [x] Linear/angular damping edit
- [x] Linear/angular velocity value

This PR contains basic support for physics body properties (from a
TransformNode.physicsBody). If there is no physicsBody, right now it
just uses a placeholder line component. Later, we are thinking we can
provide some info and maybe a link to docs.

I (@ryantrem) also included some additional changes/fixes in this PR:
- "Flatten" AccordionPane. There is really no reason at this layer to
have an array of content, since the original purpose of that in the
context of PropertiesPane was to make it so the delegate doesn't have to
be duplicated, but at this layer there is no delegate.
- Update `useProperty` to return undefined if `target` is undefined,
which is more consistent with getting undefined when the property does
not exist.
- Update `DropdownProps.options` to be a readonly array (otherwise there
is a compile error if you try to pass in a readonly array because it
thinks the Dropdown needs to be able to mutate the array).
- Update `Dropdown` to use `useMemo` instead of `useState` so it updates
with props changes.

---------

Co-authored-by: Ryan Tremblay <[email protected]>
georginahalpern pushed a commit to georginahalpern/Babylon.js that referenced this pull request Aug 20, 2025
- [x] Motion type
- [x] Prestep type
- [x] Mass
- [x] Linear/angular damping edit
- [x] Linear/angular velocity value

This PR contains basic support for physics body properties (from a
TransformNode.physicsBody). If there is no physicsBody, right now it
just uses a placeholder line component. Later, we are thinking we can
provide some info and maybe a link to docs.

I (@ryantrem) also included some additional changes/fixes in this PR:
- "Flatten" AccordionPane. There is really no reason at this layer to
have an array of content, since the original purpose of that in the
context of PropertiesPane was to make it so the delegate doesn't have to
be duplicated, but at this layer there is no delegate.
- Update `useProperty` to return undefined if `target` is undefined,
which is more consistent with getting undefined when the property does
not exist.
- Update `DropdownProps.options` to be a readonly array (otherwise there
is a compile error if you try to pass in a readonly array because it
thinks the Dropdown needs to be able to mutate the array).
- Update `Dropdown` to use `useMemo` instead of `useState` so it updates
with props changes.

---------

Co-authored-by: Ryan Tremblay <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants