Difference between revisions of "Collision Painting"

From Wolfire Games Wiki
Jump to: navigation, search
(Configuration: Added description of colors, added some colors.)
(Overview: Edited Phrasing; Confirmed TODO: What about NPC's Configuration: renamed section to "Labels"; added and confirmed some colors; Confirmed TODO: Are default colors based on triangles steepness?)
Line 1: Line 1:
The Collision Paint tool is used to set an object ('''TODO: Terrain?''') trangle's behaviour upon impact with the player. '''TODO: What about NPCs?'''
+
The Collision Paint tool is used to ''"label"'' an object- ('''TODO: ..and Terrain?''') trangle, which will change the effect it has on the player character or NPC that collides with it.
  
 
==How To Use==
 
==How To Use==
Line 16: Line 16:
 
* When pressing ''Save'', an error will appear. '''TODO: Does this really not work?'''
 
* When pressing ''Save'', an error will appear. '''TODO: Does this really not work?'''
  
==Configuration==
+
==Labels==
The parameter checked in the lower box will be applied to the triangles by painting. The triangle will indicate it's parameter with a specific color when ''View Collision'' is checked.  
+
The label checked in the lower box will be applied to the triangles by painting. The triangle will indicate it's parameter with a specific color when ''View Collision'' is checked.  
Each label's color is written between parentheses below. '''TODO: add a meaningfull way to see the colors. maybe like this <span style="background-color:Green; height:20px; width:20px; display:inline-block;"></span>?'''
+
Each label's color is written between parentheses below. '''TODO: add a better way to see the colors. maybe like this <span style="background-color:Green; height:20px; width:20px; display:inline-block;"></span>?'''
 
===Floor===
 
===Floor===
'''TODO: add and confirm the effects & colors'''
+
'''TODO: add and confirm the effects'''
 
* '''Walkable:''' (Green)
 
* '''Walkable:''' (Green)
* '''Balance:''' ()
+
* '''Balance:''' (Light-Green)
* '''Slide:''' ()
+
* '''Slide:''' (Cyan)
  
 
===Wall===
 
===Wall===
'''TODO: add and confirm the effects & colors'''
+
'''TODO: add and confirm the effects'''
* '''Wallrun:''' () Allows wall running on those triangles if they're steep enough.
+
* '''Wallrun:''' (Red) Allows wall running on those triangles if they're steep enough.
* '''No wallrun:''' () Won't allow wall running on those triangles.
+
* '''No wallrun:''' (Orange) Won't allow wall running on those triangles.
* '''Ledge:''' (yellow)
+
* '''Ledge:''' (Pink)
 
* '''Ragdoll:''' (Blue) Character will ragdoll.
 
* '''Ragdoll:''' (Blue) Character will ragdoll.
 
* '''Ragdoll-death:''' (Blue) Character will die.
 
* '''Ragdoll-death:''' (Blue) Character will die.
Line 35: Line 35:
 
===Ceiling===
 
===Ceiling===
 
'''TODO: add and confirm the effects & colors'''
 
'''TODO: add and confirm the effects & colors'''
* '''Ceiling:''' (Green)
+
* '''Ceiling:''' (Blue)
 
===Unlabled===
 
===Unlabled===
'''TODO: Confirm the effects & colors'''
+
'''TODO: Confirm the effects'''
* '''Clear:''' (No color) Will reset to the default collision behaviour. The color of the triangles will be desaturated. '''TODO:Is the default collision set according to the triangle's steepness? Are the Desaturated colors really just the indication for default collision?'''
+
* '''Clear:''' (No color) Will reset to the default collision behaviour which is based on he triangles nnormal. The color of the triangles will be desaturated. '''TODO: Are the desaturated colors really just the indication for default collision?'''
  
 
* '''No climb:''' (Grey) Will make the character walk slower on steep triangles. Will redirect rolls to the slope's direction. Will make the character run downwards automatically if the slope's too steep. Will make the character Run downwards faster. '''TODO:Phrasing.''' '''TODO: Is that it?'''
 
* '''No climb:''' (Grey) Will make the character walk slower on steep triangles. Will redirect rolls to the slope's direction. Will make the character run downwards automatically if the slope's too steep. Will make the character Run downwards faster. '''TODO:Phrasing.''' '''TODO: Is that it?'''
** To paint the 'no-climp' collision to all unlabled triangles, click ''Apply 'no climb' to all unlabled surfaces''
+
** To paint the 'no-climp' label to all unlabled triangles, click ''Apply 'no climb' to all unlabled surfaces''

Revision as of 14:29, 7 March 2018

The Collision Paint tool is used to "label" an object- (TODO: ..and Terrain?) trangle, which will change the effect it has on the player character or NPC that collides with it.

How To Use

Collision Paint window
Collision Paint window

The Collision Paint window can be accessed in Edit Mode by navigating in the menu bar to Windows -> Collision Paint.

  • View the collision by checking View Collision
  • To paint whatever the cursor hovers over press B
  • To paint the whole object check Per-object
  • To paint per-triangle check per-triangle
    • To only paint the hovered triangle check Don't Spread
    • To paint the hovered triangle and adjacent triangles with the same orientation check Spread across flat surfaces
    • To spread to Triangles with similar orientation on the same object check Spread across similar normals
      • To set the range, move the slider to a value (between -1 & 1) TODO: How exactly does this work? why negative values?
  • To load press Load. Does nothing. TODO: Does it really do nothing?
  • When pressing Save, an error will appear. TODO: Does this really not work?

Labels

The label checked in the lower box will be applied to the triangles by painting. The triangle will indicate it's parameter with a specific color when View Collision is checked. Each label's color is written between parentheses below. TODO: add a better way to see the colors. maybe like this ?

Floor

TODO: add and confirm the effects

  • Walkable: (Green)
  • Balance: (Light-Green)
  • Slide: (Cyan)

Wall

TODO: add and confirm the effects

  • Wallrun: (Red) Allows wall running on those triangles if they're steep enough.
  • No wallrun: (Orange) Won't allow wall running on those triangles.
  • Ledge: (Pink)
  • Ragdoll: (Blue) Character will ragdoll.
  • Ragdoll-death: (Blue) Character will die.

Ceiling

TODO: add and confirm the effects & colors

  • Ceiling: (Blue)

Unlabled

TODO: Confirm the effects

  • Clear: (No color) Will reset to the default collision behaviour which is based on he triangles nnormal. The color of the triangles will be desaturated. TODO: Are the desaturated colors really just the indication for default collision?
  • No climb: (Grey) Will make the character walk slower on steep triangles. Will redirect rolls to the slope's direction. Will make the character run downwards automatically if the slope's too steep. Will make the character Run downwards faster. TODO:Phrasing. TODO: Is that it?
    • To paint the 'no-climp' label to all unlabled triangles, click Apply 'no climb' to all unlabled surfaces