Jump to content

Andy Gilbert

Members
  • Posts

    533
  • Joined

  • Last visited

Posts posted by Andy Gilbert

  1. Hi rick, that would really appreciated. I dont mind a limit, I'm happy with just 1 working. :) if there is anything I can do to help then let me know.

    Thanks rick, keep me updated on how u get on.

     

    And thanks gamecreator for making your code available.

     

    Andy.

  2. Ahh thanks Rick, ok ill have a look. I dont quite understand how to "port" to lua else i would do it, ive tried looking into it but struggled to find out good info about doing so or even how i go about making extensions for lua?

     

    Any good resources on this?

     

    Thanks

    Andy

  3. Hi, just wondering if anyone has managed to get the lua joystick module to work?

     

    Ive downloaded but just receive the Joystick 0 Not found => EXITnotification despite having a PC gamepad plugged in a working.

     

    I find it so fustrating theres no way of having a joystick working with lua??

     

    Thanks

    Andy

  4. Hi, im trying to have part of my model controllable somehow so i can rotate it via lua.

     

    Ive tried having a bone attacthed but not had much lucjk, so i looked over some default models and noticed the Monster trucks wheels have there own "mesh" keys??

     

    How can i do this, i have many "groups" within the model but when i save it out of UU3D to GMF it all becomes one static mesh?

     

    Thanks

    Andy

  5. Hi, ok i dont use unity but whilst researching more into drag and angular drag online i found that unity has these two properties built in as standard into its physics engine which confuses me because.

     

    Everywhere i look into calculating drag i come accross the standard equation: D = Cd * A * .5 * r * V^2 where you need to know, air density, a drag coefient & area of body. Yet it looks like in unity you can add an object and apply angular and motion drag without any of the above properties being inputted, so how can it be done?

     

    I ask because i want to do the same in leadwerks, i want to add some simple drag to my bodys both angular and velocity without having to touch air density or coeffienents.

     

    Update: found this on their forum (i didnt realise unity used phyx)

    dragForceMagnitude = velocity.magnitude ^ 2 * drag; // The variable 
    dragForceVector = dragForceMagnitude * -velocity.normalized

     

     

    Thanks

    Andy

  6. Hi, just wondering how i add to asset store?

     

    Its a free item, ive tried the "upload file" way, filled everything out, but everytime it just shows "There was an error attempting to upload the file. Please contact an administrator ".

     

    Its a Zip file.

     

    Thanks

    Andy

  7. Not sure what im doing wrong here?

     

    This code below doesnt work but ALSO doesnt error:

    local pick=CameraPick(fw.main.camera,Vec3(MouseX(),MouseY(),30.0),0,0) 
                   if pick then 
                         object.cameraPivot:SetPosition(Vec3(pick.x,0,pick.z))
                         self.model:Point(object.cameraPivot,1,1) 
    end
    

    if i change the CameraPick Z value (above is 30) to anything below 30 it errors (Index for object is not valid field or method)

     

    anything below doesnt error but also doesnt work?

     

    Anyknow know why? This is used within the script of the object im trying to use.

     

    Thanks

    Andy

  8. Thanks paul.

     

    Looking at that though i feel i might run into trouble, there looks to be some direct opengl commands in there?

     

    can that be called from lua?

     

    glReadPixels(MouseX(), GraphicsHeight() - MouseY(), 1, 1, GL_DEPTH_COMPONENT, GL_FLOAT, Varptr(depth))
    

     

    thanks

    Andy

  9. Hi, im trying to get the mouse 3d position? Like the Z (but not the mosue wheel!) when i once programmed in openGL i used this feature for a level editor for example.

     

    how can i get the mouse position in 3D coords?

     

    Thanks

    Andy

×
×
  • Create New...