User Tools

Site Tools


collision_override

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
collision_override [2017/09/21 12:38] justincollision_override [2017/09/21 12:40] justin
Line 7: Line 7:
 Overriding the collision for a tile instructs the game to use the voxel coordinates of the overriding tile instead of its own when calculating the vertical position of the player as they walk across it. This is useful when a particular tile has bumps, ruts, holes, etc. that would normally result in a undesirable visual effect when the player crosses over it. Overriding the collision for a tile instructs the game to use the voxel coordinates of the overriding tile instead of its own when calculating the vertical position of the player as they walk across it. This is useful when a particular tile has bumps, ruts, holes, etc. that would normally result in a undesirable visual effect when the player crosses over it.
  
-In the example below, the tile with tall grass on the left does not have a collision override assigned, so the player pops up and down when walking across it. As for the tile with tall grass on the right, a completely flat tile was assigned as its collision override, so the player walks across smoothly. This feature can be used together with the different "terrain following" methods to achieve a variety of visual results. See [[Terrain Following]] for more information about each type that is available and examples of each.+In the example below, the tile with tall grass on the left does not have a collision override assigned, so the player pops up and down when walking across it. As for the tile with tall grass on the right, a completely flat tile was assigned as its collision override, so the player walks across it smoothly. This feature can be used together with the different "terrain following" methods to achieve a variety of visual results. See [[Terrain Following]] for more information about each type that is available and examples of each.
  
 {{:wiki:collision_override_example_01.gif?nolink|}} {{:wiki:collision_override_example_01.gif?nolink|}}
  
 =====Mouse Picking===== =====Mouse Picking=====
-Overriding a tile's collision also affects the boundaries of where the player is able to click in order to walk to that tile. This can be beneficial in cases where a tile's shape potentially makes it difficult to be easily clicked on with the cursor (for example, a narrow bridge or walkway) and you'd like to provide a larger clickable area.+Overriding a tile's collision also affects the boundaries of where the player is able to click in order to walk to that tile. This can be beneficial in cases where a tile's shape potentially makes it difficult to be clicked on with the cursor (for example, a narrow bridge or walkway) and you'd like to provide a larger clickable area.
  
 As shown in the example below, the wooden board on the left has a fairly small clickable area due to its narrowness. The wooden board on the right has been assigned a collision override of a full 16x16 tile, therefore the player will not have to be as precise when attempting to click on it. As shown in the example below, the wooden board on the left has a fairly small clickable area due to its narrowness. The wooden board on the right has been assigned a collision override of a full 16x16 tile, therefore the player will not have to be as precise when attempting to click on it.
collision_override.txt · Last modified: 2017/09/21 12:42 by justin