[Activated!] New Part Physics API

This is really cool, I was going to make a custom water system with good physics and I think this might’ve just made everything much more easier!

Great Choice and Thank you.

3 Likes

As for specifically why readonly properties are preferable when possible over getters is that you can see properties in the properties panel in Roblox Studio, vs getters are more hidden.

Would you rather have to call :GetAssemblyMass() in the command bar, or just be able to see what the assembly mass is in the properties panel? That’s why it’s exposed as .AssemblyMass instead.

10 Likes

I’m really liking the :GetVelocityAtPosition. This could mean that things such as launching projectiles and whatnot can be easily read from when trying to calculate how much damage a player should take based on velocity when the “mortar ball” hits the player.

5 Likes

Oh I get that, my point was mainly why have both that do the same. But now that I know :GetRootPart() might be deprecated in the future, I see why they introduced the property. And I agree with it being easier to find.

3 Likes

This look great, I’ll definitely experiment in a bit! Question: what happens when applying impulses over a network? (e.g a server applies an impulse to a part with a client network owner)

The reason I ask is that setting the velocity of a part from the server with client ownership is unreliable, and therefore considered a bad practice.

4 Likes

I’ve actually just tested this and it acts the same as if you set the Velocity property directly. In other words it doesn’t do anything if you don’t have network ownership.

3 Likes

Question: For the Position arguments in each of the methods, are those relative to the world or the root part?

Really liking this update. This’ll clean up some of my code :slight_smile:

3 Likes

How will scripts using Velocity and RotVelocity work? will they still be supported as long as possible despite deprecation? because conveyors use Velocity, and i know a game that uses Velocity and RotVelocity alot, so it would be nice if both the new stuff and the already existing stuff were supported.

4 Likes

Hello everyone my apologies but this is causing some new studio crashes. We need to disable this until the bug has been resolved!
EDIT: No more releases this year - check back in January!

20 Likes

:pray: :pray: :pray:

This is so cool! Really removes a lot of cases where you have to do odd workarounds and makes the physics engine feel much more… complete?

You can now do a lot of things without making & destroying an object. Stuff like jump pads, punching objects with knockback, making a domino fall over, etc.

7 Likes

Awesome! This will all be extremely useful for my game (which uses the physics engine + body movers to simulate flight) and I look forward to making the switch. Currently, I had to go through a bunch of hoops to get desirable behaviour; this should simplify a lot of mechanics in my game (as well as introduce some new ones)!

I only ask that while deprecated, the Velocity properties are not removed. I know this is probably what you mean by “deprecated” anyway, but just so that our needs are clear; those properties are useful (when doing some tricks), and I will without doubt forget to switch over to assembly velocity at least somewhere in my code base.

Hype!

2 Likes

This is great - the ability to apply an impulse is huge for game development and was always a much-needed feature on Roblox. There will be so many applications to this, and now everyone’s physics code can be much cleaner. Huge step in the right direction, so thank you to everyone involved!

2 Likes

Finnaly. i waited so long for this to get fixed. I am getting so confused by the old behaviour.

1 Like

Is there any idea on when this will be re-enabled again?

Whats the targetted date?

3 Likes

An ETA would be greatly appreciated on this please.

My team has already implemented a feature relying on this API and that is now broken until you flip that Flag again. We were not experiencing Studio crashes so this is creating an inconvenience for us by disrupting our workflow.

Maybe we shouldn’t be so eager and early at adopting new Roblox features.

4 Likes

Haven’t been able to try this out yet. Does this resolve the issue with humanoid velocity? Previously setting the Velocity property on a humanoidrootpart did not give the intended impulse effect. Does using the new functions work properly with humanoids?

But otherwise cheers this is great!!

2 Likes

Welp ima have to rewrite my ant exploit now because deprecating RotVelocity and Velocity

3 Likes

My man he literally said ETA one week.

2 Likes

4 Likes

Will it be possible now to get the velocity of an object that’s anchored if its being moved via CFrame etc?

1 Like