|
| |||||||
| Wiremod Challenges Official wiremod challenges are issued here. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #12 (permalink) |
| Advanced Member ![]() Join Date: May 2008
Posts: 136
![]() | I can't seem to get any kind of continuous shape following a moving player either, only keep redrawing it until he stands still to watch the lights. But I'll keep plugging away at it - see if I can't at least get it to rotate with the player and such. Edit: Can we also submit in the form of an Expression 2 code? Neither save nor dupe seems to be working with this one. Last edited by Magos Mechanicus; 10-13-2008 at 12:24 AM.. |
| | |
| | #14 (permalink) | |
| COMPLETE BLOODY BASTARD ![]() ![]() | Quote:
Also, I made a superellipse drawer, but I'm not sure if I have a dupe of it. I also graphed z=sinc(x*x + y*y). I think I may have a dupe of that.
__________________ “A designer knows he has achieved perfection not when there is nothing left to add, but when there is nothing left to take away.” —Antoine De Saint-Exupery | |
| | |
| | #15 (permalink) |
| Advanced Member ![]() Join Date: May 2008
Posts: 136
![]() | I know I saw you dupe it once, at least. Now that you're in I guess I don't have too much of a chance but anyways, here goes. Code: @name Holochallenge
@inputs Go Reset Player:entity Speed Mode A B C D E F
@outputs Relpos:vector Abspos:vector X Y Z AbsX AbsY AbsZ
@persist Starttime
if(Reset&~Reset){Starttime=curtime()}
if(Go){
if(!Mode){A=17.5,Speed=180}
if(Mode){D=round(D),E=(!round(E) ? 1 : round(E)),F=(!round(F) ? 1 : round(F))}
interval(80)
Passedtime=curtime()-Starttime
if(!Mode){X=A*(1+cos(Passedtime*Speed)),Y=A*sin(Passedtime*Speed),Z=2*A*sin(Passedtime*Speed/2)}
if(Mode){X=A*sin(Passedtime*D*Speed),Y=B*sin(Passedtime*E*Speed),Z=C*sin(Passedtime*F*Speed)}
Relpos=vec(X,Y,Z)
Abspos=Player:pos()+(36+Z)*Player:up()+(5+X)*Player:forward()+Y*Player:right()
AbsX=Abspos:x(),AbsY=Abspos:y(),AbsZ=Abspos:z()
}
Wiring is pretty straightforward. Make a Target Finder, let it target players. Wire the expression's Player input to the Target Finder's 1_Ent output. The rest go to buttons (Go/Reset/Mode) or freely fiddlable constant values (Speed/A-F, I recommend a Speed of around 10 for the curve generator.). Use an emitter with Grid and UseGPS=1, and wire the emitter's coordinate inputs to AbsX/AbsY/AbsZ as appropriate (the X/Y/Z give relative positions and can be used to preview the generated curve in a static position and rotation, for instance). Using the vectors still seems to give mainly errors. Last edited by Magos Mechanicus; 10-13-2008 at 06:30 AM.. |
| | |
| | #16 (permalink) | ||
| COMPLETE BLOODY BASTARD ![]() ![]() | Quote:
Quote:
And then I win. ![]() EDIT: ![]() Attached is the Expression2 code.
__________________ “A designer knows he has achieved perfection not when there is nothing left to add, but when there is nothing left to take away.” —Antoine De Saint-Exupery Last edited by AzraelUK; 10-13-2008 at 11:06 AM.. | ||
| | |
| | #17 (permalink) |
| Wire Guru ![]() Join Date: Apr 2008
Posts: 420
![]() | I actually made a hypotrochoid/spirograph or maybe it was epitrochoid, whatever small change in arithemtic, it looked pretty cool but the better designs took awhile to draw.
__________________ ![]() (\__/) Wiremod Chinoto's Tutorials and Tutoring (Go here for "in-person" tutoring) (='.'=) ABX Chinoto's Wire Tutorials (Text tutorials so far) (")_(")<- Put this bunny in your sig and help him to rule the world. (My first internet infection) |
| | |
| | #20 (permalink) |
| Wire Guru ![]() Join Date: Apr 2008
Posts: 420
![]() | Players move a lot, so you can't have something to complicated or else it wont ever be seen, thats why my idea was to make a spiral that follow the player.
__________________ ![]() (\__/) Wiremod Chinoto's Tutorials and Tutoring (Go here for "in-person" tutoring) (='.'=) ABX Chinoto's Wire Tutorials (Text tutorials so far) (")_(")<- Put this bunny in your sig and help him to rule the world. (My first internet infection) |
| | |
| Sponsored Links | |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
|