WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 02-28-2017, 09:32 AM
mihirradia mihirradia is offline
Member
 
Join Date: Jun 2016
Posts: 44
Hi Jeff,
I'm sorry I'm new to this Vizard. What changes should I make in my update function in my Client? Do you want me to change the e.GrabObject.setPosition(pos) to transport.setPosition(pos) correct on the client script? What changes do I need to make in the server script?
I'm sorry for such silly question, but I new to programming as well. I am really sorry for the inconvenience caused

Last edited by mihirradia; 02-28-2017 at 09:39 AM.
Reply With Quote
  #2  
Old 03-01-2017, 12:46 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
Sorry, it's difficult to help because I don't really understand the code or what you are trying to do. Troubleshooting custom code is beyond the scope of what we can help with on the forum.

I'm not sure this is going to make things work the way you want but to avoid the error remove the transport object, which is called 'GrabObj' in the line below:

Code:
viznet.client.sendAll(UPDATE,client=viz.getComputerName(),pos=pos,ori=ori,GrabObj=GrabObj,DisAssPart=DisAssPart )
It seems like you are already sending the position and orientation of the transport and there is only one transport used in the script. So in your function that receives the network data, get a handle to that transport and then call set position and orientation on it.

Maybe there's an easier way of setting this up. Can you explain generally how your application is supposed to work? We can't necessarily provide code but may have suggestions.
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Client Server Networking Problem mihirradia Vizard 5 02-21-2017 09:46 PM
Client Server Networking Problem pattie Vizard 12 07-04-2013 09:11 AM
networking problem Chapre Vizard 2 02-17-2012 08:17 AM
Problem with server Events vOliver Vizard 2 09-15-2010 02:21 PM
Linking problems with Live Character Frank Verberne Vizard 5 06-04-2008 11:42 AM


All times are GMT -7. The time now is 02:28 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC