DZone
Mobile Zone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
  • Refcardz
  • Trend Reports
  • Webinars
  • Zones
  • |
    • Agile
    • AI
    • Big Data
    • Cloud
    • Database
    • DevOps
    • Integration
    • IoT
    • Java
    • Microservices
    • Open Source
    • Performance
    • Security
    • Web Dev
DZone > Mobile Zone > Chaotic Magnetic Pendulum with Custom Radial Forces in Houdini [Video]

Chaotic Magnetic Pendulum with Custom Radial Forces in Houdini [Video]

Here's another project that roughly simulates the effect of a magnetic pendulum and visualizes the resulting attractor.

Simon Gladman user avatar by
Simon Gladman
·
Oct. 31, 16 · Mobile Zone · Tutorial
Like (1)
Save
Tweet
2.70K Views

Join the DZone community and get the full member experience.

Join For Free

Following on from my recent post about creating a double pendulum in SideFX Houdini, here's another project that roughly simulates the effect of a magnetic pendulum and visualizes the resulting attractor.

The system consists of a single pendulum and four fields visualized as small spheres. The blue spheres indicate a repulsive radial force and the red spheres indicate an attractive radial force.

Perhaps surprisingly, Houdini doesn't come with a radial force "out-of-the-box", so I turned to the VOP Force dynamics node to create my own. This node allows the creation of custom forces based on a VOP network and sits inside my DOP network. My radial force looks like this:

It's not quite a gravitational force because it ignores mass, but my node does apply an impulse in the direction between the affected object and the input position based on the inverse square of the distance between them.

The one gotcha was that, by default, Houdini dynamics "sleeps" stationary objects. Luckily, my pendulum RBD Object has an initial velocity and remains active over the 500 frames in the video above.

The final DOP Network has four of these custom radial force nodes - two with negative strengths and two with positive strengths yielding the final result.

Houdini (chess)

Published at DZone with permission of Simon Gladman, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Java: Why Core-to-Core Latency Matters
  • SQL CTE: How to Master It in One Sitting With Easy Examples
  • How Template Literal Types Work in TypeScript
  • Getting Started Building on the NEAR Network with Infura

Comments

Mobile Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • MVB Program
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends:

DZone.com is powered by 

AnswerHub logo