u/Ok-Presentation-94

Collation calorique

Salut, je cherche à augmenter mon apport calorique pour une prise de masse. Je mange clairement pas assez. Ayant un petit appétit, c'est vraiment très dur pour moi d'atteindre mon objectif calorique. Je suis donc ouvert à toutes propositions de collation calorique facile à manger. Il faut qu'elle soit toute prête, pas de cuisine ou très peu (il faut aussi que ca soit bon pour la santé cela va de soit pas des merde transformé)

reddit.com
u/Ok-Presentation-94 — 19 hours ago
▲ 0 r/unity

Rigidbody.position vs Rigidbody.MovePosition

Salut, si j’ai bien compris la différence entre transform.position et Rigidbody.position, il s’agit simplement du moment où transform.position est modifié dans le cycle (avant ou après la phase de physique).
En revanche, la différence entre Rigidbody.position et Rigidbody.MovePosition reste floue pour moi d’après la documentation Unity. Ils parlent de « prendre en compte l’interpolation », mais quelle interpolation exactement ? Auriez‑vous un exemple simple pour comprendre ?

Mon hypothèse :
on parle peut‑être de la façon dont les valeurs sont interpolées. Par exemple, avec Rigidbody.position, je passe directement de 0 à 1, 2, 3, etc., alors qu’avec Rigidbody.MovePosition, je passerais plutôt de 0 à 0.1, 0.2, 0.3, etc.
Est‑ce que c’est juste ?

reddit.com
u/Ok-Presentation-94 — 4 days ago
▲ 13 r/csharp

Using delegates in C#

Hi, here's an example of two code snippets: one with delegates, the other without.

I suppose this example is a bit too simplistic to really grasp the benefits of delegates, but I'd appreciate it if someone could clearly explain their advantages compared to a simpler method. I generally understand what they're for, but not really their practical application.

Following a suggestion in one of my previous posts, I'm sharing the code via GitHub instead of Google Drive.

Please feel free to give me feedback if I've handled this file sharing incorrectly (this is my first time using GitHub).

reddit.com
u/Ok-Presentation-94 — 4 days ago

Question from the curious

This is probably a strange question, considering object-oriented programming is usually suited for larger projects, but I was just curious to see if there are any low-level practical examples where highly experienced developers use object-oriented programming in assembly language. I imagine it must be incredibly complex; something as simple as inheritance must require advanced knowledge.

reddit.com
u/Ok-Presentation-94 — 7 days ago
▲ 2 r/csharp

The benefits of inheritance

Hi, I already posted about this yesterday, but I'm still having a little trouble understanding. So I made two examples here, one with inheritance and one without. Could you explain the advantage of each method in this example?

Thanks in advance for any help.

reddit.com
u/Ok-Presentation-94 — 8 days ago

Des connaisseurs en télécom (offre fibre FTTH)?

Salut, ma question est simple. Je connais les débits théoriques ventés par les opérateurs, mais j'aimerais savoir s'il existe un débit minimum réel garanti à partir duquel, si je descends en dessous et rien n'est fait de la part de l'opérateur, il s'agit d'un non-respect du contrat

reddit.com
u/Ok-Presentation-94 — 8 days ago
▲ 22 r/csharp

inheritance in C#

Hi, I understand the definition of inheritance, but I'm having trouble understanding its purpose. Since I can access the members of another class anyway, as long as they are public, even without inheriting from that class, I imagine it has another purpose, but I can't really find an explanation for it.

reddit.com
u/Ok-Presentation-94 — 9 days ago
▲ 23 r/csharp

IEnumerable en C#

Hi, I generally understand that `IEnumerable` is used to indicate that a class is iterable (it seems to me that only a class can inherit from it) and that `IEnumerator` is used for iterating, but there are still several points that confuse me. I came across this code in a tutorial, and I'm honestly having trouble understanding:
- the purpose of iterating via the class instance and not directly on the List (which already implements `IEnumerable`) (just a useless example in practice?)
- why the iteration is done on the instance, but the `GetEnumerator` is done on the List?
In short, everything still seems very unclear to me. Can someone shed some light on the actual role of `GetEnumerator`, what it's used on, etc.?

reddit.com
u/Ok-Presentation-94 — 9 days ago
▲ 0 r/csharp

variable with two identifiers

Hi, I came across a code example containing the following variable:

Vector3 identifier1, identifier2;

I've never seen a variable with two identifiers before!

- How does this work?

- Why have two identifiers?

reddit.com
u/Ok-Presentation-94 — 11 days ago
▲ 2 r/unity

variable with two identifiers

Hi, I came across a code example containing the following variables:

Vector3 identifier1, identifier2;

I've never seen a variable with two identifiers!

— How does this work?

— Why two identifiers?

reddit.com
u/Ok-Presentation-94 — 11 days ago

variable with two identifiers

Hi, I came across a code example containing the following variable:

Vector3 identifier1, identifier2;

I've never seen a variable with two identifiers before!

- How does this work?

- Why have two identifiers?

Edit: in C#

reddit.com
u/Ok-Presentation-94 — 11 days ago

