• Post Your Current WIP V.3!: Tutorials, Tools and Model Packs Galore (GM13 googogogo)
    5,225 replies, posted
The "quaternions" most people use for their turrets is no different than using the traditional angForce methods (apart from using more ops) .
[QUOTE=unrezt;39452716]The "quaternions" most people use for their turrets is no different than using the traditional angForce methods (apart from using more ops) .[/QUOTE] I've never seen anyone using applyTorque and quats run into gimble lock. That's why I suggest quaternions, it seems like a good way to defeat it.
[code]quat(Ang) / quat(Entity) [b]is the same as[/b] TargetAng - CurrentAng [/code] They are exactly the same, "gimbal lock" (yet another myth perpetuated by people reading something and then passing it on without understanding it) and all. You are giving both Euler angles; converting to a fake quaternion is not going to magically solve the problems associated with them. Using either will result in yaw/roll flipping when pitch crosses 90. [code] Target = (Owner:pos() - Plate:pos()):toAngle() Torque = Plate:toLocalAxis(rotationVector(quat(Target)/quat(Plate))) Plate:applyTorque( (Torque*200 - Plate:angVelVector()*20)*Plate:inertia() ) [b]is functionally identical to[/b] Target = (Owner:pos() - Plate:pos()):toAngle() - Plate:angles() Plate:applyAngForce( (Target*200 - Plate:angVel()*20)*shiftL(ang(Plate:inertia())) )[/code] Another annoying thing is people using this to turn the wheels of a car. Incrementing an angle and setting the wheel angles to match it. If you ask how they are powering it they will say "quats" ... [b]no.[/b] Those "quats" are not doing anything that couldn't be achieved with normal subtraction.
[QUOTE=unrezt;39454528]"gimbal lock" (yet another myth perpetuated by people reading something and then passing it on without understanding it)[/QUOTE] I admit that I don't fully understand Quaternions, and quat(Ang) / quat(Entity) may be the same as TargetAng - CurrentAng. But you can't deny the existence of gimble lock. For whatever reason, it happens, and for me using quaternion division solves it. Therfore, I suggest it. However, my understanding is that there is a difference between finding the shortest distance between quat(TAng) and quat(Ang), and TAng and Ang. This is where Gimbal lock happens. When using Euler angles, the shortest distance between -180 and 180 (worst case) is no longer (-180) - (180). However, when dividing quaternions, you will always end up with the shortest rotation between the two quats. Due to the 4 dimensional nature of a Quaternion. (And that's where I get fuzzy) I would love to know more about the "black magic" (read: science) of quaternions. If you know any resources with explain Quaternions in relatively simple mathematical terms, please link me to it. Quaternions fascinate me. 4 Dimensional representation of an angle is an interesting idea isn't it? EDTI: Also, I just noticed the shiftL in your code. Can you explain how it helps to shift the vector components one to the left? I'm honestly curious.
MIM-23 'HAWK' surface to air missile (SAM) [video=youtube;9JcgRq7_X8E]http://www.youtube.com/watch?v=9JcgRq7_X8E&feature=youtu.be[/video] features accurate target leading and a separate targeting module that allows for linking multiple launching sites to one setup. Models are finished.
[QUOTE=Stalker260;39454766]MIM-23 'HAWK' surface to air missile (SAM) [/QUOTE] Nice job. Seems incredibly effective. Does it have a minimum range?
[QUOTE=Labrasones;39454660]stuff[/QUOTE] In this instance, TargetAng and quat(TargetAng) are both euler angles, it doesn't make one bit of difference. As for the shifting... it is because of the way angles work (in gmod at least?). [quote]This is because inertia() gives rotational momentum around the X,Y and Z axes in that order and PYR angles are rotation around the Y,Z and X axes in that order. [/quote] Its only needed when using inertia with angles, not necessary with vectors.
none of anything you guys said makes sense to me... I need to do some research.
Finished my bus for the bus race just in time for no judges to show up for my timeslot. Anyway, here are some pics. (For full profile images, [url]http://facepunch.com/showthread.php?t=1240675&p=39457526#post39457526[/url]) [t]http://cloud.steampowered.com/ugc/613882773172838167/1903C7902220857A8253A7ABBE65C8949EF11C91/[/t] [t]http://cloud.steampowered.com/ugc/613882773172832741/6BBB85E707D415DB77EFE37DB80DFF1C78763881/[/t] And some artsy ones (I felt like playing with SuperDOF) _________________ [t]http://cloud.steampowered.com/ugc/613882773172831749/58AD3826572398725E2BDED9D6117519FBE2305E/[/t] [t]http://cloud-2.steampowered.com/ugc/613882773172831062/F9F48DA70D49C11AE2E4B0A2A3DAB44DB7E5810A/[/t]
[QUOTE=Labrasones;39454817]Nice job. Seems incredibly effective. Does it have a minimum range?[/QUOTE] No, but the missile 'boosts' for about half a second without guidance before actually pursuing the target. So if the target is within half a second of reach near the sam site, the missile has to perform some weird, unrealistic actions to correct its course... so i'd say this somewhat counts as a minimum range. There are no range restrictions in the coding, though.
[video=youtube;8PnRWVEZwAc]http://www.youtube.com/watch?v=8PnRWVEZwAc&feature=youtube_gdata[/video] An all in 1 video of my planes.
Man, didn't even come close to finishing half my bus. Turns out my harddrive might have shit itself. Yay for not finishing anything again.
So... this is my favourite project as of yet, the all too famous AE86 Trueno. [t]https://dl.dropbox.com/u/9062018/Screenshots%20V2/gm_carconstruct_b1-80002.jpg[/t] [t]https://dl.dropbox.com/u/9062018/Screenshots%20V2/gm_carconstruct_b1-80003.jpg[/t] [t]https://dl.dropbox.com/u/9062018/Screenshots%20V2/gm_carconstruct_b1-80004.jpg[/t] [t]https://dl.dropbox.com/u/9062018/Screenshots%20V2/gm_carconstruct_b1-80005.jpg[/t] [t]https://dl.dropbox.com/u/9062018/Screenshots%20V2/gm_carconstruct_b1-80006.jpg[/t] Got a 1.5l I4, weighs around 1300kg, top speed of 90 kmph, functioning headlights, steering wheel and gear lever, and it's my best handeling car yet, so much fun to drive.
But does it drift?
[QUOTE=lintz;39465322]But does it drift?[/QUOTE] It's doable, but it takes a lot of effort. nothing wrong with the power, except that it isn't as fast as in the movie. This has some 100HP less than the one in the movie, but can still do a pretty good run.
[QUOTE=Unslinga;39464950]So... this is my favourite project as of yet, the all too famous AE86 Trueno. Pics Got a 1.5l I4, weighs around 1300kg, top speed of 90 kmph, functioning headlights, steering wheel and gear lever, and it's my best handeling car yet, so much fun to drive.[/QUOTE] Mine weighs around 940kg to match irl. For your reference: [IMG]http://cloud.steampowered.com/ugc/596994274602834689/95ABC93F4589F5B995F95244B680B6D12B861676/[/IMG][IMG]http://cloud-2.steampowered.com/ugc/596994274602837033/4C92650C66262228A943A402193EC0AB19D974D2/[/IMG]
[QUOTE=Unslinga;39464950]So... this is my favourite project as of yet, the all too famous AE86 Trueno. [t]https://dl.dropbox.com/u/9062018/Screenshots%20V2/gm_carconstruct_b1-80002.jpg[/t] [t]https://dl.dropbox.com/u/9062018/Screenshots%20V2/gm_carconstruct_b1-80003.jpg[/t] [t]https://dl.dropbox.com/u/9062018/Screenshots%20V2/gm_carconstruct_b1-80004.jpg[/t] [t]https://dl.dropbox.com/u/9062018/Screenshots%20V2/gm_carconstruct_b1-80005.jpg[/t] [t]https://dl.dropbox.com/u/9062018/Screenshots%20V2/gm_carconstruct_b1-80006.jpg[/t] Got a 1.5l I4, weighs around 1300kg, top speed of 90 kmph, functioning headlights, steering wheel and gear lever, and it's my best handeling car yet, so much fun to drive.[/QUOTE] Needs more RHD
[QUOTE=Jimmaye;39470101]Needs more RHD[/QUOTE] more like R&D
just gunna dump the latest [IMG]http://cloud-2.steampowered.com/ugc/1119411831373946518/4BACE24A398BB52015B5DFFA1349283E1C2C35A5/[/IMG] [IMG]http://cloud.steampowered.com/ugc/1119411831373945757/692BC71C36DC5969A3A1728F15D1A10A5634AB4C/[/IMG] [IMG]http://cloud-2.steampowered.com/ugc/1119411831373945020/5B1E06EDFBC0D46A5F437D14FF9996E37DD82733/[/IMG] if ur wondering what happened to the last one, i trashed it due to a weighting and misbalance issue. plus it didn't look as cool as this when i drew this out on paper.
I've been seeing some pretty accurate builds coming out lately, I gotta say you guys got some talent. I remember when I played Gmod I had a pain in the ass time making a lot of things.
finally got this shit to work in GM13, loads of thanks tweak for your work c: [t]http://cloud-2.steampowered.com/ugc/560965477570587016/2E9D096B8CAD4CD741815DF5191CABE4FC1A6D23/[/t] ebrbrbrbrbrbr [t]http://cloud.steampowered.com/ugc/560965477570589256/8D90F2FB911E5351B487887ADFE18D7015A428CF/[/t] totally ineffective vs armour but fun to dogfight with balloons, ammo weight change vs buoyancy pre-predicted using Excel so the e2 that controls everything only coughs out an op or two every now and again
Can I suggest a new competition, A big truck competition. Suggested rules: Minimum wheels: 6 Minimum Weight: 7500 ACF powered. Objectives: Looks (Best looking truck gets a point) Handeling (Fastest truck with & without load through a course) Towing load & Carrying load (Which can tow the most) Drag Race (with and without load) offroad course
Oh. What about a halftrack?
[QUOTE=lintz;39481414]Oh. What about a halftrack?[/QUOTE] That would be possible, as long as it looks like a half track it can count as 4 wheels. Pageking? Here's my MAZ 535 [t]https://dl.dropbox.com/u/9062018/Screenshots%20V2/gm_carconstruct_b1-80007.jpg[/t] [t]https://dl.dropbox.com/u/9062018/Screenshots%20V2/gm_carconstruct_b1-80008.jpg[/t] Buildt since my last post, legal to rules. Weight: 17T Engine: 21L V12 Diesel Can safely carry a 8T container, and can drag a 20T container. :3 [t]https://dl.dropbox.com/u/9062018/Screenshots%20V2/gm_carconstruct_b1-80009.jpg[/t] Trailer weighs 67T [QUOTE=JoeSkylynx;39481598]I've got a new competition. Advanced Mingebag You must find a contraption on GMod.org, and turn it into something compatible with ACF, but must continue with the genereal style of the original contraption.[/QUOTE] Really Joe? Dumbest idea ever.
I've got a new competition. Advanced Mingebag You must find a contraption on GMod.org, and turn it into something compatible with ACF, but must continue with the genereal style of the original contraption.
[QUOTE=JoeSkylynx;39481598]I've got a new competition. Advanced Mingebag You must find a contraption on GMod.org, and turn it into something compatible with ACF, but must continue with the genereal style of the original contraption.[/QUOTE] ACF powered Drunk Combine? I'm down.
I did expect more people for the bus race through. So many people who signed up didn't come!
Everyone builds cars and trucks. In an attempt to get more variety around here, why not have a competition for racing boats or something?
Has anyone ever made a boat that isn't powered by thrusters? I mean, I've made a paddleboat that moved with bouyant paddles but that moved at snail speed. The problem with boats is that because there isn't a way to power them besides thrusters or applyforce or whatever, it's quite easy to abuse the system.
[QUOTE=lintz;39482409]Has anyone ever made a boat that isn't powered by thrusters? I mean, I've made a paddleboat that moved with bouyant paddles but that moved at snail speed. The problem with boats is that because there isn't a way to power them besides thrusters or applyforce or whatever, it's quite easy to abuse the system.[/QUOTE] I think an acf + fin-propeller boat or submarine competition could be fun
Sorry, you need to Log In to post a reply to this thread.