You are browsing as a guest. Sign up (or log in) to start making projects!

MassCompose

  • 1 Devlogs
  • 8 Total hours

MassCompose provides a simple, engine-agnostic way to calculate mass properties for complex rigid bodies. Give it an STL mesh and optional discrete point masses representing components such as batteries, motors, or payloads, and it calculates the resulting total mass, center of mass, and inertia tensor. The goal is to make physically accurate mass-property generation easier for game developers, robotics/UAV developers, and anyone working with custom rigid-body simulations.

Open comments for this post

8h 3m 56s logged

The initial mass composer script for UAV NeoSIM is done and bug free! This project started off as a small personal project targeted at adding a feature to UAV NeoSIM (A drone simulation created on Unity) where users can import their own custom drone models and fly them around. A python mass-properties script was created that takes in the imported stl, mass density, and specific point masses for objects such as the motors, the battery, and the computers to calculate the inertial tensors. Out of this working mass composing script evolved the larger idea to make a python package with a more general version of a masscompose function. The idea is to help out game and sim devs everywhere by giving them an easy way to create their own rigidbody physics objects that need the additonal of additional masses. mass-properties (The initial module) took advantage of the trimesh module to calculate the COM and the original inertial tensor from here. The parallel axis theorem was added to calculate the changed COM and inertial tensors with the addition of the point masses. This “backend” of sorts had three parts, the most important being udp_listener which communicated back and forth with unity to recieve coordinates and masses and sent coordinates and masses. This backend serves as the logical backbone that this python package can be finished.

0
0
19

Delete project?

Are you sure you want to permanently delete this project? This action cannot be undone.

All devlogs, followers, and associated data will be removed.

Followers

Loading…