Question by
elizzarf · Sep 17, 2016 at 11:20 AM ·
ragdolldestroy objectropeconnectedbody
How to grip a character with a rope ?
Hi people!
Created with the help of a rope hinge joint2d, I made a character , made a movement of the character ,
How to make a character caught in the rope ?
On the character movement is the script:
using UnityEngine; using System.Collections;
public class Touch_Tors : MonoBehaviour { public GameObject tors; public GameObject player; public int addforce=500; public float speed; private Rigidbody2D rb;
void Start () {
rb = GetComponent<Rigidbody2D>();
}
void Update () {
float moveHorizontal = Input.GetAxis ("Horizontal");
float moveVertical = Input.GetAxis ("Vertical");
float moveVerticalZ = Input.GetAxis ("Vertical");
Vector3 movement = new Vector3 (moveHorizontal, moveVerticalZ, moveVertical);
rb.AddForce (movement * speed);
}
}
How to make a character grabbed or hooked a rope??? Please Help!
file.jpg
(55.4 kB)
Comment
Your answer
Follow this Question
Related Questions
How to pin character on rigidbody and interact just like real physics? 1 Answer
2D ragdoll grabbing system 0 Answers
How do I smoothly scale objects with bones? 0 Answers
2D rope attached object has no momentum when swung 0 Answers
Bullet Destroy 1 Answer