playMaker

Author Topic: Custom 3D cursors in Playmaker  (Read 4338 times)

coffeeANDsoda

  • Hero Member
  • *****
  • Posts: 618
Custom 3D cursors in Playmaker
« on: August 06, 2014, 03:34:23 AM »
How would I make full 3d object with a FSM function as a cursor?

redikann

  • Full Member
  • ***
  • Posts: 174
Re: Custom 3D cursors in Playmaker
« Reply #1 on: August 06, 2014, 10:37:44 AM »
I believe Unity lets you place an image for the cursor in the build settings. Why not put an empty png to mask the cursor then parent an object to the center of the camera.

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Custom 3D cursors in Playmaker
« Reply #2 on: August 06, 2014, 11:42:44 AM »
I think I'm doing something with Get Mouse Position, Screen To World Point and a raycast.

That should get you started.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

coffeeANDsoda

  • Hero Member
  • *****
  • Posts: 618
Re: Custom 3D cursors in Playmaker
« Reply #3 on: August 06, 2014, 03:01:17 PM »
I think I'm doing something with Get Mouse Position, Screen To World Point and a raycast.

That should get you started.

Get Mouse position doesn't show up when I search for it.

redikann

  • Full Member
  • ***
  • Posts: 174
Re: Custom 3D cursors in Playmaker
« Reply #4 on: August 06, 2014, 04:34:07 PM »

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Custom 3D cursors in Playmaker
« Reply #5 on: August 06, 2014, 04:48:32 PM »
I think I'm doing something with Get Mouse Position, Screen To World Point and a raycast.

That should get you started.

Get Mouse position doesn't show up when I search for it.


It's on ecosystem and the forum. Would find the link but I'm on mobile at the airport right now..
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

600

  • Moderator
  • Hero Member
  • *****
  • Posts: 715
    • Flashing Lights
Re: Custom 3D cursors in Playmaker
« Reply #6 on: August 06, 2014, 05:07:03 PM »
Hello,
Try "Mouse Pick" from Action browser,
use Point vector3 for 3d object position.

coffeeANDsoda

  • Hero Member
  • *****
  • Posts: 618
Re: Custom 3D cursors in Playmaker
« Reply #7 on: August 06, 2014, 05:12:17 PM »
Hello,
Try "Mouse Pick" from Action browser,
use Point vector3 for 3d object position.

As the first action in the first state? Or do I use it along with Get Mouse Button Down?

Plus for the second state, I have Get Mouse Y and X set up with mouse variables  and move x and y variables with a "Set Position" state. 

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Custom 3D cursors in Playmaker
« Reply #8 on: August 06, 2014, 05:52:50 PM »
If you are actively making a mouse in world space you should do it all in one state.

I approached it with the idea of 1. Get the mouse position on the screen, 2. Convert that to world space, 3. Raycast from the camera to that point in world space, 4. Store the point it hits, 5. Set the position of the 3d mouse object there.

That's all done in one state every frame. That was my approach.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

coffeeANDsoda

  • Hero Member
  • *****
  • Posts: 618
Re: Custom 3D cursors in Playmaker
« Reply #9 on: August 06, 2014, 06:14:53 PM »
If you are actively making a mouse in world space you should do it all in one state.

I approached it with the idea of 1. Get the mouse position on the screen, 2. Convert that to world space, 3. Raycast from the camera to that point in world space, 4. Store the point it hits, 5. Set the position of the 3d mouse object there.

That's all done in one state every frame. That was my approach.

How could I do that when I can't find a thread or playmaker documentation search on get mouse position? Plus how would that translate to the options I get with the raycast action?

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: Custom 3D cursors in Playmaker
« Reply #10 on: August 11, 2014, 11:14:24 AM »
Try this, it's pretty basic.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D