HeroEngine Forums
Welcome, Guest. Please login or Register for HeroCloud Account.

Author Topic: [Resolved] Smart Objects  (Read 1375 times)

AlderonGames

  • World Owners
  • ****
  • Posts: 20
    • View Profile
[Resolved] Smart Objects
« on: Jun 06, 13, 09:38:55 AM »

Hi,

I was wondering about smart objects. After reading through the forums and wiki, I was wondering can stateful objects have animations applied to them, eg a chest opening or is it more of rotate this model, this direction over 5 seconds for example.

If so what export type would you use as a static object is limited to a single animation.

Thanks,
Matthew
« Last Edit: Jul 03, 13, 04:08:43 PM by HE-Cooper »
Logged

PN-Dwight

  • General Accounts
  • *
  • Posts: 465
    • View Profile
    • Pirates' Nest
Re: Smart Objects
« Reply #1 on: Jun 06, 13, 10:14:18 AM »

Well, if you want doors and such, you would not want to use animations from your modelling program, but translate or rotate the objects through script to update the physics on the server side for all players.

uexilon

  • General Accounts
  • *
  • Posts: 62
    • View Profile
Re: Smart Objects
« Reply #2 on: Jun 06, 13, 06:12:22 PM »

http://hewiki.heroengine.com/wiki/States_System#Transform

either by using code or by using the state system spec oracle, you can define how a static object should be transformed, moved, etc. when a certain event occours. Maybe you want the player to open the door with a mechanism, so that would be a wired state system. Or you could also use a trigger to call a script that opens the door automaticly as soon as the player enters the trigger area (and maybe close it as soon as he lefts the trigger area?)
Logged

PN-Dwight

  • General Accounts
  • *
  • Posts: 465
    • View Profile
    • Pirates' Nest
Re: Smart Objects
« Reply #3 on: Jun 06, 13, 06:53:49 PM »

A last remark however with the "animating through script" is that you need to place the pivot of the object in the right way, else you might not get the results you would want (e.g with doors they need to be placed in the bottom corner)

keeperofstars

  • General Accounts
  • *
  • Posts: 998
    • View Profile
    • StarKeeper Online
Re: Smart Objects
« Reply #4 on: Jun 07, 13, 02:32:15 AM »

And for a chest, depends, could set it up as an animated asset and play the different animations, just note other players might not see that animation, but does it matter becomes the question. For something like a treasure chest, does it really matter if client A shows it open and client B shows it closed, till they open it? probably not.

For a door then yes, cause you don't want client B watching client A pass through the door that's closed looking to them.
Logged
[img]http://screencast.com/t/x7btcSSyp3h0[\img]