How to set two concentric circles with the same center and different radius?
Asked by
孙灿
How to set two concentric circles with the same center and different radius? I want to use these two circles to simulate the shield tail gap.
My code is as follows:
circleRadius=2
circleCenter = Vector3(30,40,0.1)
for b in O.bodies:
d = (b.state.pos - circleCenter)
if d < circleRadius:
for a in O.bodies:
s = (a.state.pos - circleCenter)
if s = circleRadius:
What's wrong with my code?
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
To post a message you must log in.