Answers for "converting javascript to c#" The latest answers for the question "converting javascript to c#" Answer by clunk47 You need to use a temp variable for the joint, as well as its motor property. using UnityEngine; using System.Collections; public class Example : MonoBehaviour { HingeJoint joint; float motorforce1 = 5.0f; JointMotor motor; void Awake() { joint = GetComponent<HingeJoint>(); motor = joint.motor; motor.force = motorforce1; } } Sat, 21 Sep 2013 17:59:08 GMT clunk47