SP3 feature Emitters.
-
Bodies now have a property called Emitter. If you check this property and fill in the Rate and Strength fields the body will expel a copy of itself along the axis of the object. Its sort of like a particle system.
Adjusting the lifetime will cause the object to be destroyed after a certain number of frames.
Both Rate and Strength can be formulas so you can connect them to keyboard and joystick inputs and this sample shows.
-
-
thats way too cool
the new sketchup game, shoot em up physics.
-
I'm dreaming... slap slap no I'm not COOL!!!
-
Oooooooooooohhh now that's awesome. Race ya to the first tank game!
-
@wacov said:
Oooooooooooohhh now that's awesome. Race ya to the first tank game!
...You have over a week of a head start on me I've already begun making a tank though, and will add emitters later.
%(#808080)[(Can't wait 'til BETA's out for mac )]
for those who want proper tank turning, input something like:(0.5-rightx)*1+(0.5-righty)*2
for right wheel motors and
(rightx-0.5)*1+(0.5-righty)*2
for left wheel motors.
Then you won't require any servos, and will be able to turn on the spot, like a real tank.
mini tank mockup, without treads or projectiles, just a motor example:
ROD2.skp
An improvement from my last example i posted for something else, this one has the *1 and *2 for multiples of the speed; which allows the wheels on the inside of the turn to go at half speed instead of none, so the tank doesn't slow down as much when turning.
(half speed is really full speed, and full speed is double; I think. I still don't even understand what I did myself too much...) -
^_^
Thank's for that code BTM, I've modified it for my tank. It's not exactly a 'game' yet, but it's getting there
-
Have a look at this. Realised that hidden/static objects will become normal when emitted, which opens up worlds of possibilities; this is a quick mock-up of a gun with muzzle flash and 'randomized' casing ejection. Just turn on hidden geometry to reveal the extremely simple workings beneath.
edit Sorry! Forgot to tell you; the 'A' button on the joypad fires the gun. editP.S. It's quite glitchy, as far as I can tell it's not my fault; sometimes things are emitted in the wrong direction/at the wrong speed
-
Sorry I've been late. The internal HD in my 24" iMac totally failed and replacing it is pretty major surgery. But it is cool to use suction cups to pull the glass cover away from the magnets.
Anyway, SP3 Beta for the Mac is in the final stages of testing. I haven't noticed any significant problems yet so I'll get it out soon and let the community help me find the problems (it is BETA after all).
Should have it posted sometime tomorrow.
Kevin
-
hello everybody I'm just here to announce that it is possible to emit complex objects: http://sketchup.google.com/3dwarehouse/details?mid=88137d070316af4a23e2dcf3d546456&prevstart=0 this model, made by me, is a car factory, and i think everyone shoulld take a look.
-
Pretty cool! No idea how you did it. Yet...
Advertisement