i wish you well on rolling your own Physics. Its certainly straightfoward to implement formulas for kinematics/dynamics as you suggest, but like the first comment references, timesteps and stability are quite elusive to get manageable for varying amounts of moving objects. While stacking might be an isolated case, i could definitely see the scope expanding beyond initial estimates for 'final tuning'. Bullet does a good job w/ stacked cubes and i'd expect PhysX to be equally proficient.
Simulacrum0
Mission: - Augment Species: help realize how we're "better together".
Blog: - Url: https://Simulacrum0.github.io
- Focus: Realtime-Created Behaviors in Evolving Simulations using Meaning Maps of Human Expressed Dialects, Gestures, and Visuals.
- [ Spacetime: Southington, CT, USA, Earth, Sol, Milk Way, Local Cluster, Etc- ] [ Life_Fascination: Self-generating realtime-behaviors in evolvable simulations ] [ Ancestry: Nautolan / Mi-Go / Yazarian ] [ Code_Orientation: Data over Object ] [ Arch_Nemeses: Underfoot Cat saboteurs, compile times, & lack of a TARDIS ] [ Past: Video-game coding, Business-development ( ran www.whatif-productions.com ), Military sensor-simulations, Gov't 3D training & Animal rehab ] [ Present: Building a learning simulator for synthetic realities using possibility-exploring, 4D( space & timeline) presentation, and multiple senses modeling. ] [ Future: Finish coding a semantic map between 'human meanings/intentions/emotions/habits' and 'representable data & code' models. Make the world a better place. Finally finish KOTOR. ]
Gamer^JoGryKe: - Video-game/VR/AI programmer, simulation scientist, RPG-fan ( Traveller, Transhuman, EclipsePhase, Delta-Green, Call of Cthulhu, StarWars D20/FF, BSG, Burning Empires ), & pet psychic fascinated by understanding & hacking humans for a better tomorrow.