https://linen.dev logo
Join Discord
Powered by
# lime
  • b

    bulky-insurance-39338

    05/10/2023, 10:22 PM
    also my "formula" lib is much faster as the hscript expressions!
  • b

    bulky-insurance-39338

    05/10/2023, 10:22 PM
    off-topic of WHAT ????
  • a

    able-action-74275

    05/10/2023, 10:22 PM
    limescript
  • a

    able-action-74275

    05/10/2023, 10:24 PM
    I only worry when it gets wild
  • a

    able-action-74275

    05/10/2023, 10:24 PM
    and it's starting to 🙂
  • b

    bulky-insurance-39338

    05/10/2023, 10:25 PM
    what is going wild .. that you break your code and talk together with others about
  • b

    bulky-insurance-39338

    05/10/2023, 10:25 PM
    coding
    ?
  • b

    bulky-insurance-39338

    05/10/2023, 10:25 PM
    or do you mean we should swith into the ->
    causual
    bar ?
  • a

    ambitious-knife-25690

    05/10/2023, 10:26 PM
    does semmi want to be blocked from lime as well? 😄
  • b

    bulky-insurance-39338

    05/10/2023, 10:26 PM
    yes -> DO
  • b

    bulky-insurance-39338

    05/10/2023, 10:26 PM
    -> BURN books ALSO
  • b

    bulky-insurance-39338

    05/10/2023, 10:26 PM
    🔥
  • a

    able-action-74275

    05/10/2023, 10:27 PM
    🙈
  • b

    bulky-insurance-39338

    05/10/2023, 10:28 PM
    NotBilly, i am still miss your
    code
    - sample for you last asset-
    commit
    here:
  • b

    bulky-insurance-39338

    05/10/2023, 10:29 PM
    (what is a new
    graphic-snipped
    without the
    code
    who is using it ?)
  • r

    rich-horse-51130

    05/11/2023, 5:14 AM
    Well im completing it
  • r

    rich-horse-51130

    05/11/2023, 5:15 AM
    To some degree at least
  • r

    rich-horse-51130

    05/11/2023, 5:15 AM
    I've made a whole lot of additions to it
  • r

    rich-horse-51130

    05/11/2023, 5:15 AM
    Getters and setters for example
  • r

    rich-horse-51130

    05/11/2023, 5:17 AM
    Or a protype of fully customizable flxstates and substates, which will probably go unused once I finish the softcoded class implementation
  • r

    rich-horse-51130

    05/11/2023, 5:18 AM
    Hell I made an entire sheet just for setting up inheritance
  • t

    tall-teacher-57409

    05/11/2023, 7:29 AM
    does anyone anyone have implementations of normalize and lookAt functions?
  • t

    tall-teacher-57409

    05/11/2023, 7:29 AM
    they don't exist in lime math
  • t

    tall-teacher-57409

    05/11/2023, 7:30 AM
    no wait its just the lookAt, I found the normalize
  • t

    tall-teacher-57409

    05/11/2023, 9:22 AM
    Copy code
    hx
    public static function lookAt(target:Vector3, position:Vector3, up:Vector3):Matrix4 {
        var forward:Vector3 = target.subtract(position).normalize();
        var right:Vector3 = up.cross(forward).normalize();
        var newUp:Vector3 = forward.cross(right).normalize();
        
        var lookAt:Matrix4 = new Matrix4();
        
        lookAt.set(right.x, newUp.x, -forward.x, 0,
                    right.y, newUp.y, -forward.y, 0,
                    right.z, newUp.z, -forward.z, 0,
                    -right.dot(position), -newUp.dot(position), forward.dot(position), 1);
        
        return lookAt;
    }
    does that look right?
  • t

    tall-teacher-57409

    05/11/2023, 10:56 AM
    ||@hallowed-ocean-84954 || (sorry for the ping), I looked into your rubiks cube repo, and fortunately found the lookat function, but I can't adjust it to lime instead of openfl 🥶
  • h

    hallowed-ocean-84954

    05/11/2023, 1:40 PM
    I haven't look into conversion of the matrices and vectors to lime yet but my guess would be that you'll need to use Vector4's in place of my Vector3D's. The problem is what then to do with w. Technically I think for a direction vector you can just set w to 0.0.
  • h

    hallowed-ocean-84954

    05/11/2023, 1:41 PM
    Actually there is a simpler way - the Matrix4 class has a method which takes the camera pos, up and at vectors directly. And all as Vector4's.
  • h

    hallowed-ocean-84954

    05/11/2023, 1:42 PM
    If I'm right pointAt should just be lookAt under another name.
  • h

    hallowed-ocean-84954

    05/11/2023, 1:42 PM
    @tall-teacher-57409 ^
1...127128129...138Latest