Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | MikeMikeMike |
Hi…,
for a level restart I transform my object to somewhere, where it has no contact by (works nicely):
PhysicsServer.body_set_state(
get_rid(),
PhysicsServer.BODY_STATE_TRANSFORM,
backup_transform
)
But in the next game cycle the body state reports still contact:
func _integrate_forces( state : PhysicsDirectBodyState ) -> void:
#
Is there a way to reset the PhysicsServer to clear all body states?
Thanks
Mike
This answer might help: https://forum.godotengine.org/27385/how-to-turn-on-of-physics-globally-in-a-scene
SteveSmith | 2022-10-04 19:26
Hi SteveSmith,
thank you for the link. Stopping and starting the PhysicsServer seams not to remove the contacts from my object.
I think I have to look further how to remove body contacts.
Thanks
Mike
MikeMikeMike | 2022-10-05 08:51