Have one object apply a force to another.
Trying to teach myself all this physics stuff in Unity. What with the RigidBody2D and the Colliders.
Though right now I am wanting to have one object, such as a platform, apply an upward force upon the player when the player touches it. (The player touches the platform, the player is then launched into the air.)
I assume Raycasting has something to do with it for detection so I do have raycasting. I imagine to accomplish this rigidbody2d.Addforce will be used.
Just for reference this is the code in my Player: https://dl.dropboxusercontent.com/u/3801241/Code/Player.cs
And this is what is in my Controller2D: https://dl.dropboxusercontent.com/u/3801241/Code/Controller2D.cs
I went through like a 9 episode tutorial on 2D movement and stuff. Absorbed what I could, I don't completely understand the code there but just trying to pick an idea and see if I can make something work hopefully I'll learn most of it along the way.
Your answer
Follow this Question
Related Questions
Why my player controller slows down after each collision ? 1 Answer
A box collider 2D (Is Trigger marked) stops my player from moving which has rigidbody 2D 1 Answer
rigidbody not moving 1 Answer
Unable to AddForce on a game object containing a RigidBody2D and a HingeJoint2D? 1 Answer
Inconsistent jump height and double jumping issues with rigidbody2D on a sprite 0 Answers