Example #1
0
        private void CreateSingleBodyPointOnLineJoint()
        {
            JVector  anchor;
            Vector3D tempVector = ArrayExtensions.GetWithDefault <PropertyType, Vector3D>(Properties,
                                                                                          PropertyType.Anchor1);

            JitterDatatypesMapping.Convert(ref tempVector, out anchor);
            JVector lineDirection;

            tempVector = ArrayExtensions.GetWithDefault <PropertyType, Vector3D>(Properties,
                                                                                 PropertyType.LineDirection);
            JitterDatatypesMapping.Convert(ref tempVector, out lineDirection);
            Constraint = new global::Jitter.Dynamics.Constraints.SingleBody.PointOnLine(RigidBodyA,
                                                                                        anchor, lineDirection);
        }
Example #2
0
		private void CreateSingleBodyPointOnLineJoint()
		{
			JVector anchor;
			Vector3D tempVector = ArrayExtensions.GetWithDefault<PropertyType, Vector3D>(Properties,
				PropertyType.Anchor1);
			JitterDatatypesMapping.Convert(ref tempVector, out anchor);
			JVector lineDirection;
			tempVector = ArrayExtensions.GetWithDefault<PropertyType, Vector3D>(Properties,
				PropertyType.LineDirection);
			JitterDatatypesMapping.Convert(ref tempVector, out lineDirection);
			Constraint = new global::Jitter.Dynamics.Constraints.SingleBody.PointOnLine(RigidBodyA,
				anchor, lineDirection);
		}