Slastraf 201 Posted April 17, 2021 Share 42 minutes ago, Marcousik said: Mm..So it would run through a tree, wouldn't it? I encountered that problem by trying to write an own player controller You can avoid them by setting nav mesh obstacle on the tree. Right now it would place foot behind and in front of the tree. Theres a few ms where the leg is inside the tree but not so bad. You can animate tree moving so it looks good Quote Link to comment Share on other sites More sharing options...
Marcousik 367 Posted April 17, 2021 Share Mm..So it would run through a tree, wouldn't it? I encountered that problem by trying to write an own player controller Quote Link to comment Share on other sites More sharing options...
Slastraf 201 Posted April 17, 2021 Share Just now, Marcousik said: Ok... I just wonder how it manages collisions without mass... It has no collisions. It puts it foot where there is any surface. Quote Link to comment Share on other sites More sharing options...
Marcousik 367 Posted April 17, 2021 Share On 4/15/2021 at 10:52 PM, Slastraf said: They don't have mass. Ok... I just wonder how it manages collisions without mass... 1 Quote Link to comment Share on other sites More sharing options...
Josh 15,452 Posted April 16, 2021 Share If you can do this with a spider leg you can probably do it with any character walking around. Quote Link to comment Share on other sites More sharing options...
Slastraf 201 Posted April 15, 2021 Share 14 minutes ago, Marcousik said: Ok ^^ Then I will one day try it with joints, could be funny too. But how did you manage the physics?? Do the legs have a Mass ? They don't have mass. Their rotation is calculated every Physics Update. I used an inverted square function (as height) to simulate taking a step . Quote Link to comment Share on other sites More sharing options...
Marcousik 367 Posted April 15, 2021 Share Ok ^^ Then I will one day try it with joints, could be funny too. But how did you manage the physics?? Do the legs have a Mass ? Quote Link to comment Share on other sites More sharing options...
Slastraf 201 Posted April 15, 2021 Share Just now, Marcousik said: I had the idea to make something like that too ^^ Is this built with joints ? Can the machine go faster? It is entirely procedurally animated with SetRotation(), no joints. It can walk infinitely fast if you want. You can specify foot height / stepsize / footsteptime among other things. But if you use bones instead of just models then the whole thing gets a lot more complicated so I try to rewrite it to use SetQuaternion instead. Might take a day or two until I put up a script. Quote Link to comment Share on other sites More sharing options...
Marcousik 367 Posted April 15, 2021 Share I had the idea to make something like that too ^^ Is this built with joints ? Can the machine go faster? Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.