variable with two identifiers

Hi, I came across a code example containing the following variable:

Vector3 identifier1, identifier2;

I've never seen a variable with two identifiers before!

- How does this work?

- Why have two identifiers?

reddit.com
u/Ok-Presentation-94 — 11 days ago

Difference between grid and pallet elements

Hi, the only differences I've noticed are that Palette is a prefab and Grid is a GameObject, and that Palette is essentially just a painting tool linked to my Grid.

Aside from that, they both have exactly the same components, and the same goes for their child Tilemap and Layer.

So I'm wondering:
- why is it necessary to keep both after making my changes?
- do the Palette prefab and its child serve only as tools to modify the appearance of the Grid GameObject?
- why was the Grid separated, and if so, how can it be modified?

reddit.com
u/Ok-Presentation-94 — 11 days ago

Difference between grid and pallet elements

Hi, the only differences I've noticed are that Palette is a prefab and Grid is a GameObject, and that Palette is essentially just a painting tool linked to my Grid.

Other than that, they have exactly the same components, and the same goes for their children, Tilemap and Layer.

So I'm wondering:

- Why is it necessary to keep both after making my changes?

- Are the Palette prefab and its child only used as tools to modify the appearance of the Grid GameObject?

- Why was the Grid separated, and if so, how can it be modified?

reddit.com
u/Ok-Presentation-94 — 11 days ago
▲ 1 r/unity

Difference between grid and pallet elements

Hi, the only differences I've noticed are that Palette is a prefab and Grid is a GameObject, and that Palette is essentially just a painting tool linked to my Grid.

Aside from that, they both have exactly the same components, and the same goes for their child Tilemap and Layer.

So I'm wondering:
- why is it necessary to keep both after making my changes?
- do the Palette prefab and its child serve only as tools to modify the appearance of the Grid GameObject?
- why was the Grid separated, and if so, how can it be modified?

reddit.com
u/Ok-Presentation-94 — 12 days ago

Pixel per unit consistency between parameter and actual output?

Hi, I was able to understand what pixels per unit represent: by default, a 1×1‑unit sprite has a pixels‑per‑unit value of 256. So in my case, with an orthographic camera with a size of 12.5, the final result is a size of 400×708 pixels. My question is therefore: how is the consistency handled between the actual output of my game in full‑screen 1920×1080 pixels and the 400×708‑pixel setting (who decides, how does the one who decides manage it, …)?

reddit.com
u/Ok-Presentation-94 — 13 days ago

Pixel per unit consistency between parameter and actual output?

Hi, I was able to understand what pixels per unit represent: by default, a 1×1‑unit sprite has a pixels‑per‑unit value of 256. So in my case, with an orthographic camera with a size of 12.5, the final result is a size of 400×708 pixels. My question is therefore: how is the consistency handled between the actual output of my game in full‑screen 1920×1080 pixels and the 400×708‑pixel setting (who decides, how does the one who decides manage it, …)?

reddit.com
u/Ok-Presentation-94 — 13 days ago
▲ 0 r/unity

Pixel per unit consistency between parameter and actual output?

>Hi, I was able to understand what pixels per unit represent: by default, a 1×1‑unit sprite has a pixels‑per‑unit value of 256. So in my case, with an orthographic camera with a size of 12.5, the final result is a size of 400×708 pixels. My question is therefore: how is the consistency handled between the actual output of my game in full‑screen 1920×1080 pixels and the 400×708‑pixel setting (who decides, how does the one who decides manage it, …)?

reddit.com
u/Ok-Presentation-94 — 13 days ago

Hi,
context: I’m trying to get a screen width expressed as a whole number on a 16:9 display. To do that, I need to find a compatible screen height.
Let’s imagine a height of 50 units: I then do 50 × 1.77 for a 16:9 ratio, and I end up with 88.5 units of width, which isn’t good.

My question: I learned that certain patterns repeat. For example, with 1.77, it’s always multiples of 100 that give me a whole number (100 × 1.77 = 177, 200 × 1.77 = 354, etc.).
With other examples: if a number like 33.7 gives me an integer when multiplied by 10, then 33.2 will give an integer every 5 (×5, ×10, ×15, etc.).

So my question is: what is this mathematical concept called, so I can research it further?

reddit.com
u/Ok-Presentation-94 — 15 days ago

Hi,
context: I’m trying to get a screen width expressed as a whole number on a 16:9 display. To do that, I need to find a compatible screen height.
Let’s imagine a height of 50 units: I then do 50 × 1.77 for a 16:9 ratio, and I end up with 88.5 units of width, which isn’t good.

My question: I learned that certain patterns repeat. For example, with 1.77, it’s always multiples of 100 that give me a whole number (100 × 1.77 = 177, 200 × 1.77 = 354, etc.).
With other examples: if a number like 33.7 gives me an integer when multiplied by 10, then 33.2 will give an integer every 5 (×5, ×10, ×15, etc.).

So my question is: what is this mathematical concept called, so I can research it further?

reddit.com
u/Ok-Presentation-94 — 15 days ago