![]() |
|
SF Editor Bug + Plane intersection question - Printable Version +- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk) +-- Forum: Garry's Mod (https://teamscm.co.uk/forum-4.html) +--- Forum: Starfall (https://teamscm.co.uk/forum-7.html) +--- Thread: SF Editor Bug + Plane intersection question (/thread-1382.html) |
SF Editor Bug + Plane intersection question - SuperPlayer - 04-10-2015 Hello! I got a few problems with starfall again. First when i use the new day / night theme change it just changes the theme for half of the editor. What i mean by that I am changing the the theme from Monokai to Chrome the editors color changes to white but the field where i enter the code keeps the Monokai theme. Also i am trying to make a plane line intersect function for an emitter. But i keep getting this error:
The functions I am using:
Before that i wanted to use:
But this doesnt exists in SF so is there another function like that? RE: SF Editor Bug + Plane intersection question - TheOneAndOnlyTee - 05-10-2015 Super i'm going to release the function that garbius coded ported to work with Link's button functions soon RE: SF Editor Bug + Plane intersection question - SuperPlayer - 05-10-2015 (05-10-2015, 12:05 AM)T-17 Wrote: Super i'm going to release the function that garbius coded ported to work with Link's button functions soon Great! But i still would like to know what I am doing wrong in my code. You know... for learing and so RE: SF Editor Bug + Plane intersection question - TheOneAndOnlyTee - 05-10-2015 you've taken a different route since Garbius never used planeNormal() so i'm not sure if that'll work RE: SF Editor Bug + Plane intersection question - Person8880 - 05-10-2015 A "normal" refers to a normalised vector (i.e. a vector whose length is 1). You're passing in an Angle object instead, which is why it's failing. Your normal should be Angles:Up(). As for the theme issue, are you using the correct theme name? It has to be all lowercase, and spaces have to be _ instead, so in your case: "monokai" and "chrome". |