playMaker

Author Topic: Modular Building System  (Read 1876 times)

drakwon

  • Playmaker Newbie
  • *
  • Posts: 34
Modular Building System
« on: February 20, 2017, 12:57:51 AM »
Anyone have any ideas how I would start going about this with playmaker?

elusiven

  • Full Member
  • ***
  • Posts: 233
  • Debt we all must pay...
Re: Modular Building System
« Reply #1 on: February 20, 2017, 03:03:09 AM »
If you have no previous experience, I would recommend purchasing Uconstruct instead since making your own will take a lot of time and effort.

drakwon

  • Playmaker Newbie
  • *
  • Posts: 34
Re: Modular Building System
« Reply #2 on: February 20, 2017, 11:27:08 AM »
I would like to build mine myself so I understand how everything works, Im just questionable about how to go about having items snap to each other.

elusiven

  • Full Member
  • ***
  • Posts: 233
  • Debt we all must pay...
Re: Modular Building System
« Reply #3 on: February 20, 2017, 12:07:13 PM »
Ok so actual snapping can be done with mathf.round

valueofsnap * Mathf.Round(v.x / snapValue)
valueofsnap * Mathf.Round(v.y / snapValue)

I don't have much time to explain step by step but you can use this with a method or in playmaker a template. Maybe someone else can give more input

https://www.google.co.uk/?gfe_rd=cr&ei=kh2rWI77CqvS8AfBlICgBw#q=unity3d+snap+items+to+each+other

drakwon

  • Playmaker Newbie
  • *
  • Posts: 34
Re: Modular Building System
« Reply #4 on: February 20, 2017, 12:46:29 PM »
thanks I will give it a try.