Jump to content

holschuh

Members
  • Posts

    70
  • Joined

  • Last visited

Posts posted by holschuh

  1. Hi,

     

    thx i think there is no short trick to get my which.. i miss the time:getcurrent somewhere and i think if(badguy.frame <(=) badguy.animlength) and the +0.3 stops animation in some cases before the last Animation frame. My try in lua is nearly the same..so i blow my code to get it more robust for different animation length/speet..

     

    cu

    Volker

  2. Hi,

     

    make an hidden helper sphere at cannon pos and point it to the target then get y-rotation from this helper sphere and put it to the cannon (maybe add 180 to flip)

    tryed quick code down there but not tested carefull to free the helper...

     

    helper = Model:Sphere()

    helper:Hide()

    helper:SetColor(0.0,1.0,1.0)

    helper:SetPosition(self.entity:GetPosition(true),true)

    helper:Point(self.target, 1, Time:GetSpeed() * self.rotSpeed)

    self.entity:SetRotation(self.entity:GetRotation(true).x,self.helper:GetRotation(true).y+180 ,entity:GetRotation(true).z,true)

     

     

    cu

    Volker

  3. Hi,

     

    Is there a way to remove physic forces completely?

    If i temporarely set collission to None for cinematic Animation and later put it back for further physics the old physic forces also come back.

     

    if window:MouseDown(Key.LButton) then
    self.state="ball"
    self.childv = self.entity:FindChild("Daumen R") entitydb.kuerbis:SetMass(0)
    entitydb.kuerbis:SetCollisionType(Collision.None)
    entitydb.kuerbis:SetParent(self.childv,false)
    entitydb.kuerbis:SetPosition(self.childv:GetPosition(true).x-0.1,self.childv:GetPosition(true).y+0.4,self.childv:GetPosition(true).z,true)
    else
    self.state="normal"
    entitydb.kuerbis:SetParent(nil)
    entitydb.kuerbis:SetMass(0.01)
    entitydb.kuerbis:SetCollisionType(Collision.Prop)
    end
    

     

    cu

    Volker

  4. learn one language for the Basic concept. all other languages are the "same"

    best to learn is one language you become good error Messages helping you to find your fault

    80% faults are mistakes in writinglaugh.png

    copy paste is your friend -for LE just steal from the Api Reference and adapt the code.

     

    i startet in the 80s with blink.png

     

    10 Print "Hello"

    20 Goto 10

    RUN

×
×
  • Create New...