 |
CircleModelNodeCreateRectangle(Vector3, Vector2, Single) Method |
CreateRectangle sets the properties of this CircleModelNode so that it renders a rectangle (Segments is set to 4 and StartAngle to 45)
with the specified width and height (size) and direction.
When innerSizeFactor is between 0 and 1, then center is hollow because InnerRadius is set.
This method also calls the Update method that updates the mesh.
Namespace: Ab4d.SharpEngine.SceneNodesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
Syntaxpublic void CreateRectangle(
Vector3 centerPosition,
Vector2 size,
float innerSizeFactor = 0f
)
Parameters
- centerPosition Vector3
- center position of the rectangle
- size Vector2
- size of the rectangle
- innerSizeFactor Single (Optional)
- when bigger than 0 and smaller than 1, then this sets how much smaller the InnerRadius is. Default value is 0.
Remarks[Missing <remarks> documentation for "M:Ab4d.SharpEngine.SceneNodes.CircleModelNode.CreateRectangle(System.Numerics.Vector3,System.Numerics.Vector2,System.Single)"]
See Also