×

Algoryx's video: 26 - Edit center of mass and inertia tensors

@26 - Edit center of mass and inertia tensors
Download model: https://www.algoryx.se/download/momentum/tutorials/tutorial26.zip https://www.ansys.com https://www.algoryx.se This is a tutorial on how to over-ride the automatically calculated center of mass and inertia properties of a body, and replace them with explicitly specified properties. Please grab the model and script provided here, and try it out. Script: " from Momentum import v1 sim = v1.getSimulation() # Triggered at start of Recording of a simulation (including continuing) def OnStart(time): centerOfMass = sim.getObserver("CoM") body = sim.getRigidBody("Body") inertia = v1.Matrix3x3( 1.3, 0, 0, 0, 2.4, 0, 0, 0, 2.6) body.setCmAndInertiaInObserver(centerOfMass, inertia) # Triggered every time step during recording of a simulation def OnStep(time): pass # Triggered when a recording is stopped def OnStop(time): pass "

12

4
Algoryx
Subscribers
6.9K
Total Post
213
Total Views
71.3K
Avg. Views
1K
View Profile
This video was published on 2020-01-21 21:00:11 GMT by @Algoryx on Youtube. Algoryx has total 6.9K subscribers on Youtube and has a total of 213 video.This video has received 12 Likes which are higher than the average likes that Algoryx gets . @Algoryx receives an average views of 1K per video on Youtube.This video has received 4 comments which are higher than the average comments that Algoryx gets . Overall the views for this video was lower than the average for the profile.Algoryx # # # has been used frequently in this Post.

Other post by @Algoryx