Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Anyway to "offset" the physics debug drawing?
Started by petergilmour1987 Nov 25 2019 07:58 PM

4 replies to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

petergilmour1987

[GLOBAL: userInfoPane.html]
petergilmour1987
  • Observer

  • 7 posts
  • Corona SDK

When using....

physics.setDrawMode( "hybrid" )

.... and also having implemented a camera system, the colliders are not located in the right place. (Although the physics world is working perfectly, it's just not in line with what is being drawn due to the camera.

 

My question is, is there anyway to set a sort of "master offset" for where these shapes are drawn?



[TOPIC: post.html]
#2

XeduR @Spyric

[GLOBAL: userInfoPane.html]
XeduR @Spyric
  • Corona Geek

  • 1,020 posts
  • Corona SDK

Not to my knowledge.

 

The physics shapes are owned by the physics engine and if you move their associated display objects through other means, they'll always end up misaligned.



[TOPIC: post.html]
#3

pixec

[GLOBAL: userInfoPane.html]
pixec
  • Enthusiast

  • 50 posts
  • Corona SDK

It’d really be useful if we could make them match like asked

[TOPIC: post.html]
#4

sporkfin

[GLOBAL: userInfoPane.html]
sporkfin
  • Contributor

  • 663 posts
  • Corona SDK

Have you been scaling objects in different display groups?



[TOPIC: post.html]
#5

sporkfin

[GLOBAL: userInfoPane.html]
sporkfin
  • Contributor

  • 663 posts
  • Corona SDK

Can you show us a screenshot of the hybrid mode?




[topic_controls]
[/topic_controls]