SgtLandscapeObject
This component snaps or repels the current GameObject/Transform to a landscape. This can be used to place objects on the planet surface.
Landscape
The landscape this object will snap to.
Offset
This allows you to move the object up based on the surface normal in world space.
Radius
The surface normal will be calculated using this sample radius in world space. Larger values = Smoother.
SnapIn
This allows you to control where in the game loop the object position will be snapped.
SnapPosition
When should the position be snapped?
SnapRotation
When should the rotation be snapped?
Last updated