playMaker

Author Topic: How to Set Mass and Change the Mass Of Object with Slider?!  (Read 2550 times)

sobhan1991

  • Playmaker Newbie
  • *
  • Posts: 2
Hey all , i search about few days , as the Subject says , i want to Change the Mass of an Object with a GUI Slider , but i donno how ! i watch the Tutorials and see some samples but i couldn't get it to work !


ok let me explain , i have a tank which has 2 scripts (2 C# Classes that 1st one is using (calling) the second one Codes) and i attached a "RigidBody" Component to the TANK
the Mass of The Tank is set to "50000" , the thing i want is to Change the Value of the mass in runtime with GUISlider and i want the values to Work in
[0 , 100000] range
Could anyOne please help me ?
am in hurry ! :'( :'( :'(

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: How to Set Mass and Change the Mass Of Object with Slider?!
« Reply #1 on: June 09, 2013, 11:33:13 AM »
Here you go.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

sobhan1991

  • Playmaker Newbie
  • *
  • Posts: 2
Re: How to Set Mass and Change the Mass Of Object with Slider?!
« Reply #2 on: June 09, 2013, 01:08:50 PM »
WOW ! Thanks so much ! now am gonna experiment it :)
i just cant say anything ! thank you ;)