Class VesselForceController
Vessel controller that applies force to move and rotate towards the Target position
Inheritance
System.Object
VesselForceController
Assembly: cs.temp.dll.dll
Syntax
public class VesselForceController : MonoBehaviour
Fields
MaxAngleDelta
Declaration
public float MaxAngleDelta
Field Value
Type |
Description |
System.Single |
|
MaxSpeed
Declaration
Field Value
Type |
Description |
System.Single |
|
Motor
Declaration
Field Value
Type |
Description |
Transform |
|
Power
Declaration
Field Value
Type |
Description |
System.Single |
|
RestartDistance
Declaration
public float RestartDistance
Field Value
Type |
Description |
System.Single |
|
SteerPower
Declaration
Field Value
Type |
Description |
System.Single |
|
StoppingDistance
Declaration
public float StoppingDistance
Field Value
Type |
Description |
System.Single |
|
Target
Declaration
Field Value
Type |
Description |
Transform |
|
vessel
Declaration
protected Rigidbody vessel
Field Value
Type |
Description |
Rigidbody |
|
Methods
ApplyForceToReachVelocity(Rigidbody, Vector3, Single, ForceMode)
Declaration
public static void ApplyForceToReachVelocity(Rigidbody rigidbody, Vector3 velocity, float force = 1F, ForceMode mode = null)
Parameters
Type |
Name |
Description |
Rigidbody |
rigidbody |
|
Vector3 |
velocity |
|
System.Single |
force |
|
ForceMode |
mode |
|
Awake()
Declaration
FixedUpdate()
Declaration
public void FixedUpdate()
MoveTowards()
Declaration
public void MoveTowards()
RotateTowards()
Declaration
public void RotateTowards()