Questions tagged [objects]
A related set of properties (height, colour, level) and methods (pick up item, jump, attack) that are used to describe an entity in the game.
113 questions
1
vote
1
answer
107
views
Efficiently passing data to the GPU corresponding to a collection of objects
I am beginning to work on a physics system, where there are multiple objects in the world that get rendered. The current approach I am considering consists of pseudo-OOP in C where each object has ...
3
votes
2
answers
2k
views
In an object-oriented game engine, should there be seperate classes for objects with and without parents?
I am developing a game engine in C++ (for an idea of what kind of design I'm going for, think of ROBLOX, if you're familiar with that) and I need help with a problem I have.
So basically, the objects ...
0
votes
1
answer
700
views
Why does assigning an empty delegate to this Unity Event Action on construction make it work? (But it is dead/broken without it?)
I am learning about Actions/Events in Unity and just built a system around them which works. However, it seems I just got lucky and I'm not sure why.
Roughly, my class in a simple illustrative form (...
1
vote
0
answers
2k
views
Unreal Engine 4.26: How to serialize and load the array of custom UObjects (TArray<UObject*>) in C++?
I have a UProperty in struct which is a TArray<UCoverInfo*> where UCoverInfo is inherited from UObject:
...
-1
votes
1
answer
673
views
Create list of objects with a for loop pygame/python
Hi everyone I am trying to make a Mahjong Solitaire game using pygame.
I want to create a list of objects (the tiles of the game) using a for loop, but I can't manage to set a different type (the ...
0
votes
1
answer
111
views
Painter's theorem inside and outside test [closed]
I have read from Hearn and Baker computer graphics book. I read the test#2 painter's theorem which image is given below.
This image showing surface S is completely behind the surface S', by checking ...
1
vote
1
answer
146
views
Calculate coordinates of boundaries containing group of objects
I would like to understand how to calculate coordinates of boundaries group of objects as a parallelepiped in 3D game?
Let's say for simplicity we have spheres randomly slowly moving in 3d space some ...
0
votes
1
answer
165
views
How to deal with data that needs to be accessed by all objects?
I have a World class that currently only has one instance. It has data and methods that need to be accessed by all other game objects. Right now I'm hardcoding a ...
3
votes
2
answers
367
views
Given a base class and many derived classes with additional features, what's the best practice for accessing those features?
This might sound strange, but let me explain. Say I want to write a safari program.
In this safari there is an object pool of 10 animals (Animal*): 2 ostrich, 5 ...
0
votes
1
answer
85
views
Ideal way to instantiate abilities in a class give a dynamic list of abilities to use?
I have a PlayerClass class that is used to set my Player's class. For instance, this will make him a warrior:
PlayerClass warrior = new WarriorClass();
...
0
votes
1
answer
159
views
How to differentiate between object types and roles?
I have a base class Object, and depending on how the object must behave on the scene, I have multiple abstract "role" classes, that inherits virtually from ...
0
votes
0
answers
53
views
Efficient system to reach the "parent" variable
I've been stuck doing this in a very inefficient way and really want to know if there's some design pattern that solves this because it seems like a pretty common problem to have.
I have a system ...
0
votes
0
answers
22
views
Scrollable Text On Object
I want to put Scrollable Text On Object / Mesh.
I looked after it on YT but I did not find anything useful.
How could I do this?
1
vote
1
answer
185
views
Wonky perlin noise
I am quite new to the wondrous world of "Procedural Textures", and I am trying to create a double precission perlin noise algorithm.
I am almost done with it except for the fact that the coordinates ...
0
votes
2
answers
491
views
Querying game objects in real-time
I'm thinking about working on a game where I need to find all the objects matching certain properties.
For instances I might need to look up all the objects...
Producing gold.
Whose level is 5 or ...