Jump to content

Eric

Members
  • Posts

    30
  • Joined

  • Last visited

Profile Information

  • Location
    Altoona, Pennsylvania

Eric's Achievements

Newbie

Newbie (1/14)

2

Reputation

  1. Got it... Whew!! AddBodyTorque(Model,Vec3(0,CalcBodyOmega(Model,Vec3(0,Angle,0)).Y*10000,0),0);
  2. Ok once I have the Yaw Angle.. Which I Do... How do I use the AddBodyTorque and CalcBodyOmega to turn the Model only on the Y Axis to face the calculated Yaw Angle... Nothing I seem to Try Works float Angle=atan2(Position.X-PreviousPos.X,Position.Z-PreviousPos.Z) * 180 / PI; AddBodyTorque(Model,CalcBodyOmega(Model,Vec3(0,Angle,0))*ModelMass,0); This is my latest try...but I'm getting something wrong. Is this the right way to Apply Torque only on the Y axis? Thanks, Eric
  3. Yes I'm looking at those commands but what I can't figure out is what to put in the CalcbodyOmega Rotation field .... If I am applying a force and my Model starts to move, how do I know what information to enter in the rotation vector to make sure it points in the direction of movement? Thanks, Eric
  4. Does anyone have some insight on turning a model using the command AddBodyTorque to point in the direction the Model is moving. Thanks for any help, Eric
  5. Does anyone use Code Blocks... I moving from BlitzMAx to C++ I know big jump... I'm really like the Code Blocks IDE, but I can't seem to configure it for LeadWerks.. Probably because I'm such a noob. Can anyone help? Thanks, Eric
  6. Yeah I wonder how I missed that Command. Thanks
  7. I have a terrain and physics objects... It seems if I go off the edge of the terrain or go too high in elevation the physics objects freeze. Can I change this?
  8. How can I select and draw a portion of an Image. I have a 1024 x 1024 Image that consists of various buttons and display parts, Currently I use this code to Draw and Rotate an Image, but I am unsure how to select a section of my image to draw. Function DrawAndRotateImage(itr:TTexture, Ax:Int, Ay:Int, Sx:Int, Sy:Int, Ir:Float) glMatrixMode(GL_TEXTURE) glLoadIdentity() glTranslatef(0.5,0.5,0) glRotatef(Ir,0,0,1) glTranslatef(-0.5,-0.5,0) glMatrixMode(GL_MODELVIEW) glEnable itr.Target() itr.Bind() itr.Clamp(1,1,1) DrawRect(Ax,Ay,Sx,Sy) glDisable(GL_TEXTURE_2D) glMatrixMode(GL_TEXTURE) glLoadIdentity() glMatrixMode(GL_MODELVIEW) glScalef(1,1,1) End Function How can I add to this code to allow me to select a portion of the image. Thanks for any help. Eric
  9. Yeah, Actually I just downloaded Visual C++ 2010... Can't seem to get it set up properly though. But in any case, I can certainly convert it to Blitzmax. I do want to start to learn C++, It can't be that hard. Thanks for your offer. Eric
  10. I will work on this...Thanks for the Ideas. I have to admit I'm a novice so if there is code examples you can share.. please let me know @ Laurens Would you share your code?
  11. Can some one point me in the right direction to make a Laser Beam/Tractor beam effect... A glowing beam looking thing. Do coronas actually work.. What do I need to do? Because I can't seem to get them to show up. Do I have to use the Framework? "Create Framework" I don't use it. Any help on this effect would be greatly appreciated. Thanks in Advance. Eric
  12. If I create a Ball joint between two Bodies, The first body is a box with mass 1 sitting on the "Ground" I have another body that is moving past it and above it. When I create the joint how is it oriented in relation to the two Bodies? I assume the ends are at the parent and child but the Position of the "Pin" If I use Vec3(0,-1,0) Where does the pin get created? Is it local to the parent? I can't seem to get these things to work. Basically, I want the Child to kind of dangle below the Parent, allowed to swing . I hope I made sense. Any insight would be greatly appreciated. Thanks, Eric
  13. Macklebee, Perfect...Thanks for your help. Eric
  14. I work in BMax.. and I can't seem to get this to work. Function GetMeshModel:TEntity(entity:TEntity) While entity <> Null If GetEntityKey(entity, "class") = "Model" return entity End If entity=entity.parent Wend End Function
×
×
  • Create New...