Jump to content

How to distinguish between collidable and non-collisable objects in a map


lmtssaaaaaaaaaaaaa

Recommended Posts

I am a new bee, and I am learning how to parse a map. I would like to know which objects participate in collision detection and which do not.

According to my understanding, some distant objects should not necessarily have collision boxes, and removing unnecessary collision detection in the distance can reduce the pressure on the cpu. But when I parse the map, I can't find any flag to mark whether an object participates in collision detection.

 

In DSMapStudio, a similar property can be obtained, but the value of this array is 0 at all times.

```c#

// UnkStruct1

public uint[] CollisionMask { get; private set; }

```

 

Isn't collision related data stored here?

Hope to get some advice, thanks.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...