unity addforce forward code example
Example 1: unity movement on forward
transform.position += transform.forward * Time.deltaTime * movementSpeed;
Example 2: unity addforceatposition
rigidbody.AddForceAtPosition(force, worldPosition);
transform.position += transform.forward * Time.deltaTime * movementSpeed;
rigidbody.AddForceAtPosition(force, worldPosition);