[ITEP-82021] Add physics properties to Asset3D model#1030
Merged
saratpoluri merged 6 commits intomainfrom Feb 19, 2026
Merged
Conversation
- Add 9 new physics properties for rigid body simulation preparation: - Positional: geometric_center (array[3]) - Mass: mass, center_of_mass (array[3]) - Physics state: is_static, ttl, linear_damping, angular_damping - Material: coefficient_of_restitution, friction_coefficients (array[2]) - All fields include sensible defaults and help text - TTL defaults to 0.0 (infinite) for object permanence - Array fields pre-populated with example values for self-documentation - Updated API serializer to expose all new properties - Updated create/update form views to include new fields - All properties use SI units as specified - Migrations will be auto-generated on deployment
Contributor
There was a problem hiding this comment.
Pull request overview
Adds an initial set of rigid-body physics configuration fields to the Manager’s Asset3D (Object Library) data model, and exposes them through the UI CRUD views and REST serializer to support future physics engine integration.
Changes:
- Added new physics-related fields (mass, centers, damping, restitution, friction, TTL/static) to
Asset3D. - Exposed the new fields via
Asset3DSerializer. - Added the new fields to the Asset3D create/update views’ editable field lists.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
| manager/src/django/models.py | Adds new physics properties to the Asset3D model (including list/array fields and defaults). |
| manager/src/django/serializers.py | Includes the new physics properties in the Asset3DSerializer response/payload fields. |
| manager/src/django/views.py | Adds the new physics properties to the Asset3D create/update form field lists. |
saratpoluri
previously approved these changes
Feb 18, 2026
saratpoluri
approved these changes
Feb 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📝 Description
This PR adds a minimum viable collection of physics properties to the Asset3D (Object Library) model in preparation for integration of a full physics simulation engine. This is phase 1: schema addition only. These properties are not yet consumed by any simulation or tracking logic - they are being added to the data model to support future physics engine integration.
Changes:
geometric_center(array[3]) - offset from bottom center in metersmass(kg),center_of_mass(array[3]) - mass distribution propertiesis_static(boolean),ttl(seconds),linear_damping(0.0-1.0),angular_damping(0.0-1.0)coefficient_of_restitution(0.0-1.0),friction_coefficients(array[2] for static/dynamic)What this PR does NOT include:
Context:
These properties establish the data foundation for future physics capabilities. They may be detected or configured based on object class and will support future physics engine integration. The minimum viable set was identified based on existing rigid body physics simulation solutions. This phase simply makes the properties available for configuration via UI and API.
✨ Type of Change
Select the type of change your PR introduces:
🧪 Testing Scenarios
Describe how the changes were tested and how reviewers can test them too:
Manual Testing:
make demo[0.0, 0.0, 0.0]for geometric_center)Reviewers can test by: