Register
Log in
ENG
РУС
ENG
中文
Unleashing the Power of 3D Internet
Home
Technologies
Blend4Web PRO
Blend4Web CE
Web Player
WebGL
Blender
Made With
Support & Services
Technical Support
Documentation and Tutorials
Partnership Program
Consulting and Training
Integration and OEM
Community
Blog
Forum
FAQ
Conference
Contests
Downloads
Company
Triumph LLC
Contact Us
Place an Order
Forum
Community Support
Newbie Questions
How to find dista...
How to find distance from camera to object?
01 August 2017 16:36
#18195
Max_Cohen
posts: 15
Hi, there.
How to find distance to the object from camera? Thanks.
01 August 2017 17:30
#18196
berdon
posts: 48
Maybe you can use the API
link
to get the translation of camera and object to calculate the distance.
01 August 2017 18:47
#18197
Will Welker
posts: 558
Here you go.
https://www.blend4web.com/api_doc/module-transform.html#.distance
Twitter
3dxmedia.com
03 August 2017 12:24
#18215
Max_Cohen
posts: 15
Hi, there!
Thanks all, who replied for my question. The answer what I use -
m_trans.distance()
;
It helped for me.
Please
register
or
log in
to leave a reply.