WorldCreateCapsule(Single, Single, Int32, Single, Int32, Single, Vector2, Single, BodyType) Method |
Namespace: Internal.tainicom.Aether.Physics2D.DynamicsAssembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.1.1.0 (2026.1.1.0)
Syntaxpublic Body CreateCapsule(
float height,
float topRadius,
int topEdges,
float bottomRadius,
int bottomEdges,
float density,
Vector2 position = default,
float rotation = 0f,
BodyType bodyType = BodyType.Static
)
Parameters
- height Single
-
- topRadius Single
-
- topEdges Int32
-
- bottomRadius Single
-
- bottomEdges Int32
-
- density Single
-
- position Vector2 (Optional)
-
- rotation Single (Optional)
-
- bodyType BodyType (Optional)
-
Return Value
Body
See Also