Informations
Jump to content

Lorem Ipsum...

Click to Dismiss this Notification
Ładowanie danych...

Recommended Posts

spacer.png

 

In gaming, collisions occur when two or more entities interact with each other over a brief span. While the term "collision" is often used in everyday language to describe situations where objects collide, in scientific terms, it pertains to interactions regardless of the force's intensity.

Here are a couple of examples considered as collisions:

  • An insect brushing its antenna against a leaf is a collision.
  • A cat gracefully walking through grass experiences collisions with each step, along with its fur touching the grass blades.

Code Implementation for Collision Management

Step 1: Updating Collision Detection

Open the file src/Client/Source/GameLib/ActorInstanceCollisionDetection.cpp and proceed with the following modifications:

1. Include Additional Headers

Locate the following line:

 
This is the hidden content, please

Directly beneath it, add:

 
This is the hidden content, please

2. Modify the Collision Test Function

Now, find the implementation of the function:

 
This is the hidden content, please

Insert the following code right below it:

 
This is the hidden content, please

Step 2: Adjust Locale Configuration

Next, open the file src/Client/Source/UserInterface/Locale_inc.h and make the following edits:

1. Locate the Costume System Definition

Find the line:

This is the hidden content, please

2. Add Collision Management Definitions

Now, append the following code immediately below it:

This is the hidden content, please

    

By implementing these changes, you will enhance your game's collision management, allowing selected characters or entities to pass through each other seamlessly. This functionality improves gameplay fluidity and can enhance the overall player experience.

Link to comment
Share on other sites


Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

spacer.png

Disable AdBlock
The popup will be closed in 5 seconds...