Awesomeness! This is really useful for a contraption I am working on. I was so sick of messing with the hydraulics and expression gates and stuff.
EDIT BY ANTICEPT:
Exitlights left this topic in place despite version 2.
http://www.wiremod.com/forum/wiremod...servo-2-a.html
I've been working on this damn thing for days now, but it's definitely worth it. It's not totally polished, but it gets the job done right now. I'm going to continue refining it, and add a world-angle option, rather than just changing angle relative to the prop it's attached to... but in the mean time, if anybody wants to improve upon my design, or just dick around with it while I make it pretty, here it is!
Couple things to note:Enjoy!
- Using Advanced Inputs on too many angles at once will cause the servo to go into gimbal lock at more extreme angles
- There are some wonky things going on with the constraint sometimes... just be aware that this is a beta of my servo, don't push it too hard
- I haven't really made a context menu, per se... I'll add a model choice eventually
- It should accept pretty wide angles, enough to completely swivel around 360 and then some
- Updating the angles too frequently (i.e. on the amount that the AdvInput updates) can bog it down a little bit--there's a lot of vector math going on in the background, I imagine
###############################
Update: Changed version to 1.6, read my other post to view fixes.
###############################
Last edited by Anticept; 12-21-2008 at 12:16 PM.
Awesomeness! This is really useful for a contraption I am working on. I was so sick of messing with the hydraulics and expression gates and stuff.
<div class='quotetop'>QUOTE(Infinity) <{POST_SNAPBACK}></div><div class='quotetop'>QUOTE(TAD2020) <{POST_SNAPBACK}></div>Wire igniter? I think it'll turn to hell...Would only require a heavenly modified wire stool to do this.
Yeah i have made one of these it works almost perfectly apart from it spazes when there is too much weight on it or if it is placed vertically insted of horizontally.
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Super Easy Wire Download
Mind if I take a look at your code? Maybe we can have them build off of one another to create a better one...Yeah i have made one of these it works almost perfectly apart from it spazes when there is too much weight on it or if it is placed vertically insted of horizontally.[/b]
ok if you give me a bit il post it. Mine is using the simple way of using SetAngles() on itself in the Think() function.
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Super Easy Wire Download
For fucks sake! Thank god you made it cause I was getting tired of the requests, good job.![]()
-----------------------------------------------
10% of forum members have a stupid 98%+ "if-you-don't-add-this-to-your-sig". If you are part of the population who don't do that and have a frontal lobe and use semi-accurate statistics, don't copy this into your sig![/sarcasm]
Just from messing around with this incarnation of my servo, I really don't advise using the advanced input at all... the frequency of the update is just too much for all the math going on and the instability of the ballsocket, undoubtably causing some rounding issues that cause it to eventually go nuts. The whole process is pretty expensive, I'd imagine, with a constraint being created and destroyed, and some under-the-hood quaternion math rotating the angle with each update.
I may change it so that it can be rotated only along one axis at a time (i.e. yaw), and make it so that it rotates along an axis joint instead of a balljoint. With the axis method, I've been able to reliably use the advanced input. Anybody have any thoughts on this?
aah now we see why mine is simpler. It already only does 1 axis and uses an axis joint. And you can set it with any componants output i think at least it works find with adv input and beacon sensors.
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Super Easy Wire Download
tomb332, is your servo similar to the axis tool in that you click one object and then another to place it or is it more like a wheel motor thingie where you have to choose a model for it. I hope it's the former![]()
Sorry its s wheel tool. The weird thing is the tool panels doesnt show properly so atm you can only choose car wheel.
Also its not an axis type joint because it relys on a SENT so i would have to make one of the 2 objects a SENt which is quite complex.
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Super Easy Wire Download
Bookmarks