No gravity in editor game mode

0

Hi,

I've made an entity, attached mesh, sphere shape, mesh collider and rigid body physics components, unticked at rest initially in the rigid body physics component yet when I press ctrl+G to go into game mode, the console says I enter game mode, but the rigid body doesn't fall down to the ground (set it in mid-air so that it would fall), as if there is no gravity or physics isn't enabled when in game mode! Why is this, and how can I fix this?

gefragt vor 6 Jahren165 Aufrufe
4 Antworten
0
Akzeptierte Antwort

@REDACTEDUSER

REMOVEDUPLOAD

beantwortet vor 6 Jahren
0

Hi @REDACTEDUSER

Following your components list I was able to get the sphere to spawn, drop to the ground and be manipulated by the player controller from StarterGame.

Make sure that the Enabled Initially checkbox is checked in the Rigid Body Physics Component and that the Density/Mass of the component is set to around 10 or so. With a Density/Mass of Zero the mesh will not react to the physics engine.

Let me know if that works, if not send me some screenshots of your component settings and I will see if i can find out whats up.

Thanks!

beantwortet vor 6 Jahren
0

So, @REDACTEDUSER

beantwortet vor 6 Jahren
0

Also, I used the primitive_sphere.cgf from Engine/Objects/default as @REDACTEDUSER

beantwortet vor 6 Jahren

Dieser Beitrag ist geschlossen: Das Hinzufügen neuer Antworten, Kommentare und Abstimmungen ist deaktiviert.