Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

launch pad rotation

$
0
0
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?

Code (CSharp):
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5. public class LaunchPad : MonoBehaviour
  6. {
  7.     public float forwardForce;
  8.     public float...
launch pad rotation

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>