3,813 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
Best practices
0
votes
0
replies
63
views
Design pattern for keeping two mutable object views in sync
I have been working on a game engine and have come upon a design that is challenging for me to implement. In particular, I need two mutable objects, that themselves contain mutable properties, to ...
Advice
1
vote
0
replies
53
views
How do I create APIs for training ML models to play games? (Reference request)
I'm interested in learning how to train machine learning models to play video games. I would love to see general references (books and papers) on how to do this; I see lots of papers on the model ...
Advice
1
vote
2
replies
234
views
How do I create a raycast in C++ for a game
I have been making a 3D game from scratch using opengl and C++ and I want to know how I can make a ray casting class in C++ for my game where I can call it when ever I need to, to check for things ...
Advice
0
votes
7
replies
226
views
How to make a GUI library in C++
I have wanted to make a GUI library so that I can use it in my own video game that I am making and maybe in the future have it be used for other things like software. I wanted to ask where to start ...
Advice
1
vote
0
replies
82
views
Text-to-Speech function in a 3D Unity game
I am doing a 3D game using a Unity, and I need my NPC can communicate with the players with voice
I want my NPC can speak with a voice that response is generated by the LLM, so the response will ...
1
vote
0
answers
65
views
Issue on drawing object on top of moving platform
I'm developing a 2D game and I ran into a problem implementing the logic for a movable platform. These are the ones where the player stands on top of the platform, and the platforms move, and the ...
2
votes
1
answer
87
views
Transformations Involved in Gribb & Hartmann Frustum Construction
I'm currently working on implementing a Gribb & Hartmann Frustum Construction algorithm into my 3D game engine for frustum culling, but I find I need more clarification on the transformations ...
0
votes
1
answer
169
views
How to get actual size of box collider?
i've tried this to get the x box collider size and its work
gameObject.GetComponent<BoxCollider>().size.x
but how to get the actual size of the object like what we see. why my inspector said ...
0
votes
1
answer
94
views
How to create a bullet regeneration bar in python/ursina engine?
I want to make a bar that shows a variable like bullet regeneration time. I know that to do this I need to change the scale parameter given to Entities.
But when I tried to change the scale parameter, ...
0
votes
0
answers
115
views
How to implement a javafx GameLoop
The only way i found is by using a timeline, which relies on KeyFrames, but the only way i managed to do something like this is by making a single KeyFrame in loop
this is the solution i've found:
...
1
vote
0
answers
50
views
My ambient occlusion does not work for my voxel game
I am trying to make an ambient occlusion shader for my Minecraft-like voxel game. I followed an online article by 0fps, but the ambient occlusion has a weird look to it that I am not sure how to fix ...
0
votes
1
answer
73
views
Reading Incorrect Data with C# (Custom PAK File)
I am trying to write my own game engine. I packaged the files such as assets of the games so that the engine can read them faster and easier. However, I encountered a problem. I could not find the ...
2
votes
2
answers
86
views
Multiple frame animation in HTML canvas
I've been trying to find an answer for a while but most searches return results for animating shapes not frame animation. Given a canvas with a 2d context to which I draw sprites with drawImage, what'...
0
votes
0
answers
106
views
NavMesh.SamplePosition doesn't return the closest point on the navmesh to the target?
I have a simple scene like this:
plane position: (0, 0, 0)
cube position: (0, 8, 0)
cube (1) position: (0, 8, 3)
And I attach the following mono script to the cube (1), and set the radius as 10
using ...
0
votes
0
answers
50
views
how to use PxD6JointCreate to create a joint, then connect a rigid body with a position in world frame
how to use PxD6JointCreate to create a joint, then connect a rigid body with a position in world frame? (this position can be changed every frame, because I want this joint to control actor position)
...