SpacePin.ModelPositionSourceEnum Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Choice of what to use for modeling position.
public enum SpacePin.ModelPositionSourceEnum
type SpacePin.ModelPositionSourceEnum =
Public Enum SpacePin.ModelPositionSourceEnum
- Inheritance
-
SpacePin.ModelPositionSourceEnum
Fields
Name | Value | Description |
---|---|---|
Transform | 0 | |
RendererBounds | 1 | |
ColliderBounds | 2 |
Remarks
In general, the transform's global position is the preferred source of the model position. However, there are times when that is not practical. Specifically, if the model's transform has been "baked" into the model's vertices, leaving an identity transform, then while the transform's position is no longer meaningful, the renderer's world-space bounds and/or the collider's world-space bounds may still have a useful reference position. Also, it is very easy to offset the collider's bounds, when it might be more cumbersome to modify either the transform position or the renderer's bounds. Note that orientation **always** comes from transform, as renderer and collider bounds have no orientation.