WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 02-15-2018, 08:14 AM
rajnishv rajnishv is offline
Member
 
Join Date: Jan 2016
Location: Kalina,Sanatcruz(East),Mumbai,Maharashtra,India
Posts: 94
Pls find the below code and use it to integrate with your program code.

Code:
import vizcam
camera = vizcam.PivotNavigate()
camera.setDistance(5)

def moveCamera():
	while True:
               # Get the handle of the 3D Model as taken below
		lookAtPos = avatar.getBone('Bip01 Pelvis').getPosition(viz.ABS_GLOBAL)
		lookAtPos[1] = lookAtPos[1] + .5
		camera.setCenter(lookAtPos)
		camera.updateCenter()
		yield None	

viztask.schedule(moveCamera())
Thanx & Regards

Mr.Rajnish Vishwakarma
Reply With Quote
Reply


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
Physics: Ball Bounces Unexpectly Based Upon Size + Ring Collision Shape mhead10 Vizard 3 11-02-2012 01:44 PM
Strange Ball Joint behaviour mkmatlock Vizard 1 11-04-2010 04:49 PM
moving and object by mouse but don't know how to stop the movement nlfrnassimi Vizard 8 04-26-2009 07:23 AM
how can I stop an action? nlfrnassimi Vizard 4 02-13-2009 12:59 AM
How to make avatars to follow terrain while walking? yyang Vizard 1 08-04-2008 02:54 PM


All times are GMT -7. The time now is 09:05 PM.


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