clxs
clxs
CC#
Created by Dan on 11/9/2024 in #help
WPF System.IO.IOException: Cannot locate resource 'mainwindow.xaml'.
Hmm not sure then without being able to dive in more, you will get better answers asking in #gui
10 replies
CC#
Created by Dan on 11/9/2024 in #help
WPF System.IO.IOException: Cannot locate resource 'mainwindow.xaml'.
If you right click and properties on MainWindow.xaml, is the ItemType "Page"?
10 replies
CC#
Created by DevLop games on 8/17/2024 in #help
Stride keeps freezing
Used to but it's been a while, so no idea
4 replies
CC#
Created by Kinda Ducky on 2/21/2024 in #help
SpawnEnemy lore (scope and what not)
That's right yep
19 replies
CC#
Created by Kinda Ducky on 2/21/2024 in #help
SpawnEnemy lore (scope and what not)
That one also returns a value between 0 and the value you gave it (exclusively, meaning 2)
19 replies
CC#
Created by Kinda Ducky on 2/21/2024 in #help
SpawnEnemy lore (scope and what not)
19 replies
CC#
Created by Kinda Ducky on 2/21/2024 in #help
SpawnEnemy lore (scope and what not)
One thing to look at is this line int level = ed.Next(0, 3); Look at the docs for how Random.Next works https://learn.microsoft.com/en-us/dotnet/api/system.random.next?view=net-8.0#system-random-next(system-int32-system-int32) That'll be returning a value between 0 and 2, is that what you'd expected?
19 replies
CC#
Created by Ryerson on 5/24/2023 in #help
❔ help please
Where baseForwardVector is whatever direction is "forwards" for a non translated square
20 replies
CC#
Created by Ryerson on 5/24/2023 in #help
❔ help please
The forward vector for this car, the direction you need to move in is then forwardVector = baseForwardVector * square.Transform
20 replies
CC#
Created by Ryerson on 5/24/2023 in #help
❔ help please
Say your square is 10x10 and is at 6,6 square.Transform = Matrix.Translate2D(-(3 + 5), - (3 + 5)) * Matrix.Rotate2D(30_deg) * Matrix.Translate2D((3 + 5), (3 + 5)) Exact methods you need to use depend what you're doing it in
20 replies
CC#
Created by Ryerson on 5/24/2023 in #help
❔ help please
Translate so the centre point of the square is at 0,0, rotate, translate back
20 replies
CC#
Created by Cerius on 5/15/2023 in #help
❔ It don't work I'm a Unity beginner.
What error does it give
37 replies
CC#
Created by Cerius on 5/15/2023 in #help
❔ It don't work I'm a Unity beginner.
That might be the editor simplifying it, but .rotation is a Quaternion instead of an eulerian rotaiton
37 replies
CC#
Created by Cerius on 5/15/2023 in #help
❔ It don't work I'm a Unity beginner.
So rotation = rotation * quat; will give you a rotation that's the result of rotation + quaternion
37 replies
CC#
Created by Cerius on 5/15/2023 in #help
❔ It don't work I'm a Unity beginner.
And just like matricies, you multiply them to combine multiple of these "orders"
37 replies
CC#
Created by Cerius on 5/15/2023 in #help
❔ It don't work I'm a Unity beginner.
They're much closer to a Matrix representing the transform of a point
37 replies
CC#
Created by Cerius on 5/15/2023 in #help
❔ It don't work I'm a Unity beginner.
Quaternions don't represent a rotation in the way you're picture, a set of Eulerian rotations you're thinking of
37 replies
CC#
Created by Cerius on 5/15/2023 in #help
❔ It don't work I'm a Unity beginner.
You dont add quaternions, you multiply them
37 replies