Click or drag to resize

PathManagerEvenlyDistributeShapesAlongPath Method (World, Path, Shape, BodyType, Int32, Object)

Duplicates the given Body along the given path for approximatly the given copies.

Namespace:  Internal.tainicom.Aether.Physics2D.Common
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public static List<Body> EvenlyDistributeShapesAlongPath(
	World world,
	Path path,
	Shape shape,
	BodyType type,
	int copies,
	Object userData = null
)

Parameters

world
Type: Internal.tainicom.Aether.Physics2D.DynamicsWorld
The world.
path
Type: Internal.tainicom.Aether.Physics2D.CommonPath
The path.
shape
Type: Internal.tainicom.Aether.Physics2D.Collision.ShapesShape
The shape.
type
Type: Internal.tainicom.Aether.Physics2D.DynamicsBodyType
The type.
copies
Type: SystemInt32
The copies.
userData (Optional)
Type: SystemObject
The user data.

Return Value

Type: ListBody
See Also