ZioRed Posted May 28, 2010 Share 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 Link to comment Share on other sites More sharing options...
Canardia Posted May 28, 2010 Share 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 ■ Link to comment Share on other sites More sharing options...
ZioRed Posted May 28, 2010 Author Share Posted May 28, 2010 Ok found, thanks, I will update the wrapper and add these operators too. Quote ?? FRANCESCO CROCETTI ?? http://skaredcreations.com Link to comment Share on other sites More sharing options...
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.