ABPhysicsEngine - AddForce vs AddGlobalForce

tecevit

Member
Licensed User
Longtime User
Hi,
I cannot get AbParticle1.AddForce(AbForce1) working.
What am i doing wrong ?

Works : ( particle falls down )
' AbParticle1.AddForce(AbForce1)
PhysicsEngine.AddGlobalForce(AbForce1)

Does not work : ( particle stands still )
AbParticle1.AddForce(AbForce1)
' PhysicsEngine.AddGlobalForce(AbForce1)

Attached is my simple source.
Thank you very much.
( I know this will be embarrasing )
 

Attachments

  • meyvekes1.zip
    63.1 KB · Views: 346

tecevit

Member
Licensed User
Longtime User
Thanks to all who read this.
I found my mistake, i should review lifecycle.

PhysicsEngine.AddGlobalForce(AbForce1)
AbParticle1.AddForce(AbForce1)

are both fine.
 
Upvote 0
Top