fstxz / scene_tools

An editor plugin for Godot 4.2+ to help you with designing your levels and quick prototyping. It currently only supports asset placement.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Self-collision issue with the object being placed

Smorty10 opened this issue · comments

When deactivating the grid option, and the object one is about to place is a PhysicsBody or has a collision object inside of it, the raycast which is used for determening the position of the mouse cursor detects the preview object and tries to adjust its position. This results in the preview object moving closer to the camera repeatedly, after which snapping back to the actual scene geometry. This is best explained by having a look here:
Bildschirmaufzeichnung vom 2024-05-09, 02-33-36.webm
The raycast detects the goal as a collision object, even thouhgh it should simply be a preview object without collision before placing.

Thanks for reporting again. This is now fixed (hopefully).

even thouhgh it should simply be a preview object without collision before placing.

This is because preview object is the whole scene, including objects that are not meshes, e.g. particles, lights, etc.