How to place a cube without hanging on the sides of the foundations?
I want to put a cube on the foundations with all horizontal zoops and all vertical zoop
To do this I use the FGBuildable Foundation Lightweight and I modified its Halo so that it works in all 6 directions
The problem is that it snaps to the sides of the foundations too
There are also Ramps and Roof but they are based on Holo_Foundation too
- What are the parameters to modify to prevent snapping to the sides of the foundations?
- If it is not possible, what are the modifications to make to the Holo_Foundation in C++?
11 Replies
Snapping stuff sounds like holograms. If anything you may need to implement your own hologram class in C++
Thanks but I don't know what I need to change in the base hologram to prevent the snap on the sides of the foundations
(I corrected my mistake in the description)
Foundations have options to disable snapping on each side
This is in the builder, not the hologram
Ah, interesting
No, the only result of checking these boxes is that my cube no longer clings to the others
But continues to allow itself to cling to the sides of the foundations (in yellow)
That is going to require custom hologram snapping code
Yes but I don't know what I need to change in the base hologram
:thistbh:
Is there a good reason why your part has to be a foundation? If you make it a FGBuildableFactoryBuilding and use FGGenericBuildableHologram, you can disable mCanSnapToFoundationSide. There are a lot more snapping options in that hologram class.
I need all horizontal zoops and all vertical zoops