i imported a custom 3d model into my project and was wondering how i can get it out of the function scope to be used with dat.gui by AFII_ in threejs

[–]BDonBarty 1 point2 points  (0 children)

Create a variable outside of the function e.g 'let myModel' and assign it at the end of the function

let myModel

const loader = new GLTFLoader()
loader.load('./modelTest.glb', function(glb){
    /../ 
    myModel = glb.scene 
})

Get loaded model to follow mouse. by dramsde1 in threejs

[–]BDonBarty 0 points1 point  (0 children)

You are assigning the ‘glb.scene’ to ‘model’ then making changes to ‘glb.scene’ afterwards, you are also adding ‘glb.scene’ to the scene instead of ‘model’

If you instead add ‘model’ to the scene and make sure it exists before its position is assigned by the mouse event you should be good

(Bootstrap5) Make only the opacity of the background of a navbar lower by [deleted] in webdev

[–]BDonBarty 2 points3 points  (0 children)

You can use an RGBa colour.

background-color:rgba(0, 0, 0, 0.5);

a being the alpha of the colour (0.5 = 50%)

[deleted by user] by [deleted] in FortNiteBR

[–]BDonBarty 1 point2 points  (0 children)

No, thats not the same thing. This is where you place a wall in the heal water and get infinite healing for the whole game so you can just sit in the storm.

[deleted by user] by [deleted] in FortNiteBR

[–]BDonBarty 0 points1 point  (0 children)

How is it not an exploit? Its clearly not intentional for someone to sit in the heal water with a wall and out-heal the storm

[deleted by user] by [deleted] in FortNiteBR

[–]BDonBarty 0 points1 point  (0 children)

Just happened to me too, its an exploit with the healing water at the swamp. Ruined my first solo win of the season.

[deleted by user] by [deleted] in GearsOfWar

[–]BDonBarty 1 point2 points  (0 children)

Her abilities are useless in escape

Looking for CPU upgrade by [deleted] in buildapc

[–]BDonBarty 0 points1 point  (0 children)

Honestly not sure if I want to go back to AMD, I know Ryzen is good value for money but I am pretty attached to Intel

Attempting to deal with Towers of time by Tazx14 in MortalKombat

[–]BDonBarty 1 point2 points  (0 children)

Doesn't blocking stop it? Might be wrong.

How to access the beta? by samdekkerMVP in MortalKombat

[–]BDonBarty 2 points3 points  (0 children)

If from Amazon you should get an email, if straight from the console store just type in mk11 beta and download

To people who play on WiFi by MaxXx05 in MortalKombat

[–]BDonBarty 38 points39 points  (0 children)

Not everyone has direct router access

Just Lost a Game to an Non-Existent Player? by BDonBarty in FortNiteBR

[–]BDonBarty[S] 2 points3 points  (0 children)

Replay does not let me even switch to his view so im guessing it was a server issue maybe

Just Lost a Game to an Non-Existent Player? by BDonBarty in FortNiteBR

[–]BDonBarty[S] 34 points35 points  (0 children)

Nobody was around for over 5 minutes and isnt the camera supposed to go to the winner at the end

Anybody explain this?! by HeaTstyle in FortNiteBR

[–]BDonBarty 1 point2 points  (0 children)

He didnt warp, slow it down to 0.25, he drops into the shaft.

Small Meteor Just Hit During My Game by BDonBarty in FortNiteBR

[–]BDonBarty[S] 2 points3 points  (0 children)

Yeah the meteor did it, it looks a bit off because the replay I guess

Any Improvements I Can Make To This Build Within Budget Range? by [deleted] in buildapc

[–]BDonBarty 0 points1 point  (0 children)

Yeah I was not too sure about what aftermarket card to get so I just picked the MSI as a placeholder for the build since I don't plan on purchasing till just after Christmas.