I'm working on a launch pad for an FPS and to do so I am grabbing the player's rigidbody and changing it's velocity on trigger enter. Pretty simple.
But I also want to rotate the pad and use it multiple times in different areas.
How can I take the launch Vector3 and rotate it to match the pad's rotation?
launch pad rotation
But I also want to rotate the pad and use it multiple times in different areas.
How can I take the launch Vector3 and rotate it to match the pad's rotation?
Code (CSharp):
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class LaunchPad : MonoBehaviour
- {
- public float forwardForce;
- public float...