Skip to content

How to Use Colliders / Tips

What You Can Do with Colliders

In Vket Cloud, by combining various Unity colliders with VKC components, you can create the following functions and expressions:

  1. Basic environment construction: Creating walls and floors
  2. Display optimization: Occlusion function to omit processing of invisible parts
  3. Loading efficiency: Dynamic loading to load content only when needed
  4. Interaction: Detection of clicks, area entry/exit, in-view detection, etc.
  5. Physics: Movements such as falling and collisions

Collider Components

Vket Cloud SDK includes the following collider-related components:

Basic Component

VKC Node Collider - A basic component for representing colliders. By using it with Unity's BoxCollider, you can create collision-enabled nodes such as walls and floors. Various expressions are possible by combining it with other VKC components.

Components Used in Combination with the Basic Component

When these are attached in the Inspector view, VKC Node Collider is also automatically added

VKC Item Area Collider - Allows you to set actions triggered by player entry and exit to specific areas.

VKC Node Mesh Collider - By adding this in combination with Unity's Mesh Collider, you can create colliders that match the mesh shape.

VKC Node Cylinder Collider - Used when applying physics to Unity's CapsuleCollider. See Physics Engine for details.

Integrating Colliders with Actions

By combining colliders with actions, you can create a variety of mechanisms.
See Actions Category for details.

Integrating Colliders with Scripts

By utilizing HeliScript callback functions, you can create complex mechanisms that cannot be achieved with actions alone:

Practical Tips

Stair Collider Placement Technique

When placing colliders on stairs, using VKC Node Mesh Collider or Box Collider as is can cause movement jitter or require jumping on certain steps, creating stress for players. ColliderTips_Stair_1 ColliderTips_Stair_1_Result As a better solution, you can create stairs that players can climb smoothly by placing Box Colliders at an angle to create a slope. ColliderTips_Stair_2 ColliderTips_Stair_2_Result

How Player Collision Detection Works

Players have collision detection on the orange sphere shown in the image.
The orange sphere can be visualized with the following steps:
1. First, enable Debug Mode in VketCloudSettings / BasicSettings.
2. After building, it will be displayed by pressing the F3 key during gameplay.
ColliderTips_player_1