Page MenuHomeFeedback Tracker

dSetGravity takes an entity, but set Gravity globally?
Closed, ResolvedPublic

Description

I recently wanted to use dSetGravity to let objects fly easily without having to use some complicated physics, but I noticed, that it would set the gravity globaly, even when I pass an object to the function.
The comment says, it would set it globally, but I wondered why it would take an object and if it's possible to set it per object somewhere, because I could not find it anywhere...

Details

Severity
Block
Resolution
Open
Reproducibility
Always
Operating System
Windows 7
Category
General

Event Timeline

Geez changed the task status from New to Feedback.Aug 14 2024, 9:44 AM
Geez closed this task as Resolved.Mon, Jan 6, 1:49 PM
Geez claimed this task.
Geez added a subscriber: Geez.

Hello LBmaster.
No, you cannot disable the gravity for a single object, it can only be applied for the entire world. If you want to make objects fly, you should disable the physics simulation on the object and then implement your own flying behaviour, in script.