cassius Posted October 26, 2012 Posted October 26, 2012 The following line of code works fine in Bmax version of my program but not in the c language version. Can someone show me how to express it in c? Thanks RotateEntity (jane.model,Vec3(0,camrotation.y,camrotation.z)) Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++
ChrisMAN Posted October 26, 2012 Posted October 26, 2012 I am pretty sure thats what I use. Is there an error? Quote
cassius Posted October 26, 2012 Author Posted October 26, 2012 The error message is : struct le TVec3 has no member named "y" Heres the relevent code TVec3 playerpos=EntityPosition(player); TVec3 camerapos=EntityPosition(cam); camerapos.Y=Curve(playerpos.Y+ 1.75,camerapos.Y,2.0); camerapos=Vec3(playerpos.X,camerapos.Y,playerpos.Z); camerapos=Vec3(playerpos.X,camerapos.Y,playerpos.Z); PositionEntity(cam,camerapos); MoveEntity(cam,Vec3(0.3,0,-3.3)); PositionEntity(jane.model,(playerpos)); MoveEntity(jane.model,Vec3(0,1.3,0)); //RotateEntity(jane.model,camrotation); RotateEntity (jane.model,Vec3(0,camrotation.y,camrotation.z)) ; The line I commented out works but its not what I want. Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++
Rick Posted October 26, 2012 Posted October 26, 2012 Is BMax not case sensitive? C is so .y isn't the same as .Y. Quote
cassius Posted October 26, 2012 Author Posted October 26, 2012 Your right Rick that was the problem. Its also solved the problem of the flickering animation.I am always forgetting the case sensitive thing. Its probably a mistake to do 2 versions of my game as I keep getting corrupted with the syntax differences. Thanks again. Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++
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.