Activate Physics with javascript?

Hey everyone, is there a way to activate physics with javascript? The work we do in hype requires a lot of javascript, and we use very little timeline.

I need a way of activating several dynamic physics bodies at a certain time.

Any ideas?

Thanks for your time.

There is no API for the Physics in Hype. Unfortunately.


you can activate physics as an elements property on a timeline -> this timelime can be controlled by javascript … that’s all …

Hey @h_classen How would one go about doing that?

1 Like

Open up the 'mastering physics' document:

Then jump to the 'programmatic physics' scene:

To control Timelines (which might have Physics property changes) you would use the Hype api:

1 Like

Thanks so much @Daniel, I'll definitely be checking that out!

UPDATE: I checked it out and it works perfectly! Very easy to implement!