Difference between revisions of "Korman:Clickables"

m (Logic Node Clickables)
m (Logic Node Clickables)
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{Tutorial|Clickables|Korman}}
 
{{Tutorial|Clickables|Korman}}
 
 
This tutorial will show you how to set up clickables for any object.
 
This tutorial will show you how to set up clickables for any object.
  
Line 7: Line 6:
  
 
==Requirements==
 
==Requirements==
 
+
[[file:KorClickable01.jpg|250px|thumb|Sample region]]
 
For a clickable in '''Korman''', you will need at least two things to start:
 
For a clickable in '''Korman''', you will need at least two things to start:
  
 
* The clickable object
 
* The clickable object
 
* A region surrounding the clickable, with enough space for an avatar to enter
 
* A region surrounding the clickable, with enough space for an avatar to enter
 
+
{{clear}}
[[file:KorClickable01.jpg|300px]]
+
  
  
 
==Rotation and Scale==
 
==Rotation and Scale==
 
 
To prevent warping of clickables, it is recommended that, once everything is resized and positioned the way you want, that you reapply rotation and scale to the object to prevent warping upon export.
 
To prevent warping of clickables, it is recommended that, once everything is resized and positioned the way you want, that you reapply rotation and scale to the object to prevent warping upon export.
  
 
To do this, select the object in the 3D window, then press '''Ctrl+A''', then click on '''Rotation and Scale'''.  Do this for the clickable and its region.
 
To do this, select the object in the 3D window, then press '''Ctrl+A''', then click on '''Rotation and Scale'''.  Do this for the clickable and its region.
 +
  
 
==Modifier Clickables==
 
==Modifier Clickables==
 
 
 
===Sitting Mods===
 
===Sitting Mods===
 
 
A sitting mod will allow the avatar to sit on an object when clicked.   
 
A sitting mod will allow the avatar to sit on an object when clicked.   
  
Line 32: Line 27:
  
 
====Updating From PyPRP====
 
====Updating From PyPRP====
 
 
If you already have a sitting mod set up in an existing Age, you only need to add an Empty in the same place and position as your clickable.
 
If you already have a sitting mod set up in an existing Age, you only need to add an Empty in the same place and position as your clickable.
  
Line 45: Line 39:
 
On the toolbar, click '''Object->Transform->Align to Transform Orientation'''.   
 
On the toolbar, click '''Object->Transform->Align to Transform Orientation'''.   
  
[[file:KorClickable02.jpg]]
+
[[file:KorClickable02.jpg|center]]
  
 
This should turn the Empty so that its axis is now facing the same way as your clickable.  If it doesn't work on the first try, press '''Ctrl+Z''' to undo it.
 
This should turn the Empty so that its axis is now facing the same way as your clickable.  If it doesn't work on the first try, press '''Ctrl+Z''' to undo it.
Line 52: Line 46:
  
 
====A Note about Collision====
 
====A Note about Collision====
 
 
While your clickable can have its own collision, with sitting mods, the avatar can sometimes get "stuck" within the clickable.  If this happens, you can create a fourth object to sit within the clickable while turning collision on the clickable off.  You can keep shrinking this collider until the avatar can sit down and stand up without getting stuck.
 
While your clickable can have its own collision, with sitting mods, the avatar can sometimes get "stuck" within the clickable.  If this happens, you can create a fourth object to sit within the clickable while turning collision on the clickable off.  You can keep shrinking this collider until the avatar can sit down and stand up without getting stuck.
  
 
====Adjusting the Region====
 
====Adjusting the Region====
 
 
It's recommended to make the logic region a simple cube encompassing the clickable and a good distance out.  To make sure the region's dimensions and size are exported properly, type '''Ctrl+A''' and then select '''Rotation and Scale'''.
 
It's recommended to make the logic region a simple cube encompassing the clickable and a good distance out.  To make sure the region's dimensions and size are exported properly, type '''Ctrl+A''' and then select '''Rotation and Scale'''.
  
 
====Setting Up The Clickable====
 
====Setting Up The Clickable====
 
 
First, select your empty.  Remember that the Empty's local Y axis should be pointed in the '''opposite''' direction from where you would like your avatar to face while sitting.
 
First, select your empty.  Remember that the Empty's local Y axis should be pointed in the '''opposite''' direction from where you would like your avatar to face while sitting.
  
 
Next, go to the '''Properties''' window, then select the '''Physics''' tab (the bouncing ball on the far right).  Click '''Add Modifier''' and then '''Sitting Behavior'''.  In the new window, there are a few options you can adjust.
 
Next, go to the '''Properties''' window, then select the '''Physics''' tab (the bouncing ball on the far right).  Click '''Add Modifier''' and then '''Sitting Behavior'''.  In the new window, there are a few options you can adjust.
  
[[file:KorSitting01.jpg]]
+
[[file:KorSitting01.jpg|frame|Sitting Modifier properties panel]]
  
 
'''Front, Left, Right,''' and '''Rear''' are the four directions from which you can approach the sitting mod.  Hold down '''Shift''' and click on any of these to select (blue) or deselect (grey) them.
 
'''Front, Left, Right,''' and '''Rear''' are the four directions from which you can approach the sitting mod.  Hold down '''Shift''' and click on any of these to select (blue) or deselect (grey) them.
Line 78: Line 69:
  
 
The '''Tolerance''' is the degree the avatar must be turned towards the clickable for it to activate.  It is recommended to keep this at '''57 or below'''.
 
The '''Tolerance''' is the degree the avatar must be turned towards the clickable for it to activate.  It is recommended to keep this at '''57 or below'''.
 +
{{clear}}
  
  
==Logic Node Clickables==
+
==Logic Nodes==
 
+
 
For basic information on the various '''logic nodes''', see the [[Korman:Logic Nodes|logic nodes tutorial]].
 
For basic information on the various '''logic nodes''', see the [[Korman:Logic Nodes|logic nodes tutorial]].
 
This section will cover a few basic setups for various types of clickables using logic nodes.
 
 
===Linking Books===
 
 
===Journals===
 
 
===Button Doors===
 
 
===Handle Doors===
 
 
===Nexus Pedestals===
 
  
 
==Troubleshooting==
 
==Troubleshooting==
 
 
If your clickable isn't working, here are some things to check:
 
If your clickable isn't working, here are some things to check:
  
 
* Do all objects have '''Plasma Object''' checked in the '''Physics''' panel?  If not, they won't export.
 
* Do all objects have '''Plasma Object''' checked in the '''Physics''' panel?  If not, they won't export.
 
+
* Reapply the region's Scale ('''Ctrl+A->Scale''')
* Reapply the region's Scale and Rotation ('''Ctrl+A->Rotation and Scale''')
+
 
+
  
 
[[Category:Korman]]
 
[[Category:Korman]]

Latest revision as of 14:54, 13 July 2020

Disambig gray.png

This is a tutorial page.Versions available: PyPRP; 3ds Max; Korman.
 

This tutorial will show you how to set up clickables for any object.

NOTE: More types of clickables will be added as Korman develops.


Requirements

Sample region

For a clickable in Korman, you will need at least two things to start:

  • The clickable object
  • A region surrounding the clickable, with enough space for an avatar to enter


Rotation and Scale

To prevent warping of clickables, it is recommended that, once everything is resized and positioned the way you want, that you reapply rotation and scale to the object to prevent warping upon export.

To do this, select the object in the 3D window, then press Ctrl+A, then click on Rotation and Scale. Do this for the clickable and its region.


Modifier Clickables

Sitting Mods

A sitting mod will allow the avatar to sit on an object when clicked.

For this, you will also need an Empty object added on the floor under the clickable.

Updating From PyPRP

If you already have a sitting mod set up in an existing Age, you only need to add an Empty in the same place and position as your clickable.

To do so, select your clickable in the 3D View window. Next, press Shift+S, then 4 to snap the cursor to the clickable's center.

Next, go into the Create tab in your Tools (press T in your 3D View) and click Empty to add an empty at your clickable's center.

Switch from Global to Local at the bottom of the 3D View window.

Press A until nothing is selected in 3D View, then select the empty, hold Shift, then select the clickable.

On the toolbar, click Object->Transform->Align to Transform Orientation.

KorClickable02.jpg

This should turn the Empty so that its axis is now facing the same way as your clickable. If it doesn't work on the first try, press Ctrl+Z to undo it.

Your sitting mod is now ready for the new method!

A Note about Collision

While your clickable can have its own collision, with sitting mods, the avatar can sometimes get "stuck" within the clickable. If this happens, you can create a fourth object to sit within the clickable while turning collision on the clickable off. You can keep shrinking this collider until the avatar can sit down and stand up without getting stuck.

Adjusting the Region

It's recommended to make the logic region a simple cube encompassing the clickable and a good distance out. To make sure the region's dimensions and size are exported properly, type Ctrl+A and then select Rotation and Scale.

Setting Up The Clickable

First, select your empty. Remember that the Empty's local Y axis should be pointed in the opposite direction from where you would like your avatar to face while sitting.

Next, go to the Properties window, then select the Physics tab (the bouncing ball on the far right). Click Add Modifier and then Sitting Behavior. In the new window, there are a few options you can adjust.

Sitting Modifier properties panel

Front, Left, Right, and Rear are the four directions from which you can approach the sitting mod. Hold down Shift and click on any of these to select (blue) or deselect (grey) them.

In the Clickable form, choose your clickable. The most common Bounds Type for this is Convex Hull (note that this will NOT affect the object's collision).

In the Region form, choose your region. Again, Convex Hull is the best Bounds type.

The Avatar Facing function will cause the clickable to turn off if your avatar is not facing it. This is handy if you have many sitting mods in a small space.

If your sitting mod doesn't work, try unchecking Avatar Facing.

The Tolerance is the degree the avatar must be turned towards the clickable for it to activate. It is recommended to keep this at 57 or below.


Logic Nodes

For basic information on the various logic nodes, see the logic nodes tutorial.

Troubleshooting

If your clickable isn't working, here are some things to check:

  • Do all objects have Plasma Object checked in the Physics panel? If not, they won't export.
  • Reapply the region's Scale (Ctrl+A->Scale)