Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: cannot move and rotate two CirclarShape objects together  (Read 1248 times)

0 Members and 1 Guest are viewing this topic.

saksham0161

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • Email
cannot move and rotate two CirclarShape objects together
« on: March 09, 2017, 12:27:50 am »
I have defined a CircularShape named car having 3 points(displayed as  triangle) and Circular shape field which is circular in shape,
I want field to stay at tip of the car and move along with the tip of the car but the problem is when i run the program, they dont move together, some ambiguous behavious is there i think there is some problem with position and origin of both the shapes please correct me, car's origin cant be changed though for some future purposes
I am uploading the code as attachment



Hapax

  • Hero Member
  • *****
  • Posts: 3379
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: cannot move and rotate two CirclarShape objects together
« Reply #1 on: March 13, 2017, 01:33:51 pm »
What do you mean by "field"?
All of your field-related code is commented out.

What is the "ambiguous behavious" you are experiencing?
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*