Class BoxColliderBuilder
- Assembly
- Alis.dll
The box collider builder class
public class BoxColliderBuilder : IBuild<BoxCollider>, IIsActive<BoxColliderBuilder, bool>, IBodyType<BoxColliderBuilder, BodyType>, ISize<BoxColliderBuilder, float>, IMass<BoxColliderBuilder, float>, IAutoTilling<BoxColliderBuilder, bool>, IFixedRotation<BoxColliderBuilder, bool>, IFriction<BoxColliderBuilder, float>, IRotation<BoxColliderBuilder, float>, IRelativePosition<BoxColliderBuilder, float>, IRestitution<BoxColliderBuilder, float>, IIsTrigger<BoxColliderBuilder, bool>, ILinearVelocity<BoxColliderBuilder, float>, IAngularVelocity<BoxColliderBuilder, float>
Inheritance
Implements
Inherited Members
Fields
boxCollider
The box collider
private readonly BoxCollider boxCollider
Field Value
Methods
AngularVelocity(float)
Angular the velocity using the specified value
public BoxColliderBuilder AngularVelocity(float value)
Parameters
value
float-
The value
Returns
- BoxColliderBuilder
-
The box collider builder
AutoTilling(bool)
Auto the tilling using the specified value
public BoxColliderBuilder AutoTilling(bool value)
Parameters
value
bool-
The value
Returns
- BoxColliderBuilder
-
The box collider builder
BodyType(BodyType)
Bodies the type using the specified value
public BoxColliderBuilder BodyType(BodyType value)
Parameters
value
BodyType-
The value
Returns
- BoxColliderBuilder
-
The box collider builder
Build()
Builds this instance
public BoxCollider Build()
Returns
- BoxCollider
-
The box collider
FixedRotation(bool)
Fixed the rotation using the specified value
public BoxColliderBuilder FixedRotation(bool value)
Parameters
value
bool-
The value
Returns
- BoxColliderBuilder
-
The box collider builder
Friction(float)
Frictions the value
public BoxColliderBuilder Friction(float value)
Parameters
value
float-
The value
Returns
- BoxColliderBuilder
-
The box collider builder
IgnoreGravity(bool)
Ignores the gravity using the specified value
public BoxColliderBuilder IgnoreGravity(bool value)
Parameters
value
bool-
The value
Returns
- BoxColliderBuilder
-
The box collider builder
IsActive(bool)
Is the active using the specified value
public BoxColliderBuilder IsActive(bool value)
Parameters
value
bool-
The value
Returns
- BoxColliderBuilder
-
The box collider builder
IsTrigger()
Is the trigger
public BoxColliderBuilder IsTrigger()
Returns
- BoxColliderBuilder
-
The box collider builder
IsTrigger(bool)
Is the trigger using the specified value
public BoxColliderBuilder IsTrigger(bool value)
Parameters
value
bool-
The value
Returns
- BoxColliderBuilder
-
The box collider builder
LinearVelocity(float, float)
Linear the velocity using the specified x
public BoxColliderBuilder LinearVelocity(float x, float y)
Parameters
Returns
- BoxColliderBuilder
-
The box collider builder
Mass(float)
Masses the value
public BoxColliderBuilder Mass(float value)
Parameters
value
float-
The value
Returns
- BoxColliderBuilder
-
The box collider builder
RelativePosition(float, float)
Relatives the position using the specified x
public BoxColliderBuilder RelativePosition(float x, float y)
Parameters
Returns
- BoxColliderBuilder
-
The box collider builder
Restitution(float)
Restitutions the value
public BoxColliderBuilder Restitution(float value)
Parameters
value
float-
The value
Returns
- BoxColliderBuilder
-
The box collider builder
Rotation(float)
Rotations the angle
public BoxColliderBuilder Rotation(float angle)
Parameters
angle
float-
The angle
Returns
- BoxColliderBuilder
-
The box collider builder
Size(float, float)
Sizes the x
public BoxColliderBuilder Size(float x, float y)
Parameters
Returns
- BoxColliderBuilder
-
The box collider builder