How to apply force to a creative prop?

I’m trying to apply force to a creative prop, but unfortunately nothing works.

My Verse code is really simple for this test:

using { /Fortnite.com/Devices }
using { /Verse.org/Simulation }
using { /Verse.org/SpatialMath }

test_device := class(creative_device):

    @editable
    PhysicsProp : creative_prop = creative_prop{}

    OnBegin<override>() : void =
        spawn:
            Test()

    Test<protected>()<suspends> : void =
        Sleep(5.0)
        Print("Apply Force to PhysicsProp")
        PhysicsProp.ApplyForce(vector3{Left:=0.0, Up:=1000.0, Forward:=0.0})

Here is the setup of my map, and in particular the creative prop with physics enabled:

And here is a video of the result. I’m able to push the ball manually, and the print message appears, but the force is not applied to the ball :frowning:

If anyone has an idea why this doesn’t work, it would be really helpful. Thank you!

It might be that ApplyForce only works if the prop is already in active motion/simulation. Try calling AddImpulse() or ApplyImpulse() first

1 Like

Thank you. I don’t see this methods in the verse/fortnite digest, where did you found them?

Hi Nico,

Do you see any difference when trying a number much higher than 1000? (like 10,000 or 100,000?)

Looks like ApplyForce just came out with v39.00 a few days ago!

If you don’t see any difference with a higher number I’ll try to set up a test on my end. (I’ll be back Monday)

Did you test it on an object with custom mass or standard mass? I’m just curious if ApplyForce depends on Physics → Mass Override. My Force hardly scales at all.

Thank you, I tried with 100.000 up and forward and it working. Thank you, I was thinking a 1.000 was enought. But no, my bad.
Again thank you