Jump to content

conversion problem


cassius
 Share

Recommended Posts

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))

amd quad core 4 ghz / geforce 660 ti 2gb / win 10

Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++

Link to comment
Share on other sites

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.

amd quad core 4 ghz / geforce 660 ti 2gb / win 10

Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++

Link to comment
Share on other sites

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.

amd quad core 4 ghz / geforce 660 ti 2gb / win 10

Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...