Thanks for such an indepth write up!
I'm going to have to find a note book like im in class lol
Will give this a proper read over weekend - when work code isnt in my brain trying to push out game code
Search found 75 matches
- Wed Oct 16, 2019 8:05 am
- Forum: Support and Development
- Topic: Shader variables - documentaiton and get the transformed vertext position
- Replies: 8
- Views: 6802
- Mon Oct 14, 2019 6:26 pm
- Forum: Support and Development
- Topic: body:getposition with multiple shapes
- Replies: 13
- Views: 10133
Re: body:getposition with multiple shapes
Im very very sorry, that all this time I had missed a rendering bug... I am so ashamed lol
Thank you both for looking into this !
Is it possible to delete a post........?
Thank you both for looking into this !
Is it possible to delete a post........?
- Mon Oct 14, 2019 6:20 pm
- Forum: Support and Development
- Topic: body:getposition with multiple shapes
- Replies: 13
- Views: 10133
Re: body:getposition with multiple shapes
oh no.......... youre kidding me........... i feel awful for wasting peoples time
let me double check this
let me double check this
- Sun Oct 13, 2019 10:41 pm
- Forum: Support and Development
- Topic: body:getposition with multiple shapes
- Replies: 13
- Views: 10133
Re: body:getposition with multiple shapes
Hey guys, ive added another demo. So I build 4 shapes: local shape = love.physics.newRectangleShape(0, -width, width, height) local fix = love.physics.newFixture(player, shape, 1) local shape = love.physics.newRectangleShape(8, -height, width/2, height/4) local fix = love.physics.newFixture(player, ...
- Sun Oct 13, 2019 10:23 pm
- Forum: Support and Development
- Topic: body:getposition with multiple shapes
- Replies: 13
- Views: 10133
Re: body:getposition with multiple shapes
I think it would be more strange if the body's position changed as you added fixtures to it, or if the order that you added them in mattered. What if you did that at runtime? All of a sudden all your calculations could be broken. The way it is now, it only does exactly what you tell it to. Maybe yo...
- Sun Oct 13, 2019 10:18 pm
- Forum: Support and Development
- Topic: body:getposition with multiple shapes
- Replies: 13
- Views: 10133
Re: body:getposition with multiple shapes
My understanding is that zell2002 started with a plain WxH rectangle for the player, and when he noticed issues when hitting seams (a frequent problem), he just tried to make the base rounded without altering the rest of the program. This meant the centre had to stay in the same place and everythin...
- Sun Oct 13, 2019 9:46 pm
- Forum: Support and Development
- Topic: Shader variables - documentaiton and get the transformed vertext position
- Replies: 8
- Views: 6802
Re: Shader variables - documentaiton and get the transformed vertext position
Thank you for that explanation! Makes a lot more sense. The transform_projectio variable passed in, that is a mat4, are you saying each item that you mention "It combines the transformation matrix that transforms LÖVE vertices according to the given scale, rotation, translation and shear" ...
- Fri Sep 27, 2019 5:42 pm
- Forum: Support and Development
- Topic: Shader variables - documentaiton and get the transformed vertext position
- Replies: 8
- Views: 6802
Re: Shader variables - documentaiton and get the transformed vertext position
Thanks for all that, I had no idea thats how it behaved. Its pretty neat being able to do: vec4 bar = vec4(0,1,0,1); vec2 foo = bar.xy; mat4 TransformProjectionMatrix The combined transform and projection matrices. Used as the transform_projection argument to the vertex shader position function. So ...
- Fri Sep 27, 2019 6:53 am
- Forum: Support and Development
- Topic: Shader variables - documentaiton and get the transformed vertext position
- Replies: 8
- Views: 6802
Re: Shader variables - documentaiton and get the transformed vertext position
Cheers for that. I did look over that wiki page before posting, as I said I'm unsure what the items are in mat4 list - as there's a possible 4 different objects in there?
Thanks for explaining the transformation, seems very obvious now,
Thanks for explaining the transformation, seems very obvious now,
- Thu Sep 26, 2019 6:54 pm
- Forum: Support and Development
- Topic: Shader variables - documentaiton and get the transformed vertext position
- Replies: 8
- Views: 6802
Shader variables - documentaiton and get the transformed vertext position
Hey guys, https://love2d.org/wiki/Shader_Variables From there, I don't fully get how to access the global variables. Are there any examples anywhere ? Also the variable types, there's no explicit write up? vec4 I assume has .x and .y, but I dont know what the 3rd and 4th are. I assume z and then.......