ZioRed Posted May 28, 2010 Posted May 28, 2010 What is the correspondence of the C++ math operations among Vec3 objects on C#? This is an example taken from Gamelib (I am porting it to C# too): TVec3 force = Vec3(0.8f) * Vec3(GetBodyMass( pickedmodel )) * CalcBodyVelocity( pickedmodel, EntityPosition(handpivot) ); On C# I cannot multiply Vector3 objects. Do the operations on Vec3 mean the same operation applied to each item of the vector? Quote ?? FRANCESCO CROCETTI ?? http://skaredcreations.com
Canardia Posted May 28, 2010 Posted May 28, 2010 Those are standard LE operators, they are defined in mathlib.cpp. Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■
ZioRed Posted May 28, 2010 Author Posted May 28, 2010 Ok found, thanks, I will update the wrapper and add these operators too. Quote ?? FRANCESCO CROCETTI ?? http://skaredcreations.com
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.