Question by
FuZZbaLL_b · Mar 20, 2016 at 01:42 PM ·
hinge jointaddforceatposition
Unity 3D : Issue with addForce and Hinge Joint
Moving a Hinge Joint with add force, causes the object that is attached to lag behind. If i move the parent by hand there is no problem.
Any idea how to solve this? Below is the script i use to addForce
using UnityEngine;
using System.Collections;
public class ExampleClass : MonoBehaviour
{
public float thrust;
public Rigidbody rb;
public GameObject pushPoint;
void Start()
{
rb = GetComponent<Rigidbody>();
}
void FixedUpdate()
{
rb.AddForceAtPosition(transform.right * thrust, pushPoint.transform.position);
}
}
Comment
Your answer
Follow this Question
Related Questions
How to make a puch to open door 2D 0 Answers
Apply a force that is offset and rotated (diagrams included) 1 Answer
Wheelchair movement with hinge joint and rotation of controllers? 0 Answers
How do I make a Hinge joint move slowly? 2 Answers
How do you get the hinge joint working on all Axis? 3 Answers