Beispiel #1
0
		public static void ToODE( Quat value, out Ode.dQuaternion result )
		{
			result.X = value.X;
			result.Y = value.Y;
			result.Z = value.Z;
			result.W = value.W;
		}
Beispiel #2
0
		public static void ToODE( ref Mat3 value, out Ode.dMatrix3 result )
		{
			result.M00 = value.Item0.X;
			result.M01 = value.Item1.X;
			result.M02 = value.Item2.X;
			result.M03 = 0;
			result.M10 = value.Item0.Y;
			result.M11 = value.Item1.Y;
			result.M12 = value.Item2.Y;
			result.M13 = 0;
			result.M20 = value.Item0.Z;
			result.M21 = value.Item1.Z;
			result.M22 = value.Item2.Z;
			result.M23 = 0;
		}
Beispiel #3
0
		public static void ToNet( ref Ode.dVector3 value, out Vec3 result )
		{
			result = new Vec3( value.X, value.Y, value.Z );
		}
Beispiel #4
0
		public static Vec3 ToNet( Ode.dVector3 value )
		{
			return new Vec3( value.X, value.Y, value.Z );
		}