Class Component
Represents a component of a vehicle
Inherited Members
Namespace: Slipe.Client.Vehicles
Assembly: SlipeClient.dll
Syntax
public class Component
Constructors
| Improve this Doc View SourceComponent(BaseVehicle, ComponentType, ComponentBase)
Create a component instance from a vehicle
Declaration
public Component(BaseVehicle vehicle, ComponentType type, ComponentBase relativeBase = ComponentBase.root)
Parameters
Type | Name | Description |
---|---|---|
BaseVehicle | vehicle | |
ComponentType | type | |
ComponentBase | relativeBase |
Component(BaseVehicle, String, ComponentBase)
Create a component instance from a vehicle using a string as type
Declaration
public Component(BaseVehicle vehicle, string type, ComponentBase relativeBase = ComponentBase.root)
Parameters
Type | Name | Description |
---|---|---|
BaseVehicle | vehicle | |
String | type | |
ComponentBase | relativeBase |
Properties
| Improve this Doc View SourceBase
Set the base to which the position and rotation are relative
Declaration
public ComponentBase Base { get; set; }
Property Value
Type | Description |
---|---|
ComponentBase |
Position
Get and set the position relative to the specified component base
Declaration
public Vector3 Position { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
Rotation
Get and set the rotation relative to the specified component base
Declaration
public Vector3 Rotation { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
Scale
Get and set the scale of this component
Declaration
public Vector3 Scale { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
Visible
Get and set if this component is visible
Declaration
public bool Visible { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
| Improve this Doc View SourceResetPosition()
This function reset to default component position for vehicle.
Declaration
public bool ResetPosition()
Returns
Type | Description |
---|---|
Boolean |
ResetRotation()
This function reset to default component rotation for vehicle.
Declaration
public bool ResetRotation()
Returns
Type | Description |
---|---|
Boolean |
ResetScale()
Declaration
public bool ResetScale()
Returns
Type | Description |
---|---|
Boolean